cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
652
Views
5
Helpful
3
Replies

How to see entered commands in privileged mode?

Aleksei.Zjabkin
Level 1
Level 1

Hi everyone!

I'm replacing a router with a huuuge config.

But I have no idea how to view commands entered on the old router in privileged mode.

Please help!

3 Replies 3

p.mcgowan
Level 3
Level 3

show history will show you a list of previously entered commands

SunilKhanna
Level 1
Level 1

You can use "show history" or "show history all". Here is an example.

Router# show history

  help

  where

  show hosts

  show history

Router# show history all


This product contains cryptographic features and is subject to United

States and local country laws governing import, export, transfer and

use. Delivery of Cisco cryptographic products does not imply

third-party authority to import, export, distribute or use encryption.

Importers, exporters, distributors and users are responsible for

compliance with U.S. and local country laws. By using this product you

agree to comply with applicable laws and regulations. If you are unable

to comply with U.S. and local laws, return this product immediately.


A summary of U.S. laws governing Cisco cryptographic products may be found at:


If you require further assistance please contact us by sending email to


Cisco 7206VXR (NPE400) processor (revision A) with 491520K/32768K bytes of memo.

Processor board ID 31410931

R7000 CPU at 350MHz, Implementation 39, Rev 3.3, 256KB L2, 4096KB L3 Cache

6 slot VXR midplane, Version 2.7


Last reset from power-on          


PCI bus mb0_mb1 (Slots 0, 1, 3 and 5) has a capacity of 600 bandwidth points.

Current configuration on bus mb0_mb1 has a total of 600 bandwidth points. 

This configuration is within the PCI bus capacity and is supported. 


PCI bus mb2 (Slots 2, 4, 6) has a capacity of 600 bandwidth points.

Current configuration on bus mb2 has a total of 180 bandwidth points 

This configuration is within the PCI bus capacity and is supported. 


Please refer to the following document "Cisco 7200 Series Port Adaptor

Hardware Configuration Guidelines" on Cisco.com <http://www.cisco.com>

for c7200 bandwidth points oversubscription and usage guidelines.


2 FastEthernet interfaces

4 Serial interfaces

125K bytes of NVRAM.

Installed image archive


*Aug 12 04:17:08.415: %LINEPROTO-5-UPDOWN: Line protocol on Interface VoIP-Nullp

*Aug 12 04:17:08.419: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state p

*Aug 12 04:17:08.419: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state p

*Aug 12 04:17:08.419: %LINK-3-UPDOWN: Interface Serial2/0, changed state to down

*Aug 12 04:17:08.419: %LINK-3-UPDOWN: Interface Serial2/1, changed state to down

*Aug 12 04:17:08.419: %LINK-3-UPDOWN: Interface Serial3/0, changed state to up

*Aug 12 04:17:08.419: %LINK-3-UPDOWN: Interface Serial3/1, changed state to up

*Aug 12 04:17:08.419: %LINEPROTO-5-UPDOWN: Line protocol on Interface SSLVPN-VIp

62976K bytes of ATA PCMCIA card at slot 0 (Sector size 512 bytes).

125440K bytes of ATA PCMCIA card at slot 1 (Sector size 512 bytes).

8192K bytes of Flash internal SIMM (Sector size 256K).

*Aug 12 04:17:09.419: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEtherp

*Aug 12 04:17:09.419: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEtherp

*Aug 12 04:17:09.419: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0n

*Aug 12 04:17:09.419: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/1n

*Aug 12 04:17:09.419: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0p

*Aug 12 04:17:09.419: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/1p

*Aug 12 04:17:12.411: %LINK-3-UPDOWN: Interface Serial3/0, changed state to down

*Aug 12 04:17:12.411: %LINK-3-UPDOWN: Interface Serial3/1, changed state to down

*Aug 12 04:17:13.411: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0n

*Aug 12 04:17:13.411: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/1n



         --- System Configuration Dialog ---


Would you like to enter the initial configuration dialog? [yes/no]: 


% Please answer 'yes' or 'no'.

Would you like to enter the initial configuration dialog? [yes/no]: no



Would you like to terminate autoinstall? [yes]: yes

CMD: 'access-list 199 permit icmp host 10.10.10.10 host 20.20.20.20' 04:18:15 U9

CMD: 'crypto map NiStTeSt1 10 ipsec-manual' 04:18:15 UTC Wed Aug 12 2009

CMD: 'match address 199

' 04:18:15 UTC Wed Aug 12 2009

CMD: 'set peer 20.20.20.20          

' 04:18:15 UTC Wed Aug 12 2009

CMD: 'exit' 04:18:15 UTC Wed Aug 12 2009

CMD: 'no access-list 199' 04:18:15 UTC Wed Aug 12 2009

CMD: 'no crypto map NiStTeSt1' 04:18:15 UTC Wed Aug 12 2009


