cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1200
Views
0
Helpful
3
Replies

Show history no longer works above enable mode

jasonww04
Level 1
Level 1

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 3

Rolf Fischer
Level 9
Level 9

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

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.

jasonww04
Level 1
Level 1

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