29.
NVRAM Configuration History
MN700004 Rev 01
334
Description of Commands
record configuration-history nvram
The
record configuration-history nvram
command, in Global Configuration mode, enables
recording the configuration commands into the NVRAM. The
no
form of this command
disables the recording, but does not clear it.
If you enable configuration-history recording, you must exit configuration mode for the
command to take effect. Actual recording of configuration commands (not
show
commands)
starts the next time you re-enter global Configuration mode and continues as long as that
mode or any mode under it is active. In subsequent configuration sessions, as long as
configuration-history recording is enabled, configuration commands accumulate in NVRAM
by session.
If you disable configuration-history recording, recording stops immediately (you need not exit
configuration mode for the command to take effect).
Command Syntax
device-name
(config)#
record configuration-history nvram
device-name
(config)#
no record configuration-history nvram
clear configuration-history nvram
The
clear configuration-history nvram
command, in Global Configuration mode, removes
all the recorded configuration commands from NVRAM.
Command Syntax
device-name
(config)#
clear configuration-history nvram
Displaying the Configuration History
Table 29-2 summarizes the commands that display configuration-history information.
Table 29-2 Commands for Viewing Configuration-History Information
C o m m a n d D e s c r i p t i o n
show configuration-history
Displays all configuration commands stored in the NVRAM
during the specified session.
show configuration-history all
Displays all configuration commands stored in the NVRAM
during all recorded sessions.
show configuration-history size
Displays the number of sessions currently stored in the
NVRAM.
show configuration-history status
Displays the current recording state of configuration history
(enabled or disabled).