*Aug 12 04:18:15.403: %SYS-5-RESTART: System restarted --

Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(22)T,)

Copyright (c) 1986-2008 by Cisco Systems, Inc.

Compiled Fri 10-Oct-08 10:10 by prod_rel_team

*Aug 12 04:18:15.415: %ENTITY_ALARM-6-INFO: ASSERT INFO Fa0/0 Physical Port Adm 

*Aug 12 04:18:15.415: %ENTITY_ALARM-6-INFO: ASSERT INFO Fa0/1 Physical Port Adm 

*Aug 12 04:18:15.499: %CRYPTO-6-ISAKMP_ON_OFF: ISAKMP is OFF

*Aug 12 04:18:15.499: %CRYPTO-6-GDOI_ON_OFF: GDOI is OFF

*Aug 12 04:18:15.599: %ENTITY_ALARM-6-INFO: ASSERT INFO Se2/0 Physical Port Adm 

*Aug 12 04:18:15.599: %ENTITY_ALARM-6-INFO: ASSERT INFO Se2/1 Physical Port Adm 

*Aug 12 04:18:15.599: %ENTITY_ALARM-6-INFO: ASSERT INFO Se3/0 Physical Port Adm 

*Aug 12 04:18:15.599: %ENTITY_ALARM-6-INFO: ASSERT INFO Se3/1 Physical Port Adm 

*Aug 12 04:18:15.599: %SNMP-5-COLDSTART: SNMP agent on host Router is undergoint

*Aug 12 04:18:15.823: %SYS-6-BOOTTIME: Time taken to reboot after reload =  314s

*Aug 12 04:18:16.715: %LINK-5-CHANGED: Interface Serial2/0, changed state to adn

*Aug 12 04:18:16.719: %LINK-5-CHANGED: Interface FastEthernet0/0, changed staten

*Aug 12 04:18:16.723: %LINK-5-CHANGED: Interface FastEthernet0/1, changed staten

*Aug 12 04:18:16.727: %LINK-5-CHANGED: Interface Serial2/1, changed state to adn

*Aug 12 04:18:16.727: %LINK-5-CHANGED: Interface Serial3/0, changed state to adn

*Aug 12 04:18:16.727: %LINK-5-CHANGED: Interface Serial3/1, changed state to adn

*Aug 12 04:18:17.719: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern

*Aug 12 04:18:17.723: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEther9

CMD: 'conf t' 04:18:30 UTC Wed Aug 12 2009          

CMD: 'hostname 7206-3' 04:19:02 UTC Wed Aug 12 2009

CMD: 'ip host sjc-tftp02 171.69.17.17' 04:19:02 UTC Wed Aug 12 2009

CMD: 'ip host sjc-tftp01 171.69.17.19' 04:19:03 UTC Wed Aug 12 2009

CMD: 'ip host dirt 171.69.1.129' 04:19:03 UTC Wed Aug 12 2009

CMD: 'interface FastEthernet0/0' 04:19:03 UTC Wed Aug 12 2009

CMD: 'no ip proxy-arp' 04:19:03 UTC Wed Aug 12 2009

CMD: 'ip address 10.4.9.80 255.255.255.0' 04:19:03 UTC Wed Aug 12 2009

CMD: 'no shutdown' 04:19:04 UTC Wed Aug 12 2009

CMD: 'exit' 04:19:04 UTC Wed Aug 12 2009

CMD: 'ip classless' 04:19:05 UTC Wed Aug 12 2009


*Aug 12 04:19:06.123: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state p

*Aug 12 04:19:06.123: %ENTITY_ALARM-6-INFO: CLEAR INFO Fa0/0 Physical Port Admi9

CMD: 'ip default-network 0.0.0.0' 04:19:06 UTC Wed Aug 12 2009

CMD: 'ip default-gateway 10.4.9.1' 04:19:06 UTC Wed Aug 12 2009

CMD: 'config-register 0x2002' 04:19:07 UTC Wed Aug 12 2009

Regards,

sunil.

Regards, Sunil Khanna

Hi Aleksei,

show history
Display previously entered commands.

show history

Syntax Description

history
The list of previous entries.

Command Modes
Available in unprivileged mode, privileged mode, and configuration mode.

Usage Guidelines
The show history command displays previously entered commands. You can examine commands individually with the up and down arrows or by entering ^p to view previously entered lines or ^n to view the next line.

Examples

The following is sample output from the show history command when run in unprivileged mode:

pixfirewall> show history
show history
help
show history

The following is sample output from the show history command when run in privileged mode:

pixfirewall# show history
show history
help
show history
enable
show history

The following is sample output from the show history command when run in configuration mode:

pixfirewall(config)# show history
show history
help
show history
enable
show history
config t
show history


HTH
Please click on the correct answer if this answered your question.
Regards,
Naidu.