orxray

Configuration

The default config file is ~/.orxray/config.

[console]
host=xxx.xray.openresty.com.cn
port=443
verify_ssl=yes
api_token=xxx

Usage

orxray help will print the usage of the command

# orxray --help
Usage: orxray COMMAND [OPTIONS]

COMMAND:
    agent
    tool
    analyzer

GLOBAL OPTIONS:
    --help
    --config                           specify config file, default is ~/.orxray/config.
# orxray agent --help
Usage: orxray agent ACTION [OPTIONS]

ACTIONS:
    list
    set-default
    get-default

GLOBAL OPTIONS:
    --help
    --config                           specify config file, default is ~/.orxray/config.

# orxray agent list --help
Usage: orxray agent list [OPTIONS]

OPTIONS:
    -s, --page-size integer            page size, 20(default).

GLOBAL OPTIONS:
    --help
    --config                           specify config file, default is ~/.orxray/config.

Use --config to specify the config file other than ~/.oredge/config

# orxray agent list  --config=./config
ID      HOSTNAME                        IP              SYSTEM          VERSION
1       centos7                         135.17.228.191  centos-7        816
4       amzn2-xray-agent                133.17.228.191  amazon-2        816
5       suse15-aaa                      133.17.229.132  opensuse-15     802
7       ubuntu18-xray-agent             133.17.228.191  ubuntu-bionic   816
9       deploy-server                   13.162.120.58   centos-7        796
10      centos7                         133.17.231.163  centos-7        797