19-25
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
comparewithbaseline
delete
deploycomplianceresults
Name cwcli config comparewithbaseline - CiscoWorks compare configuration with Baseline template
function.
Syntax cwcli config comparewithbaseline -u userid -p password [-d debuglevel] [-m email][-l logfile] {
-device list | -view name | -device list -view name |-ipaddress list }{ -baseline baselinefile }[
-timeout seconds] [-input argumentFile]
cwcli config comparewithbaseline -help
Description comparewithbaseline creates a job that compares the given Baseline template with the latest version of
the configuration for a device.
If you use the -baseline argument, the name of the Baseline template is compared with the latest
configuration version of the device.
Name cwcli config delete – CiscoWorks cwcli config delete function
Syntax cwcli config delete -u userid -p password [-d debuglevel] [-m email] [-l logfile] { -device list |
-view name | -device list -view name | -ipaddress list } { -version version1 [version2] | -date date1
[date2] }
cwcli config delete -help
Description delete deletes the specified device configuration from the archive. You can use the -date argument or
the -version argument to specify which configurations to delete.
• If you specify two dates, all configurations archived between those two dates are deleted.
• If you specify only one date, all configurations up to and including the configuration archived on that
date are deleted.
• If you specify two versions, all configurations between and including the two versions are deleted.
• If you specify only one version, the configuration corresponding to that version is deleted.
Name cwcli config deploycomplianceresults - CiscoWorks deploy command with baseline function.
Syntax cwcli config deploycomplianceresults -u userid -p password [-d debuglevel] [-m email][-l logfile]
{ -substitute datafile } {-jobid jobID}[ -timeout seconds][-primary_user primary user name]
[-primary_pass Base64 encoded primary password] [-enable_pass Base64 encoded enable password]
cwcli config deploycomplianceresults -help
Description deploycomplianceresults uses the previously executed comparewithbaseline job to get the
non-compliance commands and creates a job after replacing the parameters if any in the non-compliance
commands with the values from the data file and then downloads those commands to ensure the
compliance with the baseline config.
If you specify the -baseline argument, the name of the Baseline template which will be compared with
the latest configuration version of the device.