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

Command Examples

Example 1

The command
cwcli netconfig -u username -p password createjob -devicelist device1, device2, device3
-commandfile command.file -failure Ignore failure and Continue -startup
creates a NetConfig job with the following characteristics:
Devices device1, device2, device3 will be configured.
Commands in file command.file will run.
Job will continue if it fails to successfully configure a device.
Each device's running configuration will be copied to startup as soon as the device is successfully
configured.
Job will run immediately because the -schedule argument is not specified.

Example 2

The command
cwcli netconfig -u username -p password createjob -devicefile device.file -commandfile
command.file -policyfile policy.file
creates a NetConfig job with the following characteristics:
Devices listed in the file device.file will be configured.
Commands in the file command.file will run.
The file policy.file contains job policy arguments that determine the job policy.

Understanding cwcli netconfig Input Files

Several types of text files are available for you to use as input for the cwcli netconfig command and
the -createjob subcommand. You can also use the command list type as input for user-defined tasks.
export
Allows you to
export one or more
user defined tasks
created in
netconfig to xml
files from the
command line.
{ -task+ User-defined task
name }
Name of the user-defined task to be
exported.
You can specify multiple tasks
separated by spaces or commas.
{-dest file export location } Path of the destination location to
which the exported user-defined
task file is to be copied.
listtask Lists the NetConfig user-defined
tasks.
Sub Command Command Argument Description Usage Notes