Cisco Systems 4.1 Dust Collector User Manual


 
19-40
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
Overview: cwcli export Command
cwcli export is a command line tool that also provides servlet access to inventory, configuration and
change audit data.
This can be used for generating inventory, configuration archive, and change audit data for devices in
Resource Manager Essentials (RME).
Note You cannot run this command for the RME devices that are in Conflicting or Suspended state.
This tool supports the following features:
Generating change audit data in XML format
The tool uses the existing Change Audit log data and generates the Change Audit log data in XML
format.
See Running cwcli export changeaudit for the usage and XML schema details
Generating configuration data in XML format
The tool uses existing configuration archive APIs and generates latest configuration data from the
configuration archive in XML format.
Elements in the XML file are created at the configlet level in the current configuration archive.
Predefined rules that currently exist in the configuration archive are used to get the configlets data.
See Running cwcli export config for the usage and XML schema details
Generating inventory data in XML format
The tool has servlet access and command line utilities that can generate inventory data for devices
managed by the RME server.
See Running cwcli export inventory Command for the usage and XML schema details
The cwcli export command is located in the following directories, where install_dir is the directory
in which CiscoWorks is installed:
On UNIX systems, /opt/CSCOpx/bin
On Windows systems, install_dir\CSCOpx\bin
The default install directory is C:\Program Files.
If you install RME on an NTFS partition on Windows, only users in the administrator or casuser group
can access
cwcli export. Users with read-execute access to the CSCOpx\files\archive directory and the
directories under that can also use
cwcli export.
You can also perform the cwcli export tasks using the servlet. You will have to upload a payload XML
file, which contains the
cwcli export 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.
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