Cisco Systems 4.1 Dust Collector User Manual


 
19-54
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
The output for this is written to the changeaudit.xml file in the Install_dir/CSCOpx/bin directory. Where
Install_dir is the CiscoWorks installed directory.
Example 4: To generate the Change Audit 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 “%”
%2f is the URL encode for “_”
Enter this in your browser:
http://ciscowork_servername:1741/rme/cwcli?command=cwcli export changeaudit -u admin -p
YWRtaW4=
-device 10.7.3.8 -app %22Archive Mgmt%22 -cat %22CONFIG%2fCHANGE%22 -f
changeaudit.xml
The output for this is written to the changeaudit.xml file.The changeaudit.xml file is located:
On Windows:
NMSROOT\MDC\tomcat
Where, NMSROOT is the CiscoWorks installed directory.
On Solaris:
/opt/CSCOpx/objects/dmgt
Example 5: 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, changeaudit.xml contains:
<payload>
<command>
cwcli export changeaudit -u admin -p YWRtaW4= -device 1.6.8.6 -from 09/30/2004 -app
"Archive Mgmt" -cat CONFIG_CHANGE -view "/RME@CiscoWorks_servername/Pre-deployed" -f
changeauditreport.xml
</command>
</payload>
At the command prompt enter:
perl samplepost.pl https://CiscoWorks_Servername:443/rme/cwcli changeaudit.xml
To invoke the servlet using a script, see the Sample Script to Invoke the Servlet.
SUMMARY
========
Successful: export: changeauditreport.xml
<!-- Processing complete -->
The output for this is written to the changeauditreport.xml file.The changeauditreport.xml file is located:
On Windows: