Cisco交换机的恢复出产设置

我发现ROMMON模式下有一个reset,命令但是当我使用之后该命令并没有清除nvram:startup-config和flash:config.text两个文件重启交换机任然会加载这些配置所以还是应该用erase startup-config 来清除配置才保险。


相关结果输出

switch: reset


Are you sure you want to reset the system (y/n)?y


System resetting...



Boot Sector Filesystem (bs) installed, fsid: 2


Base ethernet MAC Address: 28:93:fe:8d:88:80


Xmodem file system is available.


The password-recovery mechanism is enabled.


Initializing Flash...


flashfs[0]: 459 files, 6 directories


flashfs[0]: 0 orphaned files, 0 orphaned directories


flashfs[0]: Total bytes: 32514048


flashfs[0]: Bytes used: 21179392


flashfs[0]: Bytes available: 11334656


flashfs[0]: flashfs fsck took 8 seconds.


...done Initializing Flash.


done.


Loading "flash:c3560-ipservicesk9-mz.122-50.SE4.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


File "flash:c3560-ipservicesk9-mz.122-50.SE4.bin" uncompressed and installed, entry point: 0x1000000


executing...

              Restricted Rights Legend


Use, duplication, or disclosure by the Government is

subject to restrictions as set forth in subparagraph

(c) of the Commercial Computer Software - Restricted

Rights clause at FAR sec. 52.227-19 and subparagraph

(c) (1) (ii) of the Rights in Technical Data and Computer

Software clause at DFARS sec. 252.227-7013.


          cisco Systems, Inc.

          170 West Tasman Drive

          San Jose, California 95134-1706




Cisco IOS Software, C3560 Software (C3560-IPSERVICESK9-M), Version 12.2(50)SE4, RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

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

Compiled Fri 26-Mar-10 07:31 by prod_rel_team

Image text-base: 0x01000000, data-base: 0x02D00000


Initializing flashfs...


flashfs[1]: 459 files, 6 directories

flashfs[1]: 0 orphaned files, 0 orphaned directories

flashfs[1]: Total bytes: 32514048

flashfs[1]: Bytes used: 21179392

flashfs[1]: Bytes available: 11334656

flashfs[1]: flashfs fsck took 2 seconds.

flashfs[1]: Initialization complete....done Initializing flashfs.


Checking for Bootloader upgrade.. not needed

POST: CPU MIC register Tests : Begin

POST: CPU MIC register Tests : End, Status Passed


POST: PortASIC Memory Tests : Begin

POST: PortASIC Memory Tests : End, Status Passed


POST: CPU MIC interface Loopback Tests : Begin

POST: CPU MIC interface Loopback Tests : End, Status Passed


POST: PortASIC RingLoopback Tests : Begin

POST: PortASIC RingLoopback Tests : End, Status Passed


front_end/ (directory)

extracting front_end/fe_type_1 (34760 bytes)

extracting front_end/fe_type_2 (78400 bytes)

extracting front_end/front_end_ucode_info (86 bytes)

extracting ucode_info (76 bytes)

POST: PortASIC CAM Subsystem Tests : Begin

POST: PortASIC CAM Subsystem Tests : End, Status Passed


POST: PortASIC Port Loopback Tests : Begin

POST: PortASIC Port Loopback Tests : End, Status Passed


Waiting for Port download...Complete



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:

http://www.cisco.com/wwl/export/crypto/tool/stqrg.html


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

[email protected].


cisco WS-C3560G-48PS (PowerPC405) processor (revision H0) with 131072K bytes of memory.

Processor board ID FOC1412Y4ZS

Last reset from power-on

1 Virtual Ethernet interface

52 Gigabit Ethernet interfaces

The password-recovery mechanism is enabled.


512K bytes of flash-simulated non-volatile configuration memory.

Base ethernet MAC Address       : 28:93:FE:8D:88:80

Motherboard assembly number     : 73-10212-05

Power supply part number        : 341-0108-04

Motherboard serial number       : FOC14123HQ6

Power supply serial number      : DCA1408A4KK

Model revision number           : H0

Motherboard revision number     : C0

Model number                    : WS-C3560G-48PS-S

System serial number            : FOC1412Y4ZS

Top Assembly Part Number        : 800-26845-02

Top Assembly Revision Number    : C0

Version ID                      : V06

CLEI Code Number                : COMXA00ARA

Hardware Board Revision Number  : 0x09



Switch Ports Model              SW Version            SW Image                

------ ----- -----              ----------            ----------              

*    1 52    WS-C3560G-48PS     12.2(50)SE4           C3560-IPSERVICESK9-M    





Press RETURN to get started!



