07-19-2013 03:51 PM
Somewhere in the 15.2 train I noticed I could no longer see the command history in global config or any other config mode. It only works in enable mode.
Has anyone else noticed this?
Do I now have to enable show history for config mode?
07-20-2013 03:03 AM
Hi Jason,
I didn't know so far that the output of "do show history" in config mode shows the config commands too, particulary because the command description only says:
To list the commands you have entered in the current EXEC session, use the show history command in EXEC mode.
But your're right, with my 12.4(21) it does:
R1(config)#do show history
int loop0
ip addr 192.168.1.1 255.255.255.0
end
However, if they've changed that behavior somewhere in 15.2, there's a simple alternative:
R1#show run | b ^archive
archive
log config
logging enable
hidekeys
!
R1#show archive log config all
idx sess user@line Logged command
1 3 console@console |interface Loopback0
2 3 console@console | ip address 192.168.1.1 255.255.255.0
That's even better because the archive remains after logoff.
Hope that helps
Rolf
07-23-2013 12:38 PM
That looks like a good start. On the router I'm in there seems to be more to the archive command than just what you laid out. I'll look up the command for my IOS version.
09-17-2013 01:13 PM
The archive is useful but no replacement for show history. I have a pair of routers in an HSRP active-standby setup so I'm constantly being to copy commands between the two. Show history allows me to copy and paste all the lines at once.
Sent from Cisco Technical Support Android App
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide