19-58
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
Successful: ConfigExport:D:/PROGRA~1/CSCOpx/files/rme/cwconfig
The output folder will contain separate config file for every devices in the Normal Devices group.
Example 2: To generate the config report for the devices that are specified in the device input file
The input configdevices.txt contains these devices:
-device 10.22.33.44,10.22.33.55,1.1.1.1
cwcli export config -u admin -p admin -input configdevices.txt
Example 3: To generate the config using the cwcli get request
The password that you enter here must be in base64 encoded.
In this example,
• YWRtaW4= is the base64 encoded password for admin.
• %25 is the URL encode for “%”
Enter this in your browser:
http://ciscowork_servername:1741/rme/cwcli?command=cwcli export config -u admin -p
YWRtaW4= -device %25
<!-- Processing Starts -->
SUMMARY
========
Successful: ConfigExport: D:/PROGRA~1/CSCOpx/files/rme/cwconfig
<!-- Processing complete -->
Example 4: To generate the Change Audit report using cwcli post request method
The password that you enter here must be in base64 encoded. In this example, YWRtaW4= is the base64
encoded password for admin.
The payload file, config.xml contains:
<payload>
<command>
cwcli export config -u admin -p YWRtaW4= -device 1.6.8.6
</command>
</payload>
At the command prompt enter:
perl samplepost.pl https://CiscoWorks_Servername:443/rme/cwcli config.xml
<!-- Processing Starts -->
SUMMARY
========
Successful: ConfigExport: D:/PROGRA~1/CSCOpx/files/rme/cwconfig
<!-- Processing complete -->