19-14
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI

cwcli config Syntax Examples

The following examples demonstrate the cwcli config command syntax. Square brackets ([ ]) indicate
arguments. A pipe (|) acts as a delimiter. This means that only one of the listed entries can be specified.
Note Make sure you first use the cwcli config command in a test environment before running the command
in production. This is to avoid any loss of data when a device is rebooted or a configuration is
overwritten.
The following command extracts the running configurations from all devices:
cwcli config get -u user -p password -device %
The following command exports the configuration of all the devices from the archive and puts the
configuration into the file, devicename.cfg. This is the default file name because -f is not specified:
cwcli config export -u user -p password -device %
If there is more than one device in the default view All, you see an error message because the export
command does not accept multiple device names on the command line. You must specify the -input
argument to run the export command on more than one device.
The following table shows more syntax examples:
-timeout import, put, write2run,
write2start, run2start,
start2run,
comparewithbaseline,
deploycomplianceresults,
compareanddeploy, get, reload
Specifies the duration of the interval in seconds between two
successive polling cycles. Archive management is polled
according to the interval specified to retrieve and display the job
results.
-version version compare, delete, export, put For put and export, you can specify one version of the
configuration in the archive.
For compare, you can specify two versions, which are
compared with each other.
If you specify only one version, that is compared with latest
archived version.
For delete, if you specify one version, that version is
deleted.
If you specify two versions, all versions in between and
including those version are deleted.
cwcli config arguments Applicable Commands Description