19-97
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
• Example 3
• Example 4
• Example 5
• Example 6
Example 1
cwcli invreport -u admin -p admin -reportname "Detailed Device Report" -device %
This generates Detailed Device Report for all devices and CSV file will be located at
$NMSROOT\files\rme\jobs\inventory\reports\archives\Detailed Device Report_timestamp.csv
Example 2
cwcli invreport -u admin -p admin -reportname "Detailed Device Report" -device % -file
D:\cisco\CSCOpx\a.csv
This generates Detailed Device Report, a system report, for all devices, and the result will be written to
D:\cisco\CSCOpx\a.csv
Example 3
cwcli invreport -u admin -p admin -reportname "Detailed Device Report" -device % -file a.csv
This generates the Detailed Device Report, a system report, for all devices, and the result will be written
to the file a.csv in the current directory (from where you are running this command).
Example 4
cwcli invreport -u admin -p admin -input cliinputs.txt
Generate the reports using the parameters provided in the file cliinputs.txt. Using -input argument you
can run multiple reports at a time by providing parameters in the file.
Example 5
cwcli invreport -u admin -p admin -listreports
Displays a list of all Inventory system report and custom templates.
You can run this command if you have the required permissions to generate reports.
Example 6
cwcli invcreport -u admin -p admin -d 3 -m xxx@yyy.com -reportname acmeinventory -view acme
-file acmeinventory.txt
Generates the report named acmeinventory, using the acme device view and the CSV formatted output
will be written to acmeinventory.txt
You can place this file in the current directory (from where you are running the command).
cwcli invreport Remote Access
You can also perform the cwcli invreport tasks using the servlet. You will have to upload a payload
XML file, which contains the cwcli invreport command arguments and CiscoWorks user credentials.
You have to write your own script to invoke the servlet with a payload of this XML file and the servlet
returns the output either on the console or in the specified output file, if the credentials are correct and
arguments are valid.
The name of the servlet is /rme/cwcli.