基本查询命令
pwd 查看当前目录
dir 显示当前目录下的文件信息
more 查看文本文件的具体内容
cd 修改用户当前目录
mkdir 创建新的目录
rmdir 删除目录
copy filename [to] directory 复制文件 
move 移动文件(需要慎重,可能会造成路由器的重启导致网络中断)
rename 重命名文件
delete/unreserved  删除/永久删除文件 
undelete 恢复删除的文件
reset recycle-bin 彻底删除回收站的文件
<Huawei>delete sslvpn.zip
Delete flash:/sslvpn.zip? (y/n)[n]:y
Info: Deleting file flash:/sslvpn.zip...succeed.
<Huawei>undelete sslvpn	
<Huawei>undelete sslvpn.zip 
Undelete flash:/sslvpn.zip? (y/n)[n]:y
%Undeleted file flash:/sslvpn.zip.
<Huawei>dir
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time(LMT)  FileName 
    0  drw-              -  Dec 20 2020 06:08:07   dhcp
    1  drw-              -  Dec 20 2020 06:07:58   logfile
    2  -rw-        121,802  May 26 2014 09:20:58   portalpage.zip
    3  drw-              -  Dec 20 2020 06:08:38   1
    4  -rw-          2,263  Dec 20 2020 06:07:58   statemach.efs
    5  -rw-        828,482  May 26 2014 09:20:58   sslvpn.zip

1,090,732 KB total (784,452 KB free)
<Huawei>
display current-configuration 显示当前配置文件
display history-command 显示历史命令
display saved-configuration 显示保存的配置文件
<Huawei>sy	
<Huawei>system-view	
<Huawei>system-view 
<Huawei>sysna	
<Huawei>sysna
<Huawei>sy	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname s1
[s1]displa	
[s1]display 
[s1]display curr	
[s1]display current-configuration 
[V200R003C00]
#
 sysname s1
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 set cpu-usage threshold 80 restore 75
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
  ---- More ----
[s1]q
<s1>save	
<s1>save 
  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
<s1>
<s1>sy
Enter system view, return user view with Ctrl+Z.
[s1]sy	
[s1]sysname 
            ^
Error:Incomplete command found at '^' position.
[s1]sy	
[s1]disp	
[s1]display s	
[s1]display saved-configuration
[V200R003C00]
#
 sysname s1
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 set cpu-usage threshold 80 restore 75
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface Ethernet0/0/8
#
interface NULL0
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
save   <s1>用户视图下保存当前配置
display startup 查看系统启动配置参数  用来查看设备本次及下次启动相关的系统软件、备份系统软件、配置文件、License文件、补丁文件以及语音文件
[s1] 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:/vrpcfg.zip
  Startup license file:                      null
  Next startup license file:                 null
  Startup patch package:                     null
  Next startup patch package:                null
  Startup voice-files:                       null
  Next startup voice-files:                  null
[s1]
startup saved-configuration 配置系统下次启动时使用的1配置文件
compare configuration 比较当前配置与下次要启动的配置
reset saved-configuration 清除下次启动时加载的配置文件

存储设备
fixdisk directory 修复目录





posted on 2020-12-20 14:43  VincentAdamNemessis  阅读(125)  评论(0编辑  收藏  举报