Cisco Systems 4.1 Dust Collector User Manual


 
19-4
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
Note -d and -l arguments are supported for backward compatibility. In the CiscoWorks LMS Portal home
page, select RME > Admin > System Preferences > Loglevel Settings > CLI Framework to set debug
levels.
When using wildcards, you must use the percent sign (%), not an asterisk (*), as shown in the following
examples:
%device (lists all devices that end with the suffix ‘device’)
dev% (lists all devices that start with the prefix ‘dev’)
% (lists all devices RME manages)
Remote Access
CLI framework (cwcli) offers remote access facilities to allow you to invoke cwcli commands from the
client in the same way as they run on the RME server.
The name of the servlet is /rme/cwcli.
The following is the servlet to be invoked to execute any command:
For post request,
http://rme-server:rme-port/rme/cwcli payload XML file
For get request,
http://rme-server:rme-port/rme/cwcli?command=cwcli config commandname -u user -p BAse64
encoded pwd -args1 arg1value...
Note Use <arg> and <argval> tags when the argument is a file.
The contents of the payload xml file is as follows.
<payload>
<command>
cwcli config export -u admin -p <Base64Enoced pwd> -device 1.1.1.1 -xml
</command>
<arg>
</arg>
<arg-val>
</arg-val>
</payload>
For example to execute the cwcli config import comand payload.xml is as follows:
<payload>
<command>
cwcli config import -u admin -p <Base64Enoced pwd> -device 10.77.240.106
<arg>
-f