java中的接口是类吗
581
2022-09-26
华为VRP-文件系统基础(华为vr开发文档)
华为网络设备的配置文件和VRP系统文件都保存在物理存储介质中,所以文件系统是VRP正常运行的基础。只有掌握了对文件系统的基本操作,网络工程师才能对设备的配置文件和VRP系统文件进行高效的管理。
VRP系统是 基于linux开发的,一些命令和linux命令一样。
一、基本查询命令
Directory of flash:/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 drw- - Oct 22 2018 06:22:51 dhcp
1 -rw- 121,802 May 26 2014 09:20:58 portalpage.zip
2 -rw- 2,263 Oct 22 2018 06:22:42 statemach.efs
3 -rw- 828,482 May 26 2014 09:20:58 sslvpn.zip
1,090,732 KB total (784,464 KB free)
flash:
二、目录操作
flash:/dhcp
flash:
Info: Create directory flash:/test......Done
Directory of flash:/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 drw- - Oct 22 2018 06:36:50 test ----已创建成功
1 drw- - Oct 22 2018 06:22:51 dhcp
2 -rw- 121,802 May 26 2014 09:20:58 portalpage.zip
3 -rw- 2,263 Oct 22 2018 06:22:42 statemach.efs
4 -rw- 828,482 May 26 2014 09:20:58 sslvpn.zip
1,090,732 KB total (784,460 KB free)
Remove directory flash:/test? (y/n)[n]:y
%Removing directory flash:/test...Done!
三、文件操作
Directory of flash:/dhcp/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 98 Oct 22 2018 06:22:51 dhcp-duid.txt
1,090,732 KB total (784,460 KB free)
*Huawei DHCP DUID*
*time* 2018-10-22 14:22:51
*version* 1
#DUID_LL: 0003000100E0FCDD6E80
*end*
Copy flash:/dhcp/dhcp-duid.txt to flash:/test/dhcp-duid.txt? (y/n)[n]:y
100% complete
Info: Copied file flash:/dhcp/dhcp-duid.txt to flash:/test/dhcp-duid.txt...Done
Directory of flash:/test/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 98 Oct 22 2018 06:43:31 dhcp-duid.txt ----复制成功
1,090,732 KB total (784,452 KB free)
flash:/test
Rename flash:/test/dhcp-duid.txt to flash:/test/qytang.txt? (y/n)[n]:y
Info: Rename file flash:/test/dhcp-duid.txt to flash:/test/qytang.txt ......Done
Directory of flash:/test/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 98 Oct 22 2018 06:43:31 qytang.txt ----重命名成功
1,090,732 KB total (784,456 KB free)
Move flash:/test/qytang.txt to flash:/dhcp/qytang.txt? (y/n)[n]:y
%Moved file flash:/test/qytang.txt to flash:/dhcp/qytang.txt.
Info: File can't be found in the directory
1,090,732 KB total (784,456 KB free)
Directory of flash:/dhcp/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 98 Oct 22 2018 06:22:51 dhcp-duid.txt
1 -rw- 98 Oct 22 2018 06:43:31 qytang.txt ----移动成功
1,090,732 KB total (784,456 KB free)
四、文件操作
Delete flash:/dhcp/dhcp-duid.txt? (y/n)[n]:y
Info: Deleting file flash:/dhcp/dhcp-duid.txt...succeed.
Directory of flash:/dhcp/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 98 Oct 22 2018 06:43:31 qytang.txt
1,090,732 KB total (784,452 KB free)
Directory of flash:/dhcp/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 98 Oct 22 2018 06:43:31 qytang.txt
1 -rw- 98 Oct 22 2018 06:56:23 [dhcp-duid.txt] ----[]中括号表示的被放到回收站的文件。
1,090,732 KB total (784,452 KB free)
Undelete flash:/dhcp/dhcp-duid.txt? (y/n)[n]:y
%Undeleted file flash:/dhcp/dhcp-duid.txt.
Directory of flash:/dhcp/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 98 Oct 22 2018 06:22:51 dhcp-duid.txt ---此文件已经恢复
1 -rw- 98 Oct 22 2018 06:43:31 qytang.txt
1,090,732 KB total (784,452 KB free)
Warning: The contents of file flash:/dhcp/dhcp-duid.txt cannot be recycled. Continue? (y/n)[n]:y
Info: Deleting file flash:/dhcp/dhcp-duid.txt...
Deleting file permanently from flash will take a long time if needed...succeed.
Directory of flash:/dhcp/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 98 Oct 22 2018 06:43:31 qytang.txt
1,090,732 KB total (784,456 KB free)
Delete flash:/dhcp/qytang.txt? (y/n)[n]:y
Info: Deleting file flash:/dhcp/qytang.txt...succeed.
Directory of *
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 98 Oct 22 2018 07:03:01 [qytang.txt] ---删除文件,放进回收站
1,090,732 KB total (784,456 KB free)
Squeeze flash:/dhcp/qytang.txt? (y/n)[n]:y
Clear file from flash will take a long time if needed...Done.
%Cleared file flash:/dhcp/qytang.txt.
Info: File can't be found in the directory
1,090,732 KB total (784,460 KB free)
五、配置文件管理
设备中的配置文件分为两种类型:当前配置文件和保存的配置文件。当前配置文件储存在设备的RAM中。用户可以通过命令行对设备进行配置,配置完成后使用save命令保存当前配置到存储设备中,形成保存的配置文件。
保存的配置文件都是以“.cfg”或“.zip”作为扩展名,存放在存储设备的根目录下。
在设备启动时,会从默认的存储路径下加载保存的配置文件到RAM中。如果默认存储路径中没有保存的配置文件,则设备会使用缺省参数进行初始化配置。
[V200R003C00]
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
……
There is no correct configuration file in FLASH
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sysname QYTANG //修改设备名称为QYTANG
The current configuration will be written to the device.
Are you sure to continue? (y/n)[n]:y
It will take several minutes to save configuration file, please wait........
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
[V200R003C00]
#
sysname QYTANG
#
……
Directory of flash:/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 drw- - Oct 22 2018 06:51:39 test
1 drw- - Oct 22 2018 07:03:01 dhcp
2 -rw- 121,802 May 26 2014 09:20:58 portalpage.zip
3 -rw- 2,263 Oct 22 2018 06:22:42 statemach.efs
4 -rw- 828,482 May 26 2014 09:20:58 sslvpn.zip
5 -rw- 352 Oct 22 2018 07:12:00 private-data.txt
6 -rw- 557 Oct 22 2018 07:11:59 vrpcfg.zip ---保存的配置文件名称为vrpcfg.zip
1,090,732 KB total (784,452 KB free)
This will delete the configuration in the flash memory.
The device configurations will be erased to reconfigure.
Are you sure? (y/n)[n]:y ---输入y
Clear the configuration in the device successfully.
Info: The system is comparing the configuration, please wait.
Warning: All the configuration will be saved to the next startup configuration. Continue ? [y/n]:n //注意此时要输入n,不然配置还会保存,启动时会加载保存的配置文件
System will reboot! Continue ? [y/n]:y //输入 y 重启设备
Info: system is rebooting ,please wait...
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~