19-20
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
If -u argument is used along with -p argument, the password is taken from the command line instead of
cwcli CWCLIFILE. This is not secure and usage of this argument is not recommended.
The password must be provided in the file in the following format:
username password
Where username is the CiscoWorks user name given in command line. The delimiter between username
and password is single blank space. You must provide the delimiter if the password is blank
Otherwise, cwcli config will not validate the password. The password file can contain multiple entries
with different user names. The password of the first match is considered in case of duplicate entries.
See Setting CWCLIFILE Environment Variable for more details.
Function-independent Arguments
You can use the following arguments without any commands:
-help
When run with the -help argument, cwcli config displays a list of all supported commands and a
one-line description of the command.
-v
When run with the -v argument, cwcli config displays cwcli config version information.
Function-dependant Arguments
You can use the following arguments only with commands:
-p password
Specifies the password for the CiscoWorks username.
Warning
SECURITY WARNING: If -p password is used, the password is read from the command line instead of
cwcli CWCLIFILE
. This is highly insecure and *not* recommended. See -u argument for more details.
See Setting CWCLIFILE Environment Variable for more details.
-d debuglevel
Sets the debug level based on which debug information is printed. debuglevel is a numeric value between
1 and 5.
-f filename
Specifies the name of the file to which the retrieved configuration is written. If not specified,
devicename.cfg is assumed.
-l logfile
Logs the results of the cwcli config command to the specified log filename.
-m mailbox
Mails the results of the cwcli config command to the specified email address.
Function-specific Arguments
You can use the following arguments only with specific commands:
-baseline