免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2307 | 回复: 0
打印 上一主题 下一主题

cisco 交换机flash恢复方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-01-05 23:03 |只看该作者 |倒序浏览
:em11:

www.chinapint.com
www.nanfanginfo.com

cisco 交换机 FLASH 恢复方法(CU)
一台cisco 3500不小心删除了FLASH 文件,不能正常BOOT,急,没地方有启动文件下载,也联系不上cisco ,正急时,我发现网络中还有台cisco3550,于是通过TFTP ,进入/FLASH 目录中,把其中的三个重要启动文件,备份下来,然后打开已不行的那台交换机,等到 SWITCH 提示后,采用XMDOEM方法传送文件到FLASH 目录中,(BOOT XMDOEM /FLASH/ ) ,过两个小时后,三个文件传送完毕,重新启动后,一切OK!
下面是具体操作信息:
The system is unable to boot automatically because there
are no bootable files to boot.

switch: ?
           ? -- Present list of available commands
        boot -- Load and boot an executable image
         cat -- Concatenate (type) file(s)
        copy -- Copy a file
      delete -- Delete file(s)
         dir -- List files in directories
  flash_init -- Initialize flash filesystem(s)
      format -- Format a filesystem
        fsck -- Check filesystem consistency
        help -- Present list of available commands
load_helper -- Load and initialize a helper image
      memory -- Present memory heap utilization information
       mkdir -- Create dir(s)
        more -- Concatenate (display) file(s)
      rename -- Rename a file
       reset -- Reset the system
       rmdir -- Delete empty dir(s)
         set -- Set or display environment variables
      set_bs -- Set attributes on a boot sector filesystem
   set_param -- Set system parameters in flash
       sleep -- Sleep a specified number of seconds
        trap -- Cause a software breakpoint to occur
-- MORE --
                   type -- Concatenate (type) file(s)
       unset -- Unset one or more environment variables
     version -- Display boot loader version
switch: version            ;看交换机版本。
C3500XL Boot Loader (C3500-HBOOT-M) Version 12.0(5.2)XU, MAINTENANCE INTERIM SOF
TWARE
Compiled Mon 17-Jul-00 18:42 by ayounes
switch: dir

List of filesystems currently registered:

               flash[0]: (read-write)
              xmodem[1]: (read-only)
                null[2]: (read-write)
                  bs[3]: (read-only)


switch: copy xmodem: flash:c3500XL-c3h2s-mz.120-5.WC3b.bin ;COPY BOOT文件到FLASH 中。
Begin the Xmodem or Xmodem-1K transfer now...
CCCCCCCCC.......................................................................
................................................................................
................................................................................
................................................................................
................................................................................
.....................................
File "xmodem:" successfully copied to "flash:c3500XL-c3h2s-mz.120-5.WC3b.bin"
switch: copy xmodem: flash:config.text  ;config.text 是配置文件
Begin the Xmodem or Xmodem-1K transfer now...
CCCCCCCCC.
File "xmodem:" successfully copied to "flash:config.text"
switch: copy xmodem: flash:env_vars ;零时文件夹
Begin the Xmodem or Xmodem-1K transfer now...
CCCCCCCC.
File "xmodem:" successfully copied to "flash:env_vars"
switch: dir

List of filesystems currently registered:

               flash[0]: (read-write)
              xmodem[1]: (read-only)
                null[2]: (read-write)
                  bs[3]: (read-only)

switch: dir flash:    ;看文件是否已经传入FLASH中
Directory of flash:/

2    -rwx  1751936   <date>;               c3500XL-c3h2s-mz.120-5.WC3b.bin
3    -rwx  1408      <date>;               config.text
4    -rwx  128       <date>;               env_vars

1857536 bytes available (1755136 bytes used)
switch: boot  ;引导启动
Loading "flash:c3500XL-c3h2s-mz.120-5.WC3b.bin"...##############################
################################################################################
##########################################################

File "flash:c3500XL-c3h2s-mz.120-5.WC3b.bin" uncompressed and installed, entry p
oint: 0x3000
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 Internetwork Operating System Software
IOS (tm) C3500XL Software (C3500XL-C3H2S-M), Version 12.0(5)WC3b, RELEASE SOFTWA
RE (fc1)
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Fri 15-Feb-02 10:51 by antonino
Image text-base: 0x00003000, data-base: 0x00337600


Initializing C3500XL flash...
flashfs[1]: 3 files, 1 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 3612672
flashfs[1]: Bytes used: 1755136
flashfs[1]: Bytes available: 1857536
flashfs[1]: flashfs fsck took 3 seconds.
flashfs[1]: Initialization complete.Can't set variable with illegal char "" (0x
1A) in name.

...done Initializing C3500XL flash.
C3500XL POST: System Board Test: Passed
C3500XL POST: Daughter Card Test: Passed
C3500XL POST: CPU Buffer Test: Passed
C3500XL POST: CPU Notify RAM Test: Passed
C3500XL POST: CPU Interface Test: Passed
C3500XL POST: Testing Switch Core: Passed
C3500XL POST: Testing Buffer Table: Passed
C3500XL POST: Data Buffer Test: Passed
C3500XL POST: Configuring Switch Parameters: Passed
C3500XL POST: Ethernet Controller Test: Passed
C3500XL POST: MII Test: Passed
cisco WS-C3524-XL (PowerPC403) processor (revision 0x01) with 8192K/1024K bytes
of memory.
Processor board ID FAA0452H00H, with hardware revision 0x00
Last reset from power-on

Processor is running Enterprise Edition Software
Cluster command switch capable
Cluster member switch capable
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:04:C1:76:68:40
Motherboard assembly number: 73-3904-11
Power supply part number: 34-0851-02
Motherboard serial number: FAB0450A1GO
Power supply serial number: PHI0446016X
Model revision number: A0
Motherboard revision number: B0
Model number: WS-C3524-XL-EN
System serial number: FAA0452H00H


Press RETURN to get started!


C3500XL INIT: Complete

00:00:18: %SYS-5-CONFIG: Configured from NVRAM by console
00:00:18: %SYS-5-RESTART: System restarted --
cisco Internetwork Operating System Software
IOS (tm) C3500XL Software (C3500XL-C3H2S-M), Version 12.0(5)WC3b, RELEASE SOFTWA
RE (fc1)
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Fri 15-Feb-02 10:51 by antonino
cisco>;en
Password:
Password:
cisco#dir
Directory of flash:/

  2  -rwx     1751936   Jan 01 1970 01:03:57  c3500XL-c3h2s-mz.120-5.WC3b.bin
  3  -rwx        1408   Jan 01 1970 09:20:52  config.text
  4  -rwx         128   Jan 01 1970 09:22:24  env_vars
  5  -rwx          25   Mar 01 1993 00:00:18  snmpengineid

3612672 bytes total (1857024 bytes free)
cisco#wr
Building configuration...
[OK]
cisco#show run
Building configuration...

Current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname cisco
!
enable secret 5 $1$o2wd$.d.vtWguZ/TUqm/NLWV6S0
!
!
!
!
!
!
ip subnet-zero
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface VLAN1
ip address 192.168.10.2 255.255.255.0
no ip directed-broadcast
no ip route-cache
!
snmp-server engineID local 0000000902000004C1C5C640
snmp-server community private RW
snmp-server community public RO
!
line con 0
transport input none
stopbits 1
line vty 0 4
password cisco1
login
line vty 5 15
password cisco2
login
!
end
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP