Basic query commands
View the current directory pwd
pwd [ /all ] [ filename | directory ]
<Huawei>pwd
flash:
Display the files in the current directory dir
<Huawei>dir
Directory of flash:/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 drw- - Oct 15 2019 12:26:48 dhcp
1 -rw- 121,802 May 26 2014 09:20:58 portalpage.zip
2 -rw- 2,263 Oct 16 2019 15:53:57 statemach.efs
3 -rw- 828,482 May 26 2014 09:20:58 sslvpn.zip
The specific content of the text file to view more
<Huawei>more dhcp-duid.txt
*Huawei DHCP DUID*
*time* 2019-10-15 20:26:47
*version* 1
#DUID_LL: 0003000100E0FCEF695B
*end*
Directory Operations
Change directory cd
<Huawei>cd ../
Create a new directory mkdir
<Huawei>mkdir test
Info: Create directory flash:/test......Done
Delete a directory rmdir
<Huawei>rmdir /te
<Huawei>rmdir /test/
Remove directory flash:/test? (y/n)[n]:y
%Removing directory flash:/test...Done!
File Operations
Copy the file copy
<Huawei>copy dhcp-duid.txt flash:/test/
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
Rename the file rename
<Huawei>rename dhcp-duid.txt a.txt
Rename flash:/test/dhcp-duid.txt to flash:/test/a.txt? (y/n)[n]:y
Info: Rename file flash:/test/dhcp-duid.txt to flash:/test/a.txt ......Done
Move a file move
<Huawei>move a.txt flash:/dhcp/
Move flash:/test/a.txt to flash:/dhcp/a.txt? (y/n)[n]:y
%Moved file flash:/test/a.txt to flash:/dhcp/a.txt.
Delete a file delete
<Huawei>delete /dhcp/a.txt
Delete flash:/dhcp/a.txt? (y/n)[n]:y
Info: Deleting file flash:/dhcp/a.txt...succeed.
Recover deleted files
<Huawei>undelete a.txt
Undelete flash:/dhcp/a.txt? (y/n)[n]:y
%Undeleted file flash:/dhcp/a.txt.
Completely remove files from the recycle bin reset recycle-bin
<Huawei>reset recycle-bin
Squeeze flash:/dhcp/a.txt? (y/n)[n]:y
Clear file from flash will take a long time if needed...Done.
%Cleared file flash:/dhcp/a.txt.
Profiles inquiry
Displays the current profile display current-configuration
<Huawei>display current-configuration
[V200R003C00]
wlan ac
return
Display saved configuration file display saved-configuration
<Huawei>display saved-configuration
There is no correct configuration file in FLASH
Equipment startup process
设备启动时,会自动从flash / SD 中加载配置文件到RAM中并作为当前的配置文件
配置文件已“cfg”或“zip”作为扩展名,存放在存储设备的根目录下
如果默认的存储路径中没有没有保存的配置文件,则会使用缺省参数进行初始化配置
View the system boot configuration parameters display startup
<B-1-48>display startup
MainBoard:
////本次系统启动所使用的配置文件
Current startup saved-configuration file: flash:/startup.cfg
// 下次系统启动所使用的配置文件
Next main startup saved-configuration file: flash:/startup.cfg
Next backup startup saved-configuration file: NULL
Modify system startup configuration file
<Huawei>startup saved-configuration a.zip
This operation will take several minutes, please wait.....
Info: Succeeded in setting the file for booting system
<Huawei>display startup
MainBoard:
Startup system software: null
Next startup system software: null
Backup system software for next startup: null
Startup saved-configuration file: flash:/vrpcfg.zip
Next startup saved-configuration file: flash:/a.zip
Clear the configuration file loaded at next start
<Huawei>reset saved-configuration
This will delete the configuration in the flash memory.
The device configurations will be erased to reconfigure.
Are you sure? (y/n)[n]:y
Clear the configuration in the device successfully.
<Huawei>display startup
MainBoard:
Startup system software: null
Next startup system software: null
Backup system software for next startup: null
Startup saved-configuration file: null
Next startup saved-configuration file: null
Storage devices
Flash 闪存
SD Card SD卡
USB
Storage equipment repair fixdisk flash:
<Huawei>fixdisk flash:
Fixdisk flash: will take long time if needed
%Fixdisk flash: completed.
<Huawei>format flash:
All data(include configuration and system startup file) on flash: will be lost , proceed with format? (y/n)[n]: