H3C S5048版本升级(h3c官网)
查看设备空间
dir
Directory of flash:/
0 -rw- 12762112 Aug 08 2008 20:00:00 s5048pv2_ei_hpwr-cmw520-r1111.bin
1 drw- - Apr 26 2000 12:00:35 logfile
2 -rw- 5940 Apr 27 2000 21:56:42 startup.cfg
3 -rw- 151 Apr 27 2000 21:56:29 system.xml
4 -rw- 5927 Apr 27 2000 21:56:34 _startup_bak.cfg
29106 KB total (4147 KB free)
删除bak多余文件
delete s5048pv2_ei_hpwr-cmw520-r1111_bak.bin
#############使用delete命令删除文件(而不是彻底清除文件),被删除的文件被保存在回收站中,仍会占用存储空间。用户可以使用reset recycle-bin命令彻底清除回收站中的废弃文件,以回收存储空间。
dir /all
Directory of flash:/
0 -rw- 12762112 Aug 08 2008 20:00:00 s5048pv2_ei_hpwr-cmw520-r1111.bin
1 -rwh 2884 Apr 27 2000 03:39:03 private-data.txt
2 drw- - Apr 26 2000 12:00:35 logfile
3 -rwh 8221 Apr 27 2000 03:39:09 qosindex
4 -rw- 5940 Apr 27 2000 03:39:22 _startup_bak.cfg
5 -rw- 5940 Apr 27 2000 03:39:30 startup.cfg
6 -rw- 151 Apr 27 2000 03:39:17 system.xml
7 -rwh 4 Apr 26 2000 20:00:41 snmpboots
8 -rw- 12762112 Apr 27 2000 01:50:24 [s5048pv2_ei_hpwr-cmw520-r1111_bak.bin]
29106 KB total (4147 KB free)
reset recycle-bin
Clear flash:/~/s5048pv2_ei_hpwr-cmw520-r1111_bak**粗体**.bin ?[Y/N]:y
Clearing files from flash may take a long time. Please wait...
........................................................................................................................................................................................................
%Cleared file flash:/~/s5048pv2_ei_hpwr-cmw520-r1111_bak.bin..
dir
Directory of flash:/
0 -rw- 12762112 Aug 08 2008 20:00:00 s5048pv2_ei_hpwr-cmw520-r1111.bin
1 drw- - Apr 26 2000 12:00:35 logfile
2 -rw- 5940 Apr 27 2000 03:39:22 _startup_bak.cfg
3 -rw- 5940 Apr 27 2000 03:39:30 startup.cfg
4 -rw- 151 Apr 27 2000 03:39:17 system.xml
29106 KB total (16612 KB free)
登录FTP文件服务器
ftp 1.1.1.1
Trying 1.1.1.1 ...
Press CTRL+K to abort
Connected to 1.1.1.1.
220 (vsFTPd 3.0.2)
User(1.1.1.1:(none)):ftpuser2021
331 Please specify the password.
Password:
230 Login successful.
[ftp]dir
227 Entering Passive Mode (1,1,1,1,232,109).
150 Here comes the directory listing.
-rw-r--r-- 1 1002 0 12763136 Mar 12 2019 S5048PV2_EI_HPWR-CMW520-R1112.bin
-rw-r--r-- 1 1002 1002 12762112 Jul 18 10:27 s5048pv2_ei_hpwr-cmw520-r1111.bin
-rw-r--r-- 1 1002 0 0 Jul 18 10:14 test.txt
226 Directory send OK.
FTP: 248 byte(s) received in 0.004 second(s), 62.00K byte(s)/sec.
从FTP上传文件到交换机
[ftp]get S5048PV2_EI_HPWR-CMW520-R1112.bin
227 Entering Passive Mode (1,1,1,1,124,230).
150 Opening BINARY mode data connection for S5048PV2_EI_HPWR-CMW520-R1112.bin (12763136 bytes).
..........................................................226 Transfer complete.
FTP: 12763136 byte(s) received in 58.997 second(s), 216.00K byte(s)/sec.
[ftp]dir
227 Entering Passive Mode (1,1,1,1,206,150).
150 Here comes the directory listing.
-rw-r--r-- 1 1002 0 12763136 Mar 12 2019 S5048PV2_EI_HPWR-CMW520-R1112.bin
-rw-r--r-- 1 1002 1002 12762112 Jul 18 10:27 s5048pv2_ei_hpwr-cmw520-r1111.bin
-rw-r--r-- 1 1002 0 0 Jul 18 10:14 test.txt
226 Directory send OK.
FTP: 248 byte(s) received in 0.011 second(s), 22.00K byte(s)/sec.
[ftp]qui
221 Goodbye.
dir
Directory of flash:/
0 -rw- 12762112 Aug 08 2008 20:00:00 s5048pv2_ei_hpwr-cmw520-r1111.bin
1 drw- - Apr 26 2000 12:00:35 logfile
2 -rw- 5940 Apr 27 2000 03:39:22 _startup_bak.cfg
3 -rw- 5940 Apr 27 2000 03:39:30 startup.cfg
4 -rw- 151 Apr 27 2000 03:39:17 system.xml
5 -rw- 12763136 Apr 26 2000 20:20:46 s5048pv2_ei_hpwr-cmw520-r1112.bin
29106 KB total (4148 KB free)
设置默认启动加载
boot-loader file s5048pv2_ei_hpwr-cmw520-r1112.bin slot 1 main
This command will set the boot file of the specified board. Continue? [Y/N]:y
The specified file will be used as the main boot file at the next reboot on slot 1!
display boot-loader
Slot 1
Current boot app is: flash:/s5048pv2_ei_hpwr-cmw520-r1111.bin
Next main boot app is: flash:/s5048pv2_ei_hpwr-cmw520-r1112.bin
Next backup boot app is: flash:/s5048pv2_ei_hpwr-cmw520-r1111_bak.bin
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...
注意:如果不确定文件是否可以删除,可以先登录FTP,将文件备份到FTP服务器
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
暂时没有评论,来抢沙发吧~