*Mar  1 00:02:32.722: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down

*Mar  1 00:02:35.046: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan

*Mar  1 00:02:38.678: %SYS-5-CONFIG_I: Configured from memory by console

*Mar  1 00:02:39.802: %SYS-5-RESTART: System restarted --

Cisco IOS Software, C3560 Software (C3560-IPSERVICESK9-M), Version 12.2(50)SE4, RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

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

Compiled Fri 26-Mar-10 07:31 by prod_rel_team

*Mar  1 00:02:39.836: %SSH-5-ENABLED: SSH 1.99 has been enabled

*Mar  1 00:02:40.583: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down

Switch>

Switch>

Switch>

Switch>

Switch>en

Switch#

Switch#


Switch#dir all

Directory of flash:/


   2  -rwx    12106419   Mar 1 1993 00:06:04 +00:00  c3560-ipservicesk9-mz.122-50.SE4.bin

   3  -rwx       10376   Mar 1 1993 00:32:00 +00:00  nvram

   5  -rwx         616   Mar 1 1993 00:02:38 +00:00  vlan.dat

   6  -rwx        2581   Mar 1 1993 00:49:03 +00:00  config.text

   7  drwx         192   Mar 1 1993 00:08:39 +00:00  c3560-ipbase-mz.122-35.SE5

 465  -rwx        1938   Mar 1 1993 00:49:03 +00:00  private-config.text

 466  -rwx        2072   Mar 1 1993 00:49:03 +00:00  multiple-fs


32514048 bytes total (11334656 bytes free)

Directory of system:/


   2  -r--           0                    <no date>  default-running-config

   4  dr-x           0                    <no date>  memory

   1  -rw-        3916                    <no date>  running-config

   3  dr-x           0                    <no date>  vfiles


No space information available

Directory of tmpsys:/


   6  drw-           0                    <no date>  eem_lib_system

--More--            5  drw-           0                    <no date>  eem_lib_user

  16  -rw-           0                    <no date>  eem_pnt_0

  18  -rw-           0                    <no date>  eem_pnt_1

  36  -rw-           0                    <no date>  eem_pnt_10

  38  -rw-           0                    <no date>  eem_pnt_11

  40  -rw-           0                    <no date>  eem_pnt_12

  42  -rw-           0                    <no date>  eem_pnt_13

  44  -rw-           0                    <no date>  eem_pnt_14

  46  -rw-           0                    <no date>  eem_pnt_15

  20  -rw-           0                    <no date>  eem_pnt_2

  22  -rw-           0                    <no date>  eem_pnt_3

  24  -rw-           0                    <no date>  eem_pnt_4

  26  -rw-           0                    <no date>  eem_pnt_5

  28  -rw-           0                    <no date>  eem_pnt_6

  30  -rw-           0                    <no date>  eem_pnt_7

  32  -rw-           0                    <no date>  eem_pnt_8

  34  -rw-           0                    <no date>  eem_pnt_9

   4  drw-           0                    <no date>  eem_policy

   8  drw-           0                    <no date>  eem_pub

  15  -rw-           0                    <no date>  eem_rpc_0

  17  -rw-           0                    <no date>  eem_rpc_1

  35  -rw-           0                    <no date>  eem_rpc_10

  37  -rw-           0                    <no date>  eem_rpc_11

--More--           39  -rw-           0                    <no date>  eem_rpc_12

  41  -rw-           0                    <no date>  eem_rpc_13

  43  -rw-           0                    <no date>  eem_rpc_14

  45  -rw-           0                    <no date>  eem_rpc_15

  19  -rw-           0                    <no date>  eem_rpc_2

  21  -rw-           0                    <no date>  eem_rpc_3

  23  -rw-           0                    <no date>  eem_rpc_4

  25  -rw-           0                    <no date>  eem_rpc_5

  27  -rw-           0                    <no date>  eem_rpc_6

  29  -rw-           0                    <no date>  eem_rpc_7

  31  -rw-           0                    <no date>  eem_rpc_8

  33  -rw-           0                    <no date>  eem_rpc_9

   7  drw-           0                    <no date>  eem_temp

   1  dr-x           0                    <no date>  lib


No space information available

Directory of nvram:/


 506  -rw-        2581                    <no date>  startup-config

 507  ----        1938                    <no date>  private-config

   1  -rw-         579                    <no date>  IOS-Self-Sig#3434.cer

   2  -rw-           0                    <no date>  ifIndex-table


--More--        524288 bytes total (517669 bytes free)


本文出自 “奋斗的菜鸟” 博客,谢绝转载!

你可能感兴趣的:(reset,交换机,恢复出厂设置,清除配置)