一、可以正常进入设备运行模式的情况下:
1、进入特权模式
Ruijie>enable ——>进入特权模式
2、查看设备flash当前文件列表
Ruijie#dir ——->查看flash当前文件列表
Directory of flash:/
Mode Link Size MTime Name
———– —- ———– ————————— —————
1 2840 2016-10-23 17:05:09 config.text ——->保存配置的文件名”config.text“
<DIR> 1 0 1970-01-01 00:00:00 dev/
<DIR> 2 0 2007-01-01 16:37:59 mnt/
1 8 2016-10-14 14:54:17 priority.dat
<DIR> 0 0 1970-01-01 00:00:00 proc/
<DIR> 1 0 2016-10-12 09:49:12 ram/
1 13138784 2007-01-01 16:38:17 rgos.bin
<DIR> 2 0 2016-10-12 09:49:55 tmp/
<DIR> 4 0 2007-01-01 16:40:06 web/
1 5845952 2007-01-01 16:40:05 web_management_pack.upd
————————————————————————
3 Files (Total size 18984744 Bytes), 6 Directories.
Total 132120576 bytes (126MB) in this device, 108597248 bytes (103MB) available.
3、将配置文件“config.text”删除
Ruijie#delete config.text —–>删除配置文件“config.text”
Are you sure you want to delete “config.text”? [No/yes]y
File “config.text” is deleted.
部分设备的命令如下:
Ruijie#delete flash:/config.text —–>删除配置文件“config.text”
Are you sure you want to delete “/config.text”? [No/yes]y
File “/config.text” is deleted.
4、重启设备,重启后设备恢复出厂设置:
Ruijie#reload —–>重启交换机
Proceed with reload? [no]y