GithubHelp home page GithubHelp logo

emcecs / ecs-account-usage Goto Github PK

View Code? Open in Web Editor NEW
0.0 6.0 0.0 24 KB

Creates a report and endpoint providing information about the usage of the storage per owner.

License: Other

Python 100.00%

ecs-account-usage's Introduction

ecs-account-usage

Creates a basic report and a Swift compatible endpoint providing information about the usage of the ECS storage per bucket owner.

Usage

Get the help menu:

python3 ./account_usage.py --help

Basic Report:

use:

python3 ./account_usage.py -u <your system_role_account_user>

or:

python3 ./account_usage.py -e https://portal.ecstestdrive.com --token-endpoint https://portal.ecstestdrive.com/login -u <your system_role_account_user> -p <password> -t temp.txt

Launch the endpoint

use:

python3 ./account_endpoint.py -u <your system_role_account_user>

or:

python3 ./account_endpoint.py -e https://portal.ecstestdrive.com --token-endpoint https://portal.ecstestdrive.com/login --username <your system_role_account_user> --password <password> -t temp.txt -s https://swift.ecstestdrive.com --no-endpoint-ssl --port 5000

Notes

The token used after a sucessful login is saved in /tmp. If you are using Windows you need to use the '-t c:\temp' to store the file in c:\temp

If you are planning to use SSL here is a good reference on how to generate a self-sign certificte https://help.ubuntu.com/lts/serverguide/certificates-and-security.html

If you run into trouble installing the cryptographic library you may need to install the development tools for Python by running the following commmand:

Ubuntu:

$ sudo apt-get install build-essential libssl-dev libffi-dev python-dev

RHEL or Fedora:

$ sudo yum install gcc libffi-devel python-devel openssl-devel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.