19-37
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
Examples
Device List File
devicename1
devicename2
devicename3
devicename4
Command List File
command1
command2
command3
command4
Job Policy File
This file configures the job to stop running if the job fails on a device, to write the running configuration
to startup after configuration changes are made.
-failure Stop on Failure
-sync
cwcli netconfig Man Page Examples
On UNIX, you can view the complete man pages by setting the MANPATH to /opt/CSCOpx/man
The following are some examples from the NetConfig man page:
Examples
Device List File Example
For the command
cwcli netconfig createjob -u userid -p password -devicefile c7000.dev -commandfile
command.file
-description "cwcli netconfig job" -mode config
An example of the device list file c7000.dev is
enm-7000-1.cisco.com
enm-7000-2.cisco.com
File Type Description Usage Notes
Device list Lists devices on which job will run. It
lists one device on each line.
Use with -devicefile argument.
Job can run only one device category (IOS, or Catalyst). Do
not list devices of multiple categories.
Command list Lists configuration commands that job
will run; one command per line.
Use with -commandfile argument, or to add commands to a
user-defined task.
Job policy Lists of job policy arguments; one
argument per line.
Use with -policyfile argument.