Cisco Systems 4.1 Dust Collector User Manual


 
19-85
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
========
Successful: CDA: Success
<!-- Processing complete -->
Example 5: Checking device credentials for a device using the cwcli post request
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, cda.xml contains:
<payload>
<command>
cwcli inventory cda -u admin -p YWRtaW4= -device 10.10.16.20 -status
</command>
</payload>
At the command prompt enter:
perl samplepost.pl http://ciscowork_servername:1741/rme/cwcli cda.xml
To invoke the servlet using a script, see the Sample Script to Invoke the Servlet.
<!-- Processing Starts -->
CDA Status :
============
deviceId | deviceName | ro | rw | snmpv3 | telnet | telnetEnable | ssh | sshEnab
le
71 | 10.10.16.20 | No Data Yet | No Data Yet | No Data Yet | No Data Yet | No
Data Yet | No Data Yet | No Data Yet
SUMMARY
========
Successful: CDA: Success
<!-- Processing complete -->
Example 6: Creating a job using cwcli inventory cda createjob command
cwcli inventory cda createjob -u admin -p admin - Cat6230, Cat4500 | -view myview
-schedule 03/23/2007:12:15:01 -scheduletype Once
This command creates a cda job for the devices Cat6230 and Cat4500 in the view myview and scheduled
for 23rd march 2007 at 12:15 pm with schedule type specified as Once.
Example 7: Stopping a cwcli inventory cda job using stopjob command
There is a job 1098, which is currently running. You can use this command to stop the job 1098.
cwcli inventory cda stopjob -u admin -p admin -id 1098