Cisco Systems 4.1 Dust Collector User Manual


 
19-98
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
The following is the servlet to be invoked to execute any command:
For post request,
perl samplepost.pl http://rme-server:rme-port/rme/cwcli payload_XML_file
The default port for CiscoWorks server in HTTP mode is 1741.
If you have enabled SSL on CiscoWorks server, you can also use https protocol for secured connection.
perl samplepost.pl https://rme-server:rme-port/rme/cwcli payload_XML_file
The default port for CiscoWorks server in HTTPS mode is 443.
The schema for creating the payload file in XML format is:
<payload>
<command>
cwcli inventory commandname -u user -p BAse64 encoded pwd -args1 arg1value...
</command>
</payload>
To invoke the servlet using a script, see the Sample Script to Invoke the Servlet.
The script and the payload file should be residing in the client machine.
For get request,
http://rme-server:rme-port/rme/cwcli?command=cwcli invreport commandname -u user -p BAse64
encoded pwd -args1 arg1value...
The default port for CiscoWorks server in HTTP mode is 1741.
If you have enabled SSL on CiscoWorks server, you can also use https protocol for secured connection.
https://rme-server:rme-port/rme/cwcli?command=cwcli invreport commandname -u user -p
BAse64 encoded pwd -args1 arg1value...
The default port for CiscoWorks server in HTTPS mode is 443.
The BAse64 encoded for “admin” is YWRtaW4=.
The URL encode for,
Double quotes (“) is %22
Percentage sign (%) is %25
Overview: cwcli netshow Command
You can invoke NetShow features from Command Line Interface (CLI).
The cwcli netshow commands let you use NetShow features from the command line. You can use the
cwcli netshow
commands to view, browse, create, delete, and cancel NetShow jobs.
You can also view the Command Sets assigned to each user by entering the command listcmdsets from
CLI.
You can set the following job attributes using the command line option:
E-mail Notification
Job Based Password