cfxEdgeCollector CLI Subcommands

cfxedgecollector supports following CLI Subcommands and the syntax, help are explained in the below sections.

  1. authconfig

  2. collect

  3. configure

  4. export

  5. register

  6. scheduler

  7. status

  8. job

  9. uninstall

  10. backup

  11. restore

authconfig

authconfig command syntax (basic authorization)

Default out-of-the box cfxEdgeCollector authorization is basic.

Following example provides basic usage of authconfig subcommand.

authconfig command syntax (TACACS authorization)

In addition to basic authconfig, if a user wants to add TACACS based authorization, the below CLI can be used.

Note: Stop the UI docker container, delete the container then change the authorization mechanism and start container

Collect

This subcommand is used for data collection

cfxedgecollector collect CLI can be used to collect the inventory data using the below steps: (1) Credentials are configured using CLI (2) Job details are all configured (as explained in UI section) (3) Run the collect command using CLI (as shown below)

Example:

Export

Merge different jobs and export merged jobs to AIA application

Example:

Register

Used to establish connectivity between EdgeCollector and AIA application

Example:

Note : Key needs to be configured at AIAAPP, download and use it to register cfxEdgeCollector with AIAAPP.

Scheduler

Used to schedule jobs and autoexport collected data by EdgeCollector to AIAAPP

Example auto export:

Status

This subcommand is used for checking the status as shown below

Job

This subcommand is used to know the jobs list from cli to know the status of running jobs and to stop the jobs.

Upgrade

This subcommand is used to upgrade EdgeCollector by using the following command

Note: In case of upgrade only cfxedgecollector binaries will be upgraded. Existing jobs will be migrated as per the requirement.

Uninstall

Edge collector installation can be removed by using command

Before uninstallation users should manually stop the cfxedgecollector service by using command cfxedgecollector --delete. Also, users should make sure there are no running jobs.

Uninstallation using the above CLI command will remove only the installed binary. To cleanup all jobs and data, following CLI option can be used

Backup

All job configuration and data(with log, db etc) can be backed up using the following CLI command

This will create a zip with the followings:

  1. job dir

  2. data dir

  3. load profiles created by user

  4. Encryption details

  5. Backup info

1. What time backup is created

2. Info of the edge collector

All backups will be stored in the backup directory.

Backup Listing

Users can check the backed up data/list using following CLI command

cfxedgecollector backup –list

Restore

Previously backed up data can be restored using following CLI command

cfxedgecollector restore < backup.zip

Prerequisites

  1. No job should be running while restoring the backup.

  2. If the job with the same name exists, then the existing job will be overwritten only if "--override" flag is present, otherwise the job will be skipped with a message.

While restoring the job, all credentials will be re-encrypted with the new keys.

Last updated