最佳答案
軟件鏈接://www.yolosolive.com/cn/d_202112/1504985_30005_40.htm#
用戶名:yx800
密碼:01230123
升級步驟:
下文關於通過命令行升級的內容均以兩台設備形成IRF(Intelligent Resilient Framework,智能彈性架構)的情況為例進行介紹。
如果用戶升級的是單台設備,忽略有關Standby從設備的配置即可;
如果用戶升級的IRF中包含兩台以上成員設備,重複有關Standby從設備的配置即可,實際配置過程中,請根據實際情況修改命令行參數中的成員編號。
有關IRF的詳細介紹請參見《H3C S6520X-EI & S6520X-HI係列以太網交換機 配置指導》中的“虛擬化技術配置指導”。
# 用戶PC通過Telnet或者Console口登錄到IRF上,具體步驟略。
# 在任意視圖下,執行display irf命令查看IRF信息,掌握本IRF的成員設備數量,各成員設備的角色以及成員編號等信息,對於這些信息的了解將便於執行後續的升級操作。
<Sysname> display irf
MemberID Role Priority CPU-Mac Description
*+1 Master 5 0023-8927-afdc ---
2 Standby 1 0023-8927-af43 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 0023-8927-afdb
Auto upgrade : no
Mac persistent : 6 min
Domain ID : 0
通過以上信息得出IRF中有兩台成員設備,Master設備的成員編號為1,Standby從設備的成員編號為2。
# 在用戶視圖下,執行dir命令逐一查看各成員設備存儲介質的剩餘空間大小。
查看Master設備的存儲介質(Flash)的剩餘空間大小。
<Sysname> dir
Directory of flash:
0 -rw- 41424 Jan 01 2011 02:23:44 startup.mdb
1 -rw- 3792 Jan 01 2011 02:23:44 startup.cfg
2 -rw- 53555200 Aug 23 2013 09:53:48 system.bin
3 drw- - Aug 23 2013 00:00:07 seclog
4 drw- - Aug 23 2013 00:00:07 diagfile
5 drw- - Aug 23 2013 00:00:07 logfile
6 -rw- 9959424 Aug 23 2013 09:53:48 boot.bin
7 -rw- 9012224 Aug 23 2013 09:53:48 backup.bin
524288 KB total (453416 KB free)
查看Standby從設備(成員編號為2)的存儲介質(Flash)的剩餘空間大小。
<Sysname> dir slot2#flash:/
Directory of slot2#flash:/
0 -rw- 41424 Jan 01 2011 02:23:44 startup.mdb
1 -rw- 3792 Jan 01 2011 02:23:44 startup.cfg
2 -rw- 93871104 Aug 23 2013 16:00:08 system.bin
3 drw- - Jan 01 2011 00:00:07 seclog
4 drw- - Jan 01 2011 00:00:07 diagfile
5 drw- - Jan 02 2011 00:00:07 logfile
6 -rw- 13611008 Aug 23 2013 15:59:00 boot.bin
7 -rw- 9012224 Nov 25 2011 09:53:48 backup.bin
524288 KB total (453416 KB free)
用戶需要查看各成員設備存儲介質的剩餘空間大小,存儲介質的剩餘空間應不小於待升級軟件包大小的兩倍。如果剩餘空間不足,可在用戶視圖下使用delete命令刪除相應設備存儲介質中的無用文件,釋放存儲空間,以滿足升級需要。
為了避免配置丟失,請不要刪除設備的當前配置文件,設備的當前配置文件可以在任意視圖下使用display startup命令查看。
使用delete /unreserved file-url命令刪除軟件包,被刪除的軟件包將被徹底刪除,不能再恢複。
使用delete file命令刪除的文件,被保存在回收站中,仍會占用存儲空間。如果用戶經常使用該命令刪除文件,則可能導致設備的存儲空間不足,請用戶查看回收站中是否有廢棄文件。如果要徹底刪除回收站中的廢棄文件,必須執行reset recycle-bin命令,才可以回收存儲空間。
# 在用戶視圖下,執行delete命令刪除成員設備存儲介質中的無用軟件包文件。
刪除Master存儲介質中的無用軟件包文件。
<Sysname> delete /unreserved flash:/backup.bin
The file cannot be restored. Delete flash:/backup.bin?[Y/N]:y
Deleting the file permanently will take a long time. Please wait...
Deleting file flash:/backup.bin...Done.
刪除Standby存儲介質中的無用軟件包文件。
<Sysname> delete /unreserved slot2#flash:/backup.bin
The file cannot be restored. Delete slot2#flash:/backup.bin?[Y/N]:y
Deleting the file permanently will take a long time. Please wait...
Deleting file slot2#flash:/backup.bin...Done.
在執行升級操作之前,首先要將待升級啟動軟件包下載並保存到Master設備存儲介質(Flash)的根目錄下。如果待升級啟動軟件包已經保存到Master設備存儲介質(Flash)的根目錄下,可略過此步。
通過命令行進行啟動軟件包升級時,用戶可以根據所要升級的軟件類型,下載正確的待升級啟動軟件包。
將待升級啟動軟件包下載到Master設備存儲介質的根目錄下的方法有如下幾種,用戶可以根據具體情況選擇一種方法完成下載操作:
以交換機作為FTP 客戶端方式完成下載
以交換機作為FTP服務器方式完成下載
以交換機作為TFTP客戶端方式完成下載
(1)在用戶PC(假設IP地址為10.10.110.1)上運行FTP 服務器程序,用戶自行創建FTP Client用戶和密碼,並指定該用戶可訪問的工作路徑,把待升級啟動軟件包保存在FTP Client用戶可訪問的工作路徑下。
FTP 服務器程序由用戶自己購買和安裝,交換機不附帶此軟件。
(2)確保用戶PC和IRF之間路由可達。
(3)將待升級啟動軟件包(以newest.ipe為例)下載到Master存儲介質的根目錄下。
# 在用戶視圖下,執行ftp命令並根據係統提示輸入登錄用戶名和密碼,設備將作為FTP 客戶端登錄到FTP 服務器。
<Sysname> ftp 10.10.110.1
Press CTRL+C to abort.
Connected to 10.10.110.1 (10.10.110.1).
220 FTP service ready.
User (10.10.110.1:(none)):username ---輸入用戶名
331 Password required for username.
Password: ---輸入用戶密碼
230 User logged in.
# 在FTP客戶端視圖下,執行binary命令將傳輸模式設置為二進製模式,以便傳輸程序文件。
ftp> binary
200 Type set to I.
# 在FTP客戶端視圖下,執行get命令將待升級啟動軟件包從FTP服務器下載到Master存儲介質(Flash)的根目錄下。
ftp> get newest.ipe
227 Entering Passive Mode (10,10,110,1,17,97).
125 BINARY mode data connection already open, transfer starting for /newest.ipe
226 Transfer complete.
32133120 bytes received in 35 seconds (896. 0 kbyte/s)
ftp> bye
221 Server closing.
(1)確保用戶PC和IRF之間路由可達。
(2)配置IRF作為FTP服務器,並添加本地用戶。
# 在係統視圖下,執行ftp server enable命令開啟FTP服務。
[Sysname] ftp server enable
# 在係統視圖下,執行local-user命令添加本地用戶,此處以用戶名為abc為例。
[Sysname] local-user abc
# 在本地用戶視圖下,執行password命令設置該本地用戶的認證密碼,此處以密碼為pwd為例。
[Sysname-luser-manage-abc] password simple pwd
# 在本地用戶視圖下,執行service-type命令指定該本地用戶可以使用的服務類型為FTP。
[Sysname-luser-manage-abc] service-type ftp
# 在本地用戶視圖下,執行authorization-attribute命令配置該本地用戶的用戶角色為network-admin,使其可以向服務器工作路徑上傳文件。
[Sysname-luser-manage-abc] authorization-attribute user-role network-admin
# 在本地用戶視圖下,執行quit命令返回係統視圖。
[Sysname-luser-manage-abc] quit
# 在係統視圖下,執行quit命令返回用戶視圖。
[Sysname] quit
(3)PC作為FTP客戶端訪問設備,並將待升級啟動軟件包上傳到FTP服務器。
# 以FTP方式登錄FTP服務器。例:交換機的IP地址為1.1.1.1
c:\> ftp 1.1.1.1
Connected to 1.1.1.1.
220 FTP service ready.
User(1.1.1.1:(none)):abc ---輸入用戶名
331 Password required for abc.
Password: ---輸入用戶密碼
230 User logged in.
# 配置文件傳輸模式為二進製模式。
ftp> binary
200 TYPE is now 8-bit binary.
# 將待升級啟動軟件包(此處以newest.ipe為例)上傳並保存到Master設備存儲介質(Flash)的根目錄下。
ftp> put newest.ipe
200 PORT command successful
150 Connecting to port 10002
226 File successfully transferred
ftp: 發送 32133120 字節,用時 64.58Seconds 497.60Kbytes/sec.
(1)在用戶PC(假設IP地址為10.10.110.1)上運行TFTP 服務器程序,設置工作路徑,並把待升級啟動軟件包保存在TFTP 服務器的工作路徑下。
TFTP 服務器程序由用戶自己購買和安裝,交換機不附帶此軟件。
(2)確保用戶PC和IRF之間路由可達。
(3)將待升級啟動軟件包(以newest.ipe為例)下載到Master存儲介質的根目錄下。
# 在用戶視圖下,執行tftp命令將待升級啟動軟件包從PC下載到Master存儲介質(Flash)的根目錄下。
<Sysname> tftp 10.10.110.1 get newest.ipe
Press CTRL+C to abort.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 30.6M 0 30.6M 0 0 143k 0 --:--:-- 0:03:38 --:--:-- 142k
用戶可以根據所要升級的軟件類型,下載正確的待升級啟動軟件包,然後選擇執行對應的升級操作。
升級啟動軟件包
錯誤!未找到引用源。
# 指定Master的主用下次啟動軟件包為newest.ipe。
<Sysname> boot-loader file flash:/newest.ipe slot 1 main
Verifying image file..........Done.
Images in IPE:
boot.bin
system.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to target slot.
Decompressing file boot.bin to flash:/boot.bin....................Done.
Decompressing file system.bin to flash:/system.bin................Done.
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on slot 1.
# 逐一指定各Standby均采用與Master相同的主用下次啟動軟件包(指定完成後,係統會自動將該啟動軟件包從Master上copy到Standby的存儲介質根目錄下)。
<Sysname> boot-loader file flash:/newest.ipe slot 2 main
Verifying image file..........Done.
Images in IPE:
boot.bin
system.bin
This command will set the main startup software images. Continue? [Y/N]:y
Add images to target slot.
Decompressing file boot.bin to flash:/boot.bin....................Done.
Decompressing file system.bin to flash:/system.bin................Done.
The images that have passed all examinations will be used as the main startup so
ftware images at the next reboot on slot 2.
# 在係統視圖下,執行irf auto-update enable命令使能IRF係統啟動軟件包的自動加載功能。
<Sysname> system-view
[Sysname] irf auto-update enable
[Sysname] quit
開啟IRF係統啟動軟件包的自動加載功能,後麵執行reboot命令重啟IRF時,若某個Standby檢測到主用下次啟動軟件包與Master上的主用下次啟動軟件包不一致時:
該Standby自動將Master的當前主用啟動軟件包copy到自己的存儲介質根目錄下,並將該軟件包設置為自己的下次主用啟動軟件包;同時使用該啟動軟件包重啟。
IRF係統啟動軟件包的自動加載功能主要用於新加入IRF的成員設備的軟件版本與Master的軟件版本不一致時,新的成員設備自動從Master設備下載啟動軟件包,並使用新的啟動軟件包重啟,重新加入IRF。
2. 升級BootRom
#升級Master的BootRom。
<Sysname> bootrom update file flash:/update.btm slot 1
This command will update the Boot ROM file on the specified board(s), Continue? [Y/N]:y
Now updating the Boot ROM, please wait............................Done.
# 逐一升級各Standby的BootRom(指定完成後,係統會自動將該BootRom文件從Master上copy到Standby的存儲介質根目錄下)。
<Sysname> bootrom update file flash:/update.btm slot 2
This command will update the Boot ROM file on the specified board(s), Continue? [Y/N]:y
Now updating the Boot ROM, please wait............................Done.
[Sysname] quit
指定Master和各成員設備的下次主用啟動軟件包後,需要重啟設備新的啟動軟件包才能生效。在重啟的過程中,如果啟動軟件包中的BootRom文件存在更新,係統會提示用戶是否升級BootRom基本段和BootRom擴展段。
升級BootRom文件時,為了避免兼容性問題,建議用戶同時升級BootRom基本段和BootRom擴展段。
如果用戶選擇不升級BootRom文件,在設備斷電後重新上電、通過命令行立即重啟或通過命令行定時重啟的過程中,係統都將再次提示用戶升級BootRom文件,如果用戶沒有及時作出選擇,設備仍將默認升級完整的BootRom文件。
# 在任意視圖下,執行save命令保存當前配置,防止設備重啟而造成配置丟失。
<Sysname> save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait.................
Saved the current configuration to mainboard device successfully.
Slot 2:
Save next configuration file successfully.
# 在用戶視圖下,執行reboot命令重啟IRF,完成對啟動軟件包的升級。
<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...
# 重啟後,在任意視圖下,執行display version命令查看當前的軟件版本,確認是否升級成功。具體顯示信息略。
(0)
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明
暫無評論