
05.H3C文件系统
1.文件操作
<H3C>dir Directory of flash: 0 drw- - Jan 12 2022 00:22:28 diagfile 1 -rw- 43136 Jan 12 2022 00:22:28 licbackup 2 drw- - Jan 12 2022 00:22:28 license 3 -rw- 43136 Jan 12 2022 00:22:28 licnormal 4 drw- - Jan 12 2022 00:22:28 logfile 5 -rw- 0 Jan 12 2022 00:22:28 msr36-cmw710-boot-a7514.bin 6 -rw- 0 Jan 12 2022 00:22:28 msr36-cmw710-system-a7514.bin 7 drw- - Jan 12 2022 00:22:36 pki 8 drw- - Jan 12 2022 00:22:28 seclogbin结尾是操作系统,通过save命令进行保存
<H3C>save The current configuration will be written to the device. Are you sure? [Y/N]:主要文件
- 启动软件包
- 配置文件
- 日志文件
目录操作
# dir # mkdir # rmdir flash:/ xyz # rmdir xyz # cd # pwd文件操作
# 文件导出 dis cu > xyz # 删除 delete xxxfile # 恢复删除 undelete xxxfile # 保存配置 save 10 -rw- 2179 Jan 22 2022 17:30:59 startup.cfg 11 -rw- 41520 Jan 22 2022 17:30:59 startup.mdb # 查看 cat more # 重命名 rename # 移动 copy存储设备 操作
# 清除回收站 resetrecycle-bin # 格式化\擦除 format flash: # 挂载 mount / umount # 重启系统 <H3C> reboot # 开启设备定时重启功能,并指定重启的具体时间 <H3C>scheduler reboot at ? TIME Execution time (HH:MM) # 开启设备定时重启功能,并指定重启的等待时延 <H3C>scheduler reboot delay ? STRING<1-6> Interval (HH:MM or MM) # 显示设备的重启时间 <H3C>display scheduler reboot
2.文件管理
系统所使用的的配置文件
<H3C>dis startup Current startup saved-configuration file: NULL #当前配置 Next main startup saved-configuration file: flash:/startup.cfg #下一次起始配置文件 Next backup startup saved-configuration file: NULL #备份配置配置文件
# 保存配置 save # 擦除配置 reset saved-configuration # 设置下次启动的配置文件 startup saved-configuration filename # 备份/恢复下次启动配置文件 <H3C>backup startup-configuration to ? STRING<1-253> Specify a TFTP server by IPv4 address or hostname ipv6 Specify IPv6 configuration <H3C>restore startup-configuration from ? STRING<1-253> Specify a TFTP server by IPv4 address or hostname ipv6 Specify IPv6 configuration # 查看保存的配置文件 <H3C>display saved-configuration # 查看系统启动配置文件 <H3C>display startup # 查看当前生效的配置 <H3C>display current-configuration # 查看当前视图下生效的配置 [H3C]display this
3.软件升级
- 指定下次启动加载的应用程序文件
<H3C>boot-loader file ? //file-url boot Specify a boot image file flash: Device name
- 显示下次启动加载的应用程序文件
display boot-loader一般性维护方式
- 在命令行模式 中采用TFTP/FTP上传/下载应用程序及配置文件,实现应用程序升级
- 在BootRom模式中通过以太口采用TFTP/FTP完成应用程序软件升级
- 在BootROM模式中通过Console口采用XModem协议完成BootROM及应用程序的升级