Package: tetrationcli
Tetrationclito interact with Tetration Cluster via the cliInstallationFrom PyPIpip install tetrationcliFrom sourcesDownload the sources fromGithub, extract and execute the following commands$ pip install -r requirements.txt

$ pip install setup.pyHow to use this application:To access to the cluster you need to get the API Credentials with the following permissionssensor_management- option: SW sensor management: API to configure and monitor status of SW sensorshw_sensor_management- option: HW sensor management: API to configure and monitor status of HW sensorsflow_inventory_query- option: Flow and inventory search: API to query flows and inventory items in Tetration clusteruser_role_scope_management- option: Users, roles and scope management: API for root scope owners to read/add/modify/remove users, roles and scopesapp_policy_management- option:
Applications and policy management: API to manage applications and enforce policiesDownload the api_credentials.json locally and have it ready to get the information required for the setup.A quick look for the help will list the current available options.$ tetrationcli -h
usage: tetrationcli [-h] [-d] [-q] [-v]
                    {inventory,vrfs,applications,users,roles,scopes,switches,agents,clear,setup}
                    ...

Tetration Analytics CLI tool

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           full application debug mode
  -q, --quiet           suppress all console output
  -v, --version         show program's version number and exit

sub-commands:
  {inventory,vrfs,applications,users,roles,scopes,switches,agents,clear,setup}
    inventory           Interact with Inventory from Tetration Cluster
    vrfs                Interact with VRFs in Tetration Cluster
    applications        Interact with ADM Application from Tetration Cluster
    users               Interact with Users from Tetration Cluster
    roles               Interact with Roles in Tetration Cluster
    scopes              Interact with Scopes configured in Tetration Cluster
    switches            Interact with Hardware Sensors from Tetration Cluster
    agents              Interact with Software Sensors in Tetration Cluster
    clear               Clear the configuration
    setup               Application setup

Usage: tetrationcli commandEach subcommand has its own help that list the options available.$ tetrationcli agents -h
usage: tetrationcli agents [-h] {delete,list} ...

optional arguments:
  -h, --help     show this help message and exit

sub-commands:
  {delete,list}
    delete       delete the selected software agent via uuid
    list         list all software agents installedEasy setupStep 1: Issuetetrationcli setupfolow the instructions and place the correct requested information$ tetrationcli setup
Tetration Analytics cluster (eg: https://great.example.com/): https://great.example.com/
Tetration API Key: ASDASDASADS
Tetration API Secret: ASDASDASDASDFFFStep 2: Test if you can successfully query the cluster from the command line$ tetrationcli agents listManually setup the applicationThe fileapi_credentials.jsondownloaded from the cluster is expected to be placed in
folder~/.config/tetrationcli/then to define the cluster name you need to create the
config filetetrationcli.confin%HOME_USER_FOLDER%/.config/tetrationcli/total 16
0 drwxr-xr-x   4 user  staff  128 Nov 11 16:16 .
0 drwx------  13 user  staff  416 Nov 11 16:10 ..
8 -rw-r--r--@  1 user  staff  111 Nov 11 09:52 api_credentials.json
8 -rw-r--r--   1 user  staff  121 Nov 11 16:16 tetrationcli.confand the filetetrationcli.confrequires the information:[tetrationcli]
api_endpoint = https://mygreatapp.example.com
api_credentials = ~/.config/tetrationcli/api_credentials.jsonMore informationOptions usedCurrent scope for tetrationcliinventoryvrfsapplicationsusersrolesscopesswitchesagentsFor any new functionalites open an issue and we will evaluate to add it.