一、准备工作以兰州营业部为例
1、信息备份
命令:
show run
show arp
show mac-address all
show ver
show int
sh port brief
show ip int b
show ip route
show spann mst
show vrrp
show logg b
show system mpu
show system lpu
show system sfu
show tech
2、测试
1) 根据show arp得出的IP地址,用ping命令抽查测试这些主机是否ping通;
2) 要求二级行科技技术人员提前做好测试。
3、确认flash有足够存储空间
GSLZRT0A-C1#filesystem
GSLZRT0A-C1(config-fs)#volume
volume descriptor ptr (pVolDesc):      0x5fd7cb0
cache block I/O descriptor ptr (cbio):  0x5ff4ef0
auto disk check on mount:              DOS_CHK_REPAIR | DOS_CHK_VERB_2
max # of simultaneously open files:    22
file descriptors in use:                0
# of different files in use:            0
# of descriptors for deleted files:    0
# of  obsolete descriptors:            0
current volume configuration:
- volume label:        NO LABEL ; (in boot sector:                )
- volume Id:          0x1a4
- total number of sectors:    63,356
- bytes per sector:            512
- # of sectors per cluster:    4
- # of reserved sectors:      1
- FAT entry size:              FAT16
- # of sectors per FAT copy:  62
- # of FAT table copies:      2
- # of hidden sectors:        4
- first cluster is in sector # 140
- Update last access date for open-read-close = FALSE
- directory structure:        VFAT
- root dir start sector:              125
- # of sectors per root:              15
- max # of entries in root:            240
FAT handler information:
------------------------
- allocation group size:      2 clusters
- free space on volume:        13,021,184 bytes
//查看得知当前空间还剩余13M空间,待升级版本(6.5.2)大小为15M。说明空间不够,此时需要先删除原人flash中的软件,再进行升级。
GSLZRT0A-C1(config-fs)#dir
  size          date      time      name
--------      ------    ------    --------
18804152  OCT-13-2011  16:24:10  sphb-g-6.3.17gh.pck 
0          MAY-23-2012  15:58:20  history           
409514    MAY-28-2014  14:38:44  syslog           
102387    MAY-28-2014  14:31:04  logging           
17882      NOV-29-2013  13:44:00  startup           
2048      JUN-01-2012  10:55:00  snmp              <DIR>
//删除原有交换机软件
GSLZRT0A-C1(config-fs)#delete sphb-g-6.3.17gh.pck
WARNING:
The Data of this file will be lost! if OS is deleted,the system will hangup!
Please confirm to continue?(Yes/No)y
Delete /flash/sphb-g-6.3.17gh.pck OK
4.配置PC与交换机升级接口:
GSLZRT0A-C1#conf t
GSLZRT0A-C1(config)#int dc0
GSLZRT0A-C1(config-if-dc0)#ip add 1.1.1.2 255.255.255.0
GSLZRT0A-C1(config-if-dc0)#no shutdown
PC的网卡地址设置为1.1.1.1
5.PC上配置好FTP软件,路径为新版本所在文件夹,用户名:target 密码:target
(略)
6.交换机软件与配置文件备份:
GSLZRT0A-C1(config-fs)#copy file-system /flash/sphb-g-6.3.17gh.pck ftp 1.1.1.1 target target sphb-g-6.3.17gh.pck
GSLZRT0A-C1(config-fs)#copy file-system /flash/startup ftp 1.1.1.1 target target startup
二、升级步骤
升级顺序依次为:MonitorCMM IOS
1. 升级Monitor
GSLZRT0A-C1#sysupdate master 1.1.1.1 Monitorrh02_mpu_V1.39.bin monitor ftp target target
Do you really want to update "Monitorrh02_mpu_V1.39.bin" ? (Yes|No): y
downloading "Monitorrh02_mpu_V1.39.bin" : >>>>>>>>>>>>>>>>>>>>>>#略>>>>>>>>OK
Download "Monitorrh02_mpu_V1.39.bin" (524288 Bytes) successfully
Update monitor flash.
...............................................................................................................................
Sysupdate monitor Monitorrh02_mpu_V1.39.bin successfully.
2. 在文件系统下,通过copy命令从ftp服务器上下载LPUSFUmonitor程序到flash
GSLZRT0A-C1#filesystem
GSLZRT0A-C1(config-fs)#copy ftp 1.1.1.1 target target Monitorrh02_cpua_V1.25.bin file-system /flash/Monitorrh02_cpua_V1.25.bin
Downloading>>>>>>>>>>>>>>>>>#OK!
GSLZRT0A-C1(config-fs)#copy ftp 1.1.1.1 target target Monitorrh02_cpub_V1.25.bin file-system /flash/Monitorrh02_cpub_V1.25.bin
Downloading>>>>>>>>>>>>>>>>>#OK!
3.升级LPUSFU对应的monitor程序(交换机有几块LPUSFU就升级几块)
1) LPU升级(若LPU只有一块并且在lpu 0槽):
GSLZRT0A-C1#connect lpu 0
Convert name lpu0 to slot number 0, lpu start id 0
done
switch>enable
password:admin
switch#monitorupdate ?
    <WORD>                File name on the mpu, default is monitor-cpua.bin(显示monitorcpua,就升级cpua.bin程序)ios13测试版