19-27
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
import
put
Name cwcli config import – CiscoWorks cwcli config import function
Syntax cwcli config import -u userid -p password [-d debuglevel] [-m email] [-l logfile][-timeout time] {
-device name |-ipaddress address} [-f filename] [-save [-reboot]][-input argumentFile ]
cwcli config import -help
Description import retrieves the configuration from a file specified by the -f argument, and pushes it to the device
specified by the -device and/or the -view argument, adding to the device's running configuration.
If you do not specify a file name, a file named device name.cfg is used. You can specify the -save
and -reboot arguments, which operate the same as for the put argument.
To run the import argument against more than one device, you must specify the -input argument, which
takes a file name as an argument. The contents of the file must be similar to those described in the Input
List File Format section of cwcli config(1).
The configuration archive might be updated after you specify the import argument if the loaded
configuration is different from the latest configuration in the archive.
Name cwcli config put – CiscoWorks cwcli config put function
Syntax cwcli config put -u userid -p password [-d debuglevel] [-m email] [-l logfile] { -device name
|-ipaddress address -version number}[-config 1|2][-save [-reboot]] [-input
argumentFile][-timeout seconds] [-filetype vlan|running][-primary_user primary user name]
[-primary_pass Base64 encoded primary password] [-enable_pass Base64 encoded enable password]]
cwcli config put -help
Description put retrieves the configuration specified by -version from the configuration archive and pushes it to the
device specified by the -device and/or -view argument
The -filetype can be used to specify the type of configuration viz running/vlan configuration. By
default, the running configuration is considered
In case of running configuration, the archived running configuration is merged with the running
configuration on the device unless you specify -save, in which case, the archived configuration is
also written to the device's memory.
In case of vlan configuration, the archived vlan configuration overwrites that on the device. The vlan
configuration will not come into effect until the device is rebooted. You can specify -reboot to
reboot the device after the configuration (running/vlan) is pushed to the device.
To run the put command on more than one device at a time, you must use the -input argument, which
takes a file name as an argument. The contents of the file must be similar to those described in the Input
List File Format section of cwcli config(1).