最佳答案
設備在獨立運行模式和IRF模式下的升級步驟略有不同,請根據實際組網情況選擇合適的升級步驟。
S12500-X係列交換機支持設備建立IRF(Intelligent Resilient Framework,智能彈性架構),配置了IRF功能的S12500-X交換機相互連接之後即虛擬化成一台IRF模式下的設備。IRF的相關介紹請參見《H3C S12500-X係列交換機 配置指導》中的“IRF配置指導”。
# 用戶PC通過Telnet或者Console口登錄到交換機上。
# 查看設備信息。
<Sysname> display device
Slot Type State Subslot Soft Ver Patch Ver
0 NONE Absent 0 NONE None
1 NONE Absent 0 NONE None
2 NONE Absent 0 NONE None
3 NONE Absent 0 NONE None
4 NONE Absent 0 NONE None
5 NONE Absent 0 NONE None
6 NONE Absent 0 NONE None
7 NONE Absent 0 NONE None
8 NONE Absent 0 NONE None
9 LSX1TGS48EA1 Normal 0 S12510-X-1002P06 None
10 LSX1FAB10B1 Normal 0 S12510-X-1002P06 None
11 LSX1FAB10B1 Normal 0 S12510-X-1002P06 None
12 NONE Absent 0 NONE None
13 NONE Absent 0 NONE None
14 NONE Absent 0 NONE None
15 NONE Absent 0 NONE None
16 LSX1SUP10A1 Standby 0 S12510-X-1002P06 None
17 LSX1SUP10A1 Master 0 S12510-X-1002P06 None
通過以上信息得出設備有兩塊主控板,主用主控板所在的槽位號為17,備用主控板所在的槽位號為16,用戶需要分別對主用主控板和備用主控板進行升級。
如果設備隻安裝一塊主控板,則用戶隻需對此主控板進行升級操作。
# 查看主用主控板和備用主控板存儲介質的剩餘空間大小。
· 查看主用主控板存儲介質的剩餘空間大小。
<Sysname> dir
Directory of flash:
0 drw- - Aug 06 2013 17:26:38 diagfile
1 -rw- 42 Aug 07 2013 08:55:30 ifindex.dat
2 drw- - Aug 06 2013 17:26:38 license
3 drw- - Aug 06 2013 18:26:41 logfile
4 -rw- 102294528 Apr 07 2013 13:47:21 S12500X-CMW710-E1002P01.ipe
5 -rw- 14908416 Aug 06 2013 17:21:31 s12500x-cmw710-boot-e1002p06.bin
6 -rw- 110083072 Aug 06 2013 17:23:20 s12500x-cmw710-system-e1002p06.bin
7 drw- - Aug 06 2013 17:26:38 seclog
8 -rw- 1982 Aug 07 2013 08:55:30 startup.cfg
9 -rw- 33368 Aug 07 2013 08:55:31 startup.mdb
10 drw- - Aug 06 2013 17:26:40 versionInfo
1028096 KB total (487680 KB free)
· 查看備用主控板存儲介質的剩餘空間大小。
<Sysname> dir slot16#flash:
Directory of slot16#flash:
0 drw- - Aug 06 2013 17:26:38 diagfile
1 -rw- 42 Aug 07 2013 08:55:30 ifindex.dat
2 drw- - Aug 06 2013 17:26:38 license
3 drw- - Aug 06 2013 18:26:41 logfile
4 -rw- 102294528 Apr 07 2013 13:47:21 S12500X-CMW710-E1002P01.ipe
5 -rw- 14908416 Aug 06 2013 17:21:31 s12500x-cmw710-boot-e1002p06.bin
6 -rw- 110083072 Aug 06 2013 17:23:20 s12500x-cmw710-system-e1002p06.bin
7 drw- - Aug 06 2013 17:26:38 seclog
8 -rw- 1982 Aug 07 2013 08:55:30 startup.cfg
9 -rw- 33368 Aug 07 2013 08:55:31 startup.mdb
10 drw- - Aug 06 2013 17:26:40 versionInfo
1028096 KB total (487680 KB free)
通過以上顯示信息可以查看主用主控板和備用主控板的存儲介質剩餘空間大小。
用戶可以將各主控板的存儲介質剩餘空間大小和待升級文件大小進行對比,判斷存儲介質剩餘空間是否足夠。當剩餘空間不足時,可使用delete /unreserved命令刪除存儲介質中的多餘文件,釋放存儲空間。
# 刪除主用主控板和備用主控板存儲介質中的多餘文件。
· 刪除主用主控板存儲介質中的多餘文件。
<Sysname> delete /unreserved flash:/S12500X-CMW710-E1002P01.ipe
The contents cannot be restored!!! Delete flash:/S12500X-CMW710-E1002P01.ipe?[Y/N]:y
Deleting a file permanently will take a long time. Please wait...
..................................................
Deleting file flash:/S12500X-CMW710-E1002P01.ipe ...Done.
· 刪除備用主控板存儲介質中的多餘文件。
<Sysname> delete /unreserved slot16#flash:/S12500X-CMW710-E1002P01.ipe
The contents cannot be restored!!! Delete slot16#flash:/S12500X-CMW710-E1002P01.ipe ?[Y/N]:y
Deleting a file permanently will take a long time. Please wait...
..................................................
Deleting file slot16#flash:/S12500X-CMW710-E1002P01.ipe ...Done.
· 使用delete /unreserved file-url命令刪除文件,被刪除的文件將被徹底刪除,不能再恢複。
· 使用delete file-url命令刪除文件,被刪除的文件被保存在回收站中,仍會占用存儲空間。如果要徹底刪除回收站中的某個廢棄文件,必須在該文件的原目錄下執行reset recycle-bin命令,清空回收站。
在通過命令行方式升級交換機的BootWare或啟動軟件包之前,首先要將待升級文件保存到主用主控板和備用主控板的存儲介質(FLASH)中。如果待升級文件已經保存到主用主控板和備用主控板的存儲介質中,可略過此步。
用戶可以通過FTP或TFTP方式把待升級文件下載到交換機的存儲介質中,下麵以交換機作為FTP Client、用戶PC作為FTP Server為例進行介紹:
(1) 在用戶PC(假設IP地址為10.10.110.1)上運行FTP Server程序,設置用戶名和密碼,以及正確的文件保存目錄,並把待升級文件保存在FTP Server的工作目錄下。
FTP Server軟件由用戶自己購買和安裝,交換機不附帶此軟件。
(2) 確保用戶PC和交換機之間路由可達。
(3) 將待升級軟件(以newest.ipe為例)下載到交換機主用主控板的存儲介質中。
# 設備作為FTP Client登錄到FTP Server。
<Sysname> ftp 192.168.0.23
Connected to 192.168.0.23 (192.168.0.23).
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
User (192.168.0.23:(none)):username ---輸入用戶名
331 Give me your password, please
Password: ---輸入密碼
230 Logged in successfully
Remote system type is MSDOS.
ftp>
# 將傳輸模式設置為二進製模式,以便傳輸啟動軟件包。
ftp> binary
200 Type is Image (Binary)
# 將啟動軟件包newest.ipe從FTP服務器下載到全局主用主控板存儲介質的根目錄下。
ftp> get newest.ipe
227 Entering Passive Mode (192,168,0,23,7,100)
150 "C:\ newest.ipe " file ready to send (385 bytes) in in IMAGE / Binary mode
226 Transfer finished successfully.
74948608 bytes received in 35.974 seconds (896.00 kbyte/s)
ftp> bye
221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye
(4) 將待升級軟件(以newest.ipe為例)拷貝到交換機備用主控板的存儲介質的根目錄下。
# 將啟動軟件包newest.ipe從主用主控板拷貝到備用主控板(所在槽位號為16)存儲介質的根目錄下。
<Sysname> copy newest.ipe slot16#flash:/
Copy flash:/newest.ipe to slot16#flash:/newest.ipe?[Y/N]:y
Copying file flash:/newest.ipe to slot16#flash:/newest.ipe...Done.
· 使用FTP方式下載時,交換機既可以充當FTP Server也可以充當FTP Client,使用TFTP下載時,交換機隻能充當TFTP Client,三種下載方式略有差異。有關FTP和TFTP配置的詳細介紹,請參見《H3C S12500-X係列交換機 配置指導》中的“基礎配置指導”。
· 通過命令行進行軟件升級時,BootWare文件、啟動軟件包和補丁包文件的下載方法相同。
進行軟件升級前,請確認已經將待升級文件保存到設備主用主控板存儲介質的根目錄下。
用戶可以根據升級對象以及用於升級的軟件類型選擇對應的升級操作:
· 升級啟動文件
· 安裝補丁
用於升級BootWare的文件壓縮在.ipe文件中,用戶需要將.ipe文件下載並保存到設備主用主控板的存儲介質的根目錄下。(下麵舉例中,用於升級設備的BootWare文件壓縮在newest.ipe文件中。)
# 將newest.ipe文件解壓到主用主控板。
<Sysname>install add flash:/newest.ipe flash:
Verifying image file...Done.
This operation will take several minutes, please wait...........................
....................................................Done.
解壓完成後會在主用主控板存儲介質根目錄下生成BOOT包文件(S12500X-CMW710-BOOT-E1002P08.bin)和SYSTEM包(S12500X-CMW710-SYSTEM-E1002P08.bin)文件。
# 升級主用主控板(所在槽位號為17)的BootWare。
<Sysname> bootrom update file flash:/S12500X-CMW710-BOOT-E1002P08.bin slot 17
This command will update bootrom file on the specified board(s),
Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done
# 升級備用主控板(所在槽位號為16)的BootWare。
<Sysname> bootrom update file slot16#flash:/S12500X-CMW710-BOOT-E1002P08.bin slot 16
This command will update bootrom file on the specified board(s),
Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done
# 升級業務板(所在槽位號為9)的BootWare。(設備上其它業務板升級方式相同。)
<Sysname> bootrom update file flash:/S12500X-CMW710-BOOT-E1002P08.bin slot 9
This command will update bootrom file on the specified board(s),
Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done
# 升級網板(所在槽位號為10)的BootWare。(設備上其它網板升級方式相同。)
<Sysname> bootrom update file flash:/S12500X-CMW710-BOOT-E1002P08.bin slot 10
This command will update bootrom file on the specified board(s),
Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done
# 重啟設備,完成對BootWare的升級。
<Sysname> reboot
Start to check configuration with next startup configuration file, please wait.
........DONE!
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
# 將解壓生成的S12500X-CMW710-BOOT-E1002P08.bin和S12500X-CMW710-SYSTEM-E1002P08.bin指定為主用主控板(所在槽位號為17)的主用啟動文件。
<Sysname> boot-loader file boot flash:/S12500X-CMW710-BOOT-E1002P08.bin system flash:/S12500X-CMW710-SYSTEM-E1002P08.bin slot 17 main
This command will set the main startup software images. Continue? [Y/N]:y
The images that have passed all examinations will be used as the main startup software images at the next reboot on slot 17
# 將解壓生成的S12500X-CMW710-BOOT-E1002P08.bin和S12500X-CMW710-SYSTEM-E1002P08.bin指定為備用主控板(所在槽位號為16)的主用啟動文件。
<Sysname> boot-loader file boot flash:/S12500X-CMW710-BOOT-E1002P08.bin system flash:/S12500X-CMW710-SYSTEM-E1002P08.bin slot 16 main
This command will set the main startup software images. Continue? [Y/N]:y
Successfully copied flash:/S12500X-CMW710-BOOT-E1002P08.bin to slot16#flash:/S12500X-CMW710-BOOT-E1002P08.bin.
Successfully copied flash:/S12500X-CMW710-SYSTEM-E1002P08.bin to slot16#flash:/S12500X-CMW710-SYSTEM-E1002P08.bin.
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on slot 16
# 重啟設備,完成對啟動文件的升級。
<Sysname> reboot
Start to check configuration with next startup configuration file, please wait.
........DONE!
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
· 重啟設備以前,請先保存當前配置,防止設備重啟而造成配置丟失。
· 啟動文件必須保存在存儲介質的根目錄下,請確保已將啟動文件保存到設備主用主控板和備用主控板的存儲介質的根目錄下。可使用文件的拷貝或移動操作來調整文件的路徑。關於boot-loader命令的詳細介紹請參見《H3C S12500-X係列交換機 命令參考》中的“基礎配置命令參考”。
請確保已將補丁包文件保存到主用主控板和備用主控板Flash的根目錄下。
# 通過補丁包文件(以S12500X-CMW710-SYSTEM-E1002H08.bin為例)安裝補丁到主用主控板。
<Sysname> install activate patch flash:/S12500X-CMW710-SYSTEM-E1002H08.bin slot 17
# 通過補丁包文件(以S12500X-CMW710-SYSTEM-E1002H08.bin為例)安裝補丁到備用主控板。
<Sysname> install activate patch flash:/S12500X-CMW710-SYSTEM-E1002H08.bin slot 16
# 配置補丁在設備下次重啟後繼續生效。
<Sysname> install commit
# 執行display install active命令顯示處於active狀態補丁包的信息,需要注意此命令會顯示所有處於激活狀態的軟件包的相關信息。
<Sysname> display install active
Active packages on slot 9:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on slot 10:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on slot 11:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on slot 16:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on slot 17:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
· 如果設備以前安裝過補丁或補丁包,需要先將曆史補丁卸載,才能安裝新補丁包。用戶可以使用display install active顯示設備的補丁信息。有關安裝補丁的詳細介紹請參見《H3C S12500-X係列交換機 配置指導》中的“基礎配置指導”。
· 軟件包安裝隻在設備本次運行過程中生效,用戶隻有通過install commit命令確認軟件包的更改後,才能使此次激活的軟件包在係統重啟後仍處於激活狀態。
# 用戶PC通過Telnet或者Console口登錄到交換機上。
# 查看設備信息。
<Sysname>display device
Chassis Slot Type State Subslot Soft Ver Patch Ver
1 0 NONE Absent 0 NONE None
1 1 NONE Absent 0 NONE None
1 2 NONE Absent 0 NONE None
1 3 NONE Absent 0 NONE None
1 4 NONE Absent 0 NONE None
1 5 NONE Absent 0 NONE None
1 6 NONE Absent 0 NONE None
1 7 NONE Absent 0 NONE None
1 8 NONE Absent 0 NONE None
1 9 LSX1TGS48EA1 Normal 0 S12510-X-1002P06 None
1 10 LSX1FAB10B1 Normal 0 S12510-X-1002P06 None
1 11 LSX1FAB10B1 Normal 0 S12510-X-1002P06 None
1 12 NONE Absent 0 NONE None
1 13 NONE Absent 0 NONE None
1 14 NONE Absent 0 NONE None
1 15 NONE Absent 0 NONE None
1 16 LSX1SUP10A1 Standby 0 S12510-X-1002P06 None
1 17 LSX1SUP10A1 Master 0 S12510-X-1002P06 None
2 0 NONE Absent 0 NONE None
2 1 NONE Absent 0 NONE None
2 2 NONE Absent 0 NONE None
2 3 NONE Absent 0 NONE None
2 4 NONE Absent 0 NONE None
2 5 NONE Absent 0 NONE None
2 6 NONE Absent 0 NONE None
2 7 NONE Absent 0 NONE None
2 8 NONE Absent 0 NONE None
2 9 LSX1TGS48EA1 Normal 0 S12510-X-1002P06 None
2 10 LSX1FAB10B1 Normal 0 S12510-X-1002P06 None
2 11 LSX1FAB10B1 Normal 0 S12510-X-1002P06 None
2 12 NONE Absent 0 NONE None
2 13 NONE Absent 0 NONE None
2 14 NONE Absent 0 NONE None
2 15 NONE Absent 0 NONE None
2 16 LSX1SUP10A1 Standby 0 S12510-X-1002P06 None
2 17 LSX1SUP10A1 Standby 0 S12510-X-1002P06 None
通過以上信息看出設備運行在IRF模式下。IRF模式下該設備各主控板信息如表2。
表2 IRF模式下的主控板列表
主控板 | 成員編號 | 槽位號 |
全局主用主控板 | 1 | 17 |
全局備用主控板 | 1 | 16 |
全局備用主控板 | 2 | 17 |
全局備用主控板 | 2 | 16 |
# 分別查看全局主用主控板及各全局備用主控板存儲介質的剩餘空間大小。
· 查看全局主用主控板的存儲介質的剩餘空間大小。
<Sysname> dir
Directory of flash:
0 drw- - Aug 06 2013 17:26:38 diagfile
1 -rw- 42 Aug 07 2013 08:55:30 ifindex.dat
2 drw- - Aug 06 2013 17:26:38 license
3 drw- - Aug 06 2013 18:26:41 logfile
4 -rw- 102294528 Apr 07 2013 13:47:21 S12500X-CMW710-E1002P01.ipe
5 -rw- 14908416 Aug 06 2013 17:21:31 s12500x-cmw710-boot-e1002p06.bin
6 -rw- 110083072 Aug 06 2013 17:23:20 s12500x-cmw710-system-e1002p06.bin
7 drw- - Aug 06 2013 17:26:38 seclog
8 -rw- 1982 Aug 07 2013 08:55:30 startup.cfg
9 -rw- 33368 Aug 07 2013 08:55:31 startup.mdb
10 drw- - Aug 06 2013 17:26:40 versionInfo
1028096 KB total (487680 KB free)
· 查看全局備用主控板(成員設備編號為1,槽位號為16)的存儲介質的剩餘空間大小。
<Sysname> dir chassis1#slot16#flash:
Directory of chassis1#slot16#flash:
0 drw- - Aug 06 2013 17:26:38 diagfile
1 -rw- 42 Aug 07 2013 08:55:30 ifindex.dat
2 drw- - Aug 06 2013 17:26:38 license
3 drw- - Aug 06 2013 18:26:41 logfile
4 -rw- 102294528 Apr 07 2013 13:47:21 S12500X-CMW710-E1002P01.ipe
5 -rw- 14908416 Aug 06 2013 17:21:31 s12500x-cmw710-boot-e1002p06.bin
6 -rw- 110083072 Aug 06 2013 17:23:20 s12500x-cmw710-system-e1002p06.bin
7 drw- - Aug 06 2013 17:26:38 seclog
8 -rw- 1982 Aug 07 2013 08:55:30 startup.cfg
9 -rw- 33368 Aug 07 2013 08:55:31 startup.mdb
10 drw- - Aug 06 2013 17:26:40 versionInfo
1028096 KB total (487680 KB free)
· 查看全局備用主控板(成員設備編號為2,槽位號為16)的存儲介質的剩餘空間大小。
<Sysname> dir chassis2#slot16#flash:
Directory of chassis2#slot16#flash:
0 drw- - Aug 06 2013 17:26:38 diagfile
1 -rw- 42 Aug 07 2013 08:55:30 ifindex.dat
2 drw- - Aug 06 2013 17:26:38 license
3 drw- - Aug 06 2013 18:26:41 logfile
4 -rw- 102294528 Apr 07 2013 13:47:21 S12500X-CMW710-E1002P01.ipe
5 -rw- 14908416 Aug 06 2013 17:21:31 s12500x-cmw710-boot-e1002p06.bin
6 -rw- 110083072 Aug 06 2013 17:23:20 s12500x-cmw710-system-e1002p06.bin
7 drw- - Aug 06 2013 17:26:38 seclog
8 -rw- 1982 Aug 07 2013 08:55:30 startup.cfg
9 -rw- 33368 Aug 07 2013 08:55:31 startup.mdb
10 drw- - Aug 06 2013 17:26:40 versionInfo
1028096 KB total (487680 KB free)
· 查看全局備用主控板(成員設備編號為2,槽位號為17)的存儲介質的剩餘空間大小。
<Sysname> dir chassis2#slot17#flash:
Directory of chassis2#slot17#flash:
0 drw- - Aug 06 2013 17:26:38 diagfile
1 -rw- 42 Aug 07 2013 08:55:30 ifindex.dat
2 drw- - Aug 06 2013 17:26:38 license
3 drw- - Aug 06 2013 18:26:41 logfile
4 -rw- 102294528 Apr 07 2013 13:47:21 S12500X-CMW710-E1002P01.ipe
5 -rw- 14908416 Aug 06 2013 17:21:31 s12500x-cmw710-boot-e1002p06.bin
6 -rw- 110083072 Aug 06 2013 17:23:20 s12500x-cmw710-system-e1002p06.bin
7 drw- - Aug 06 2013 17:26:38 seclog
8 -rw- 1982 Aug 07 2013 08:55:30 startup.cfg
9 -rw- 33368 Aug 07 2013 08:55:31 startup.mdb
10 drw- - Aug 06 2013 17:26:40 versionInfo
1028096 KB total (487680 KB free)
通過以上顯示信息可以分別得出全局主用主控板及各全局備用主控板的存儲介質剩餘空間大小,用戶可以將各主控板的存儲介質剩餘空間大小和待升級文件大小進行對比,判斷該主控板的存儲介質剩餘空間是否足夠。當剩餘空間不足時,可使用delete /unreserved命令刪除存儲介質中的多餘文件,釋放存儲空間。
# 刪除全局主用主控板和全局備用主控板存儲介質中的多餘文件。
· 刪除全局主用主控板存儲介質中的多餘文件。
<Sysname> delete /unreserved flash:/S12500X-CMW710-E1002P01.ipe
The contents cannot be restored!!! Delete flash:/S12500X-CMW710-E1002P01.ipe?[Y/N]:y
Deleting a file permanently will take a long time. Please wait...
..................................................
Deleting file flash:/S12500X-CMW710-E1002P01.ipe...Done.
· 刪除成員設備編號為1、槽位號為16的全局備用主控板存儲介質中的多餘文件(其他全局備用主控板上的多餘文件刪除方法相同)。
<Sysname> delete /unreserved chassis1#slot16#flash:/S12500X-CMW710-E1002P01.ipe
The contents cannot be restored!!! Delete chassis1#slot16#flash:/S12500X-CMW710-E1002P01.ipe?[Y/N]:y
Deleting a file permanently will take a long time. Please wait...
..................................................
Deleting file chassis1#slot16#flash:/S12500X-CMW710-E1002P01.ipe...Done.
· 使用delete /unreserved file-url命令刪除文件,被刪除的文件被徹底刪除,不能再恢複。
· 使用delete file-url命令刪除文件,被刪除的文件被保存在回收站中,仍會占用存儲空間。如果要徹底刪除回收站中的某個廢棄文件,必須在該文件的原目錄下執行reset recycle-bin命令,清空回收站。
在通過命令行方式升級交換機的BootWare或啟動軟件包之前,首先要將待升級文件加載保存到全局主用主控板和各備用主控板的存儲介質(FLASH)中。如果待升級文件已經保存到全局主用主控板和各備用主控板的存儲介質中,可略過此步。
用戶可以通過FTP或TFTP方式把待升級文件下載到交換機的存儲介質中,下麵以交換機作為FTP Client、用戶PC作為FTP Server為例進行介紹:
(1) 在用戶PC(假設IP地址為10.10.110.1)上運行FTP Server程序,並設置用戶名和密碼,以及正確的工作目錄,並把待升級文件保存在FTP Server的工作目錄下。
FTP Server軟件由用戶自己購買和安裝,交換機不附帶此軟件。
(2) 確保用戶PC和交換機之間路由可達。
(3) 將待升級軟件(以newest.ipe為例)下載到交換機全局主用主控板的存儲介質中。
# 交換機作為FTP Client登錄到FTP Server。
<Sysname> ftp 192.168.0.23
Connected to 192.168.0.23 (192.168.0.23).
220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user
User (192.168.0.23:(none)):username ---輸入用戶名
331 Give me your password, please
Password: ---輸入密碼
230 Logged in successfully
Remote system type is MSDOS.
ftp>
# 將傳輸模式設置為二進製模式,以便傳輸啟動軟件包。
ftp> binary
200 Type is Image (Binary)
# 將啟動軟件包newest.ipe從FTP服務器下載到全局主用主控板存儲介質的根目錄下。
ftp> get newest.ipe
227 Entering Passive Mode (192,168,0,23,7,100)
150 "C:\ newest.ipe " file ready to send (385 bytes) in in IMAGE / Binary mode
226 Transfer finished successfully.
74948608 bytes received in 35.974 seconds (896.00 kbyte/s)
ftp> bye
221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye
(4) 將待升級軟件(以newest.ipe為例)從全局主用主控板拷貝到全局備用主控板存儲介質的根目錄下。
# 將啟動軟件包newest.ipe從全局主用主控板拷貝到全局備用主控板(成員設備編號為1,槽位號為16)。
<Sysname> copy newest.ipe chassis1#slot16#flash:/
Copy flash:/newest.ipe to chassis1#slot16#flash:/newest.ipe?[Y/N]:y
Copying file flash:/newest.ipe to chassis1#slot16#flash:/newest.ipe...Done.
# 將啟動軟件包newest.ipe從全局主用主控板拷貝到全局備用主控板(成員設備編號為2,槽位號為16)。
<Sysname> copy newest.ipe chassis2#slot16#flash:/
Copy flash:/newest.ipe to chassis2#slot16#flash:/newest.ipe?[Y/N]:y
Copying file flash:/newest.ipe to chassis2#slot16#flash:/newest.ipe...Done.
# 將啟動軟件包newest.ipe從全局主用主控板拷貝到全局備用主控板(成員設備編號為2,槽位號為17)。
<Sysname> copy newest.ipe chassis2#slot17#flash:/
Copy flash:/newest.ipe to chassis2#slot17#flash:/newest.ipe?[Y/N]:y
Copying file flash:/newest.ipe to chassis2#slot17#flash:/newest.ipe...Done.
· 使用FTP方式下載時,交換機既可以充當FTP服務器也可以充當FTP客戶端,使用TFTP下載時,交換機隻能充當TFTP客戶端,三種下載方式略有差異。有關FTP和TFTP配置的詳細介紹,請參見《H3C S12500-X係列交換機 配置指導》中的“基礎配置指導”。
· 通過命令行進行軟件升級時,BootWare文件、啟動軟件包和補丁包文件的下載方法相同。
進行軟件升級前,請確認已經將待升級文件保存到設備全局主用主控板的存儲介質的根目錄下。
用戶可以根據升級對象以及用於升級的軟件類型選擇對應的升級操作:
· 升級啟動文件
· 安裝補丁
用於升級BootWare的文件壓縮在.ipe文件中,用戶需要將.ipe文件下載並保存到設備全局主用主控板存儲介質的根目錄下。(下麵舉例中,用於升級設備的BootWare文件壓縮在newest.ipe文件中。)
# 將newest.ipe文件解壓到全局主用主控板(成員設備編號為1,槽位號為17)。
<Sysname>install add flash:/newest.ipe flash:
Verifying image file...Done.
This operation will take several minutes, please wait...........................
....................................................Done.
解壓完成後會在主用主控板存儲介質根目錄下生成BOOT包文件(S12500X-CMW710-BOOT-E1002P08.bin)和SYSTEM包(S12500X-CMW710-SYSTEM-E1002P08.bin)文件。
# 升級全局主用主控板的BootWare。
<Sysname> bootrom update file flash:/S12500X-CMW710-BOOT-E1002P08.bin chassis 1 slot 17
This command will update bootrom file on the specified board(s),
Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done.
# 升級全局備用主控板(成員設備編號為1,槽位號為16)的BootWare。(IRF中其它全局備用主控板的BootWare升級方式相同。)
<Sysname>bootrom update file chassis1#slot16#flash:/S12500X-CMW710-BOOT-E1002P08.bin chassis 1 slot 16
This command will update bootrom file on the specified board(s), Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done.
# 升級業務板(成員設備編號為2,槽位號為9)的BootWare。(IRF中其它業務板的BootWare升級方式相同。)
<Sysname>bootrom update file flash:/S12500X-CMW710-BOOT-E1002P08.bin chassis 2 slot 9
This command will update bootrom file on the specified board(s), Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done.
# 升級網板(成員設備編號為2,槽位號為10)的BootWare。(IRF中其它網板的BootWare升級方式相同。)
<Sysname>bootrom update file flash:/S12500X-CMW710-BOOT-E1002P08.bin chassis 2 slot 10
This command will update bootrom file on the specified board(s), Continue? [Y/N]:y
Now updating the Boot ROM, please wait........... ...........Done.
# 重啟整個IRF,完成對BootWare的升級。
<Sysname> reboot
Start to check configuration with next startup configuration file, please wait.
........DONE!
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
# 將解壓生成的S12500X-CMW710-BOOT-E1002P08.bin和S12500X-CMW710-SYSTEM-E1002P08.bin指定為全局主用主控板(成員設備編號為1,槽位號為17)的主用啟動文件。
<Sysname> boot-loader file boot flash:/S12500X-CMW710-BOOT-E1002P08.bin system flash:/S12500X-CMW710-SYSTEM-E1002P08.bin chassis 1 slot 17 main
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on chassis 1 slot 17..
# 將解壓生成的S12500X-CMW710-BOOT-E1002P08.bin和S12500X-CMW710-SYSTEM-E1002P08.bin指定為全局備用主用主控板(成員設備編號為1,槽位號為16)的主用啟動文件。
<Sysname> boot-loader file boot flash:/S12500X-CMW710-BOOT-E1002P08.bin system flash:/S12500X-CMW710-SYSTEM-E1002P08.bin chassis 1 slot 16 main
This command will set the main startup software images. Continue? [Y/N]:y
Successfully copied flash:/S12500X-CMW710-BOOT-E1002P08.bin to chassis1#slot16#flash:
/S12500X-CMW710-BOOT-E1002P08.bin.
Successfully copied flash:/S12500X-CMW710-SYSTEM-E1002P08.bin to chassis1#slot16#flas
h:/S12500X-CMW710-SYSTEM-E1002P08.bin.
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on chassis 1 slot 16.
# 將解壓生成的S12500X-CMW710-BOOT-E1002P08.bin和S12500X-CMW710-SYSTEM-E1002P08.bin指定為全局備用主用主控板(成員設備編號為2,槽位號為16)的主用啟動文件。
<Sysname> boot-loader file boot flash:/S12500X-CMW710-BOOT-E1002P08.bin system flash:/S12500X-CMW710-SYSTEM-E1002P08.bin chassis 2 slot 16 main
This command will set the main startup software images. Continue? [Y/N]:y
Successfully copied flash:/S12500X-CMW710-BOOT-E1002P08.bin to chassis2#slot16#flash:
/S12500X-CMW710-BOOT-E1002P08.bin.
Successfully copied flash:/S12500X-CMW710-SYSTEM-E1002P08.bin to chassis2#slot16#flas
h:/S12500X-CMW710-SYSTEM-E1002P08.bin.
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on chassis 2 slot 16.
# 將解壓生成的S12500X-CMW710-BOOT-E1002P08.bin和S12500X-CMW710-SYSTEM-E1002P08.bin指定為全局備用主用主控板(成員設備編號為2,槽位號為17)的主用啟動文件。
<Sysname> boot-loader file boot flash:/S12500X-CMW710-BOOT-E1002P08.bin system flash:/S12500X-CMW710-SYSTEM-E1002P08.bin chassis 2 slot 17 main
This command will set the main startup software images. Continue? [Y/N]:y
Successfully copied flash:/S12500X-CMW710-BOOT-E1002P08.bin to chassis2#slot17#flash:
/S12500X-CMW710-BOOT-E1002P08.bin.
Successfully copied flash:/S12500X-CMW710-SYSTEM-E1002P08.bin to chassis2#slot17#flas
h:/S12500X-CMW710-SYSTEM-E1002P08.bin.
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on chassis 2 slot 17.
# 重啟設備,完成對啟動文件的升級。
<Sysname> reboot
Start to check configuration with next startup configuration file, please wait.
........DONE!
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
· 重啟設備以前,請先保存當前配置,防止設備重啟而造成配置丟失。
· 啟動文件必須保存在存儲介質的根目錄下,請確保已將啟動文件保存到設備全局主用主控板和各全局備用主控板的存儲介質的根目錄下。可使用文件的拷貝或移動操作來調整文件的路徑。關於boot-loader命令的詳細介紹請參見《H3C S12500-X係列交換機 命令參考》中的“基礎配置命令參考”。
請確保已將補丁包文件保存到所有主控板Flash的根目錄下。
# 通過補丁包文件(以S12500X-CMW710-SYSTEM-E1002H08.bin為例)安裝補丁到全局主用主控板。
<Sysname> install activate patch flash:/S12500X-CMW710-SYSTEM-E1002H08.bin chassis 1 slot 17
# 通過補丁包文件(以S12500X-CMW710-SYSTEM-E1002H08.bin為例)安裝補丁到全局備用主控板。
<Sysname> install activate patch flash:/S12500X-CMW710-SYSTEM-E1002H08.bin chassis 1 slot 16
<Sysname> install activate patch flash:/S12500X-CMW710-SYSTEM-E1002H08.bin chassis 2 slot 17
<Sysname> install activate patch flash:/S12500X-CMW710-SYSTEM-E1002H08.bin chassis 2 slot 16
# 配置補丁在設備下次重啟後繼續生效。
<Sysname> install commit
# 執行display install active命令顯示處於active狀態補丁包的信息,需要注意此命令會顯示所有處於激活狀態的軟件包的相關信息。
<Sysname> display install active
Active packages on chassis 1 slot 9:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 1 slot 10:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 1 slot 11:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 1 slot 16:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 1 slot 17:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 2 slot 9:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 2 slot 10:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 2 slot 11:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 2 slot 16:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
Active packages on chassis 2 slot 17:
flash:/S12500X-CMW710-BOOT-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002P08.bin
flash:/S12500X-CMW710-SYSTEM-E1002H08.bin
· 如果設備以前安裝過補丁,需要先將曆史補丁卸載,才能安裝新補丁。用戶可以使用display install active顯示設備的補丁信息。有關安裝補丁的詳細介紹請參見《H3C S12500-X係列交換機 配置指導》中的“基礎配置指導”。
· 軟件包安裝隻在設備本次運行過程中生效,用戶隻有通過install commit命令確認軟件包的更改後,才能使此次激活的軟件包在係統重啟後仍處於激活狀態。
(0)
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明
暫無評論