19-9
User Guide for Resource Manager Essentials 4.1
OL-11714-01
Chapter 19 CLI Utilities
CWCLI
Reverting to Earlier Configuration Version
For running configuration, use either compare or export to decide, which version to revert to.
For VLAN configuration, look into the Configuration Version Report for the device to find the versions
for which VLAN configuration is also archived. Then use put to deploy the desired version.
The put function gets the requested version from the archive, writes it to the device. For Running
configuration, it archives it as the latest version of that device.
Example:
cwcli config put -u user -p pass -device zebra.domain.com -version 3
version 3 of device zebra's configuration is extracted from the archive and written to the device. It is also
stored in the archive as the latest version.
Example:
cwcli config put -u user -p pass -device zebra.domain.com -version 3 -filetype vlan
version 3 of device zebra's vlan configuration is extracted from the archive and written to the device.
Like import, the put function allows you to reboot the device using the -reboot argument, and to update
the startup configuration using the -save argument.
Writing Startup Configuration to Running Configuration
To write the startup configuration of the device to its running configuration. Use the start2run function
of cwcli config to retrieve the startup configuration from the device, and then write it back to the
device's running configuration. The new running configuration is archived as the latest version.
Example:
cwcli config start2run -u user -p pass -device zebra.domain.com
To ensure that the running configuration on the device is stored in the archive, that is, synchronize the
archive with the device. Use the get function to do so.
Example:
cwcli config get -u admin -p admin -device zebra.domain.com
The running configuration of device zebra is retrieved from the device and archived as the latest version,
only if there is a need to do so. However, if the running configuration does not differ from the latest
archived version, then the archival does not take place.
Configuration updates can be performed on multiple devices at once. For more details see “Running
cwcli config on Multiple Devices” section on page 19-10.
Deleting Configurations
Use the delete function of cwcli config to delete unwanted versions from the archive, to conserve disk
space, and to reduce visual clutter on reports.
Example:
cwcli config delete -u user -p pass -device zebra.domain.com -version 2 5
All versions between and including 2 and 5 are removed from the archive. There is also a time-stamp
based variant.