19-38
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
enm-7000-3.cisco.com
enm-7000-4.cisco.com
Command List File Example
For the command
cwcli netconfig createjob -u userid -p password -devicelist c7000-1,c7000-2 -commandfile
command.file
-description "cwcli netconfig job" -mode config
An example of the command file command.file is
snmp-server community public ro
snmp-server community private rw
Policy File Example
For the command
cwcli netconfig createjob -u userid -p password -devicefile c7000.dev -commandfile
command.file -policyfile policy.in
-description "cwcli netconfig job" -mode config
An example of the policy file policy.in is
-failure "Stop on failure"
-sync
-execution Parallel
User-defined Task XML file Example
<?xml version="1.0" encoding="UTF-8"?>
<Task name="SampleTASK">
<Template mode="1" name="iproute" parameterized="false">
<Commands>
<cli>ip route 0.0.0.1 0.0.0.0 Ethernet0/0</cli>
<cli>ip route 0.0.0.2 0.0.0.0 Ethernet0/0</cli>
<cli>ip route 0.0.0.3 0.0.0.0 Ethernet0/0</cli>
<cli>ip route 0.0.0.4 0.0.0.0 Ethernet0/0</cli>
<cli>ip route 0.0.0.5 0.0.0.0 Ethernet0/0</cli>
<cli>ip route 0.0.0.6 0.0.0.0 Ethernet0/0</cli>
</Commands>
<RollbackCommands>
<cli>no ip route 0.0.0.4 0.0.0.0 Ethernet0/0</cli>
<cli>no ip route 0.0.0.5 0.0.0.0 Ethernet0/0</cli>
</RollbackCommands>
<MDFIds>268438030,273153536,272819655</MDFIds>
</Template>