Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Show history no longer works above enable mode

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?

3 REPLIES

Re: Show history no longer works above enable mode

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

New Member

Show history no longer works above enable mode

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.

New Member

Re:Show history no longer works above enable mode

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

389
Views
0
Helpful
3
Replies
CreatePlease login to create content