Cisco Systems 4.1 Dust Collector User Manual


 
19-41
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
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 export 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 export 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
Using the cwcli export Command
The command line syntax of the application is in the following format:
cwcli export command GlobalArguments AppSpecificArguments
cwcli export is the CiscoWorks command line interface for exporting
inventory/config/changeaudit details into XML format.
Command specifies which core operation is to be performed.
GlobalArguments are the additional parameters required for each core command.
AppSpecificArguments are the optional parameters, which modify the behavior of the specific cwcli
export
core command.
The order of the arguments and arguments are not important. However, you must enter the core command
immediately after
cwcli export.
The following sections describe:
The cwcli export commands (See cwcli export Commands)