VRP文件系统(7/15,40min)
<Quidway>dis ver
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.170 (S5720 V200R010C00SPC600)
Copyright (C) 2000-2016 HUAWEI TECH CO., LTD
HUAWEI S5720-28P-PWR-LI-AC Routing Switch uptime is 0 week, 0 day, 4 hours, 41 minutes
ES5D2V28S006 0(Master) : uptime is 0 week, 0 day, 4 hours, 40 minutes
DDR Memory Size : 512 M bytes //内存
FLASH Memory Size : 238 M bytes //闪存
Pcb Version : VER.A
BootROM Version : 020a.0001
BootLoad Version : 020a.0001
CPLD Version : 0106
Software Version : VRP (R) Software, Version 5.170 (V200R010C00SPC600)
<Quidway>pwd //查看当前目录
flash:
<Quidway>dir //显示当前目录下的文件信息
Directory of flash:/
Idx Attr Size(Byte) Date Time FileName
0 drw- - Aug 23 2016 03:00:51 dhcp
1 drw- - Aug 23 2016 03:00:11 user
2 drw- - Aug 14 2000 16:39:21 logfile
3 -rw- 934 Apr 02 2000 04:35:46 vrpcfg.zip
4 drw- - Aug 23 2016 02:59:59 $_install_mod
5 -rw- 836 Apr 01 2000 23:55:55 rr.bak
6 -rw- 836 Apr 01 2000 23:55:55 rr.dat
7 -rw- 1,061 Aug 23 2016 03:00:31 private-data.txt
8 drw- - Apr 02 2000 02:39:10 localuser
9 drw- - Apr 02 2000 02:00:31 $_backup
10 -rw- 64,011,164 Jun 29 2017 11:40:56 s5720li-v200r010c00spc600.cc
11 -rw- 4 Aug 23 2016 03:17:56 snmpnotilog.txt
“d”表示文件夹
244,164 KB total (37,036 KB free)
<Quidway>more private-data.txt //查看文本文件内容(txt,cfg等)
<Quidway>cd user //进入文件夹
<Quidway>dir
Directory of flash:/user/
Idx Attr Size(Byte) Date Time FileName
0 drw- - Aug 23 2016 03:00:11 bat
244,164 KB total (37,036 KB free)
<Quidway>cd .. //回退至上一级目录
<Quidway>mkdir ANewDir //创建目录
<Quidway>rmdir ANewDir //删除目录
<Quidway>delete abc.txt //删除文件夹至回收站
<Quidway>undelete abc.txt //能够Tab出来才表示能够恢复
<Quidway>reset recycle-bin //清空回收站
<Quidway>delete /unreserverd def.txt //删除文件且不可恢复
<Quidway>rename hcia.txt hcie.txt //将前者重命名为hcie.txt
<Quidway>copy /flash:/hcia.txt /flash:/hcie.txt
//将hcia.txt文件复制到新文件夹下并重命名
<Quidway>move //剪切
配置文件管理
配置文件为vrpcfg.zip
<Quidway>dir
Directory of flash:/
--------
Idx Attr Size(Byte) Date Time FileName
3 -rw- 934 Apr 02 2000 04:35:46 vrpcfg.zip
--------
显示当前配置文件
<Quidway>display current-configuration
显示保存的配置文件(下次启动设备时将使用这一文件)
<Quidway>display saved-configuration
对比当前配置文件与保存的配置文件的差异
<Quidway>compare configuration
Info: The current configuration is the same as the next startup configuration file.
删除已经保存的配置文件
<Quidway>reset saved-configuration
查看下次启动使用的系统与配置文件
<Quidway>display startup
配置系统下次启动时使用的配置文件(升级系统时用到)
<Quidway>startup saved-configuration flash:/vrpcfg.zip?
VRP系统管理(7/15,48min)
生产环境不会随意升级/降级
VRP命名规则:由自身版本号与关联产品版本号两部分组成
Vxxx(产品码)Rxxx(大版本号)Cxx(小版本号)SPC(与VRP版本补丁有关)
VRP (R) software, Version 5.170 (S5720 V200R010C00SPC600)
可以通过USB接口与FTP/TFTP服务器传输补丁文件或升级文件
关于笔者的Win10创建FTP服务器,参考如下博文:
工具-在WIN10上搭建Ftp服务器(转)_faihung的博客-CSDN博客_win10搭建ftp服务器
win10开启FTP(匿名)和(用户密码)_Austin_YB的博客-CSDN博客_win10ftp服务器设置用户名和密码
用户名及密码为笔者Win10的用户名及密码
<Quidway>ftp 1.1.1.2 //连接FTP服务器
Trying 1.1.1.2 ...
Press CTRL+K to abort
Connected to 1.1.1.2.
220 Microsoft FTP Service
User(1.1.1.2:(none)):(此处填写用户名)
331 Password required
Enter password:(此处填写密码)
230 User logged in.
VRP系统文件更新配置-查看剩余空间
[ftp]get xxx.cc //下载文件
[ftp]put vrpcfg.zip //上传文件至FTP服务端(注意设置权限)
<Quidway>tftp 1.1.1.2 get xxx.cc //从TFTP客户端下载文件(不需要登录)
<Quidway>tftp 1.1.1.2 put vrpcfg.zip //向TFTP客户端上传文件