Giter Site home page Giter Site logo

ci-status's Introduction

ci-status

ci-status is a script that shows all child accounts for a specified Alert Logic account (cid) and for each account it enumerates all Cloud Insight Deployments. For each deployment a summary is provided, which includes the number of scannable hosts and the number of hosts scanned. In addition, the VPCs will be listed for any VPCs that do not have room for the /28 subnet needed by CI.

Usage:
    ci-status authenticate --username=<username> --password=<password>
    ci-status get-summary --auth-token=<auth_token> --cid=<cid>

Options:
    --cid=<cid>
    -u --username=<username>
    -p --password=<password>
    -a --auth-token=<auth_token>
    -f --format=<format>                json, text

authenticate

Get an authentication token that can be used for other commands.

export auth_token=$(python ci-status.py -u $un -p $pw)

get-summary

List all child accounts for the specified parent account (cid). For each child account list all Cloud Insight Deployments. For each Deployment list the total number of scannables hosts and the total number of hosts that have been scanned. Also list all VPCs that do not have room for the /28 subnet that CI needs for deploying the scanner instances.

python ci-status.py get-summary -a $auth_token --cid $cid | tee ci-status.txt

Examples of script output

...

-----------------------------------------------
Account: Acme Systems, CID: 1335570
-----------------------------------------------
Deployment Name: Production
**There is no room for a subnet in these VPCs:
/aws/us-east-1/vpc/vpc-25035e41
/aws/us-east-1/vpc/vpc-1e035e7a
/aws/us-east-1/vpc/vpc-e6035e82
/aws/us-east-1/vpc/vpc-d069efb4
/aws/us-east-1/vpc/vpc-52920f34
Total number of hosts: 51
Number of hosts in scope: 46
Number of scannable hosts: 8
Number of hosts scanned: 8

...

-----------------------------------------------
Summary:
Total number of hosts: 6738
Total number of hosts in scope: 5335
Total number of scannable hosts: 4516
Total number of hosts scanned: 2765
Percentage of in scope hosts that are scanned: 51%
Percentage of scannable hosts that are scanned: 61%
Percentage of total hosts that are scanned: 41%

ci-status's People

Contributors

mgupton avatar

Watchers

James Cloos avatar  avatar

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.