19-30
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
listversions
createdeployparamfile
directbaselinedeploy

Overview: cwcli netconfig Command

The cwcli netconfig command lets you use NetConfig from the command line.
Name cwcli config listversions – CiscoWorks cwcli config listversions function
Syntax cwcli config listversions -u userid -p password [-d debuglevel] [-m email][-l logfile]{ -device name
| -view name | -device name -view name | -ipaddress list} [-baseline][-input argumentFile]
cwcli config listversions -help
Description Listversions (specified by "listversions") lists the different versions of configuration files archived in the
archival system. If you use the -baseline argument, only the names of the Baseline templates are displayed.
You can choose a template and use it inline with the comparewithbaseline and compareanddeploy
commands.
Name cwcli config createdeployparamfile - CiscoWorks cwcli config createdeployparamfile function.
Syntax cwcli config createdeployparamfile -u userid -p password [-d debuglevel] [-m email][-l
logfile][-jobid comparewithbaseline jobid] [ -baseline baselinefile ] [-f parameterfile]
cwcli config createdeployparamfile -help
Description createdeployparamfile creates a parameter file if the Baseline template containing the parameters is
specified. You can use the -jobid argument to specify the job identifier of the previously executed
comparewithbaseline job. You can choose a template with the -baseline argument and specify the name
of the Baseline template for which the parameter file has to be created.
Name cwcli config directbaselinedeploy - CiscoWorks cwcli config directbaselinedeploy function
Syntax cwcli config directbaselinedeploy -u userid -p password [-d debuglevel] [-m email][-l logfile] {
-baseline baselinefile } {-substitute parameterfile}[ -timeout seconds] [-primary_user primary
user name] [-primary_pass Base64 encoded primary password] [-enable_pass Base64 encoded enable
password]
cwcli config directbaselinedeploy -help
Description directbaselinedeploy creates a job that downloads the given Baseline template after retrieving the
values of the parameters in the template from the given parameter file. You can use the -timeout
argument to specify the duration of the interval in seconds between the two successive polling cycles.
You can use the -baseline to specify the name of the Baseline template which will be 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. You can use the -substitute to substitute the values from the XML parameter file for the
parameters specified in the template.