ies_tool restore_factory命令
- 对于2.2.2XX系列版本:固件版本升级至2.2.209.010及之后版本,支持此命令。
- 对于2.2.5XX系列版本:固件版本升级至2.2.502.010及之后版本,支持此命令。
- 对于20.1.X.XXX系列版本:固件版本升级至20.1.0.009及之后版本,支持此命令。
命令功能
该命令用于指导用户进行远程恢复出厂设置操作。
命令格式
ies_tool restore_factory [-e if_name][-t secure]
参数说明
参数 |
参数说明 |
取值 |
---|---|---|
if_name |
保留IP地址时,对应的网口设备名称。 |
例如:eth0或eth0:2等。 |
secure |
数据安全擦除后再进行恢复出厂设置。 |
- |
使用指南
- 当恢复出厂设置需要保留IP地址时,可通过-e参数实现。
- 当恢复出厂设置需要对数据进行安全擦除时,可通过-t参数实现。仅在20.2.X.XXX系列版本支持此参数。
- 使用-t secure参数时,会对eMMC进行3次安全擦写后再进行恢复出厂设置,耗时40分钟左右。
- 恢复出厂设置时,系统会自动恢复默认IP地址(eth0的默认IP地址为192.168.2.111,eth1的默认IP地址为192.168.3.111)。请确保保留的IP地址及网段与默认IP地址不冲突。
- 对于20.1.X.XXX系列版本:固件版本升级至20.1.0.009及之后版本,如果同一网口上有多个IP地址配置相同的VLAN ID,则不支持保留此类IP地址。
- 推荐用户选择保留当前登录系统的IP地址。若选择保留的IP地址与默认网关不在同一网段,恢复出厂设置后,会出现保留的IP地址无法远程登录系统的风险。
- 在固件升级过程中以及重启生效前,不支持执行恢复出厂设置操作。
- 恢复出厂设置过程中,请保持供电稳定,如果异常断电,可能会导致恢复出厂设置失败。
- ies_tool restore_factory命令必须使用root帐号执行。切换root帐号请参考develop命令(develop)。
使用实例
- 示例1:不保留IP地址进行远程恢复出厂设置。
Euler:~ # ies_tool restore_factory Warning: you has't restored any IP address.IP address will be set to default after restore factory. The system will be restored to factory settings, including the user name, password and so on. Are you sure want to continue? Y/N
- 示例2:保留IP地址进行远程恢复出厂设置。
Euler:~ # ies_tool restore_factory -e eth0 The system will be restored to factory settings, including the user name, password and so on. Are you sure want to continue? Y/N
- 示例3:不保留IP地址进行安全擦除后远程恢复出厂设置。
Euler:~ # ies_tool restore_factory -t secure Warning: you has't restored any IP address.IP address will be set to default after restore factory. The system will be restored to factory settings, including the user name, password and so on. Are you sure want to continue? Y/N
- 示例4:保留IP地址进行安全擦除后远程恢复出厂设置。
Euler:~ # ies_tool restore_factory -e eth0 -t secure The system will be restored to factory settings, including the user name, password and so on. Are you sure want to continue? Y/N