Cisco Systems 4.1 Dust Collector User Manual


 
19-24
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
compare
compareanddeploy
Name cwcli config compare – CiscoWorks cwcli config compare function
Syntax cwcli config compare -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 compare -help
Description compare lists the differences between versions of a device configuration. You can specify the versions to
be compared by using the
-version argument or the -date argument.
If you specify the -version argument with only one version number, that version is compared with
the latest archived configuration of the device.
If you specify the -date argument with only one date, the configuration version with that date is
compared with the latest archived configuration. When specifying a date, use the format
mm/dd/yyyy.
If you do not specify either a date or a version, the latest two archived configurations are compared.
You can specify multiple devices by separating each device name with a comma.
The output of the Compare function can be interpreted as follows:
Lines preceded by '+' sign signify those occurring only in the first version but not in the latter.
Lines preceded by '-' sign signify those occurring only in the latter version but not in the first.
Lines preceded by '<' and '>' connote those which are present in both files but differ from each
other.
Name cwcli config compareanddeploy – CiscoWorks compare and download configuration with Baseline
template function.
Syntax cwcli config compareanddeploy -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] [-primary_user primary user name] [-primary_pass Base64
encoded primary password] [
-enable_pass Base64 encoded enable password]
cwcli config compareanddeploy -help
Description compareanddeploy creates a job that compares the given Baseline template with the latest version of the
configuration for a device and downloads the configuration to the device if there is non-compliance.
If you specify -baseline argument, the name of the Baseline template is compared with the latest
configuration version of the device and later downloaded to the device if there are any commands in the
baseline config file which are not compliant with the latest configuration of the device in the archive.
Note The Baseline template must not have any parameters for the command to succeed.