19-10
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
Comparing Configurations
Use the compare function to compare any two versions of the archived configuration files of one or more
devices. The compare function also lists down the entire configuration changes based on the timestamp.
Example:
cwcli config compare -u user -p pass -device zebra.domain.com -version 2 5
cwcli config can only compare the archived configuration files. The compliance report is stored in the
job directories.
Remote Access
cwcli config uses remote access facilities offered by the CLI framework to allow you to invoke the
cwcli config commands from the client in the same manner they would execute them on the RME
server.
The name of the servlet is /rme/cwcli.
All the command can be executed remotely.
Note For the secure mode (HTTPS) the port number is 443. The default port for CiscoWorks server in HTTP
mode is 1741.
Running cwcli config
The cwcli config command is located in the following directories, where install_dir is the directory in
which RME is installed:
• On UNIX systems, /opt/CSCOpx/bin
• On Windows systems, install_dir\CSCOpx\bin
The default install directory is C:\Program Files.
If you install RME on Windows on an NTFS partition, only users in the administrator or casuser group
can access cwcli config.
Users with read-execute access to the CSCOpx\files\archive directory and the directories under that can
also use cwcli config.
Running cwcli config on Multiple Devices
You can run cwcli config simultaneously on multiple devices. Details vary from command to
command. This section describes how to apply import on multiple devices. Details of multiple-device
syntax for other commands are described under the DESCRIPTION in the man page.
The commands, such as put, import, write2run and write2start accept only one device on the
command line. If you want to apply the command to multiple devices, enter the names of those devices
and any arguments in a text file.
For example, assume that you want to deliver the configuration file serviceconf to devices, antelope and
rhino. Also assume that you want to reboot rhino. The command line of cwcli config is as follows:
cwcli config import -u admin -p admin -input device-list -m root@netcontrol.domain.com
You do not want the output of the command to go to stdout. Instead, you want it to be mailed to the
superuser at host netcontrol device-list is a text with the following contents: