Managing Configuration Archive Files

All CLI commands in this procedure are available in executive mode. After reloading the system, enter the enable command to change from user mode to executive mode.
  1. Enter the following command to change the archive size.
    device(config)# cfg-archive revert-option archive-size 90
    User configurable value that determines the number of archives the system can maintain. Valid values range from 5 through 100. The default maximum value for archive size is 100.
  2. Enter the following command to show the contextual differences between two archives.
    device# cfg-archive management compare-archives
    The archive comparison is a contextual comparison instead of a line-by-line comparison. The comparison output is prefixed with '+' or '-'. There are three files involved while comparing two archive files: a baseline file, a compare file, and an ignore file.
  3. Enter the following command to compare an archive with the running configuration.
    device# cfg-archive management compare-running-config
    This provides a comparison between running configuration and an existing archive. Shows the contextual difference between the system running configuration and a designated archive.
  4. Enter the following command to delete a designated archive or all archives.
    device# cfg-archive management delete
    Before deleting an archive, you are prompted to confirm. Use cfg-archive management list to verify the deletion.
  5. Enter the following command to list all of the archive names.
    device# cfg-archive management list
    For multiple configuration files, the files will be shown in the order of their time of modification.
  6. Enter the following command to rename a designated archive to a new archive name.
    device# cfg-archive management rename
    The archive names in source and destination must comply with the archive naming convention to rename an existing archive.
  7. Enter the following command to show the content of a designated archive.
    device# cfg-archive management show-archive-content
  8. Enter the following command to cancel the comparison aborted by pressing the Ctrl+C (Ctrl+Shift+c) keys.
    device# cfg-archive management cancel-comparison  
  9. Enter the following command to compare a designated archive with the startup-configuration.
    device# cfg-archive management compare-startup-config 10
  10. Enter the following command to copy an archive to another.
    device# cfg-archive management copy 
  11. Enter the following command to copy the running configuration to an archive.
    device# cfg-archive management copy-running-config 
  12. Enter the following command to delete the unsaved running configuration before last reload.
    device# cfg-archive management delete-unsaved-cfg
  13. Enter the following command to reload with an archive.
    device# cfg-archive management reload-with-archive
  14. Enter the following command to rename a designated archive to a new archive name.
    device# cfg-archive management rename
  15. Enter the following command to shows the set of current default values used in auto revert feature.
    device# cfg-archive management show-current-config
  16. Enter the following command to show the unsaved running configuration before last reload, which was not saved in non-volatile memory.
    device# cfg-archive management show-unsaved-cfg