uninstall-module

命令功能

uninstall-module命令用来卸载模块文件。

命令格式

uninstall-module file-name

uninstall-module { file-name [ next-startup ] | next-startup all }

参数说明

参数 参数说明 取值
file-name

指定动态加载模块文件。

必须是已经存在的文件名。

next-startup

指定下一次启动时加载模块。

-

all

清除下一次启动时所有加载模块。

-

视图

用户视图

缺省级别

3:管理级

使用指南

当用户不需要某些业务或功能时,可以通过uninstall-module命令将系统上正在运行的模块从系统上卸载下来。卸载当前启动组件包后,需要重启系统才生效。
  • 执行uninstall-module file-name命令表示立即卸载指定文件名的模块文件。
  • 执行uninstall-module file-name next-startup命令,在设备下次启动模块列表中清除指定的模块。

使用实例

# 将模块MOD501.MOD从系统上卸载。

<sysname> uninstall-module MOD501.MOD
This will uninstall the module. Are you sure? [Y/N]y....
Info: Succeeded in uninstalling the module on the master board.
Info: Succeeded in uninstalling the module on slot 1.
Info: Succeeded in uninstalling the module on slot 6.
Info: The slot 11 does not have module to be uninstalled.
Info: The slot 13 does not have module to be uninstalled.

# 清除下一次启动模块列表中指定的模块。

<sysname> uninstall-module li_support.mod next-startup
Info: Succeeded in resetting all next-startup module.
相关主题
install-module
display module-information

版权所有 © 华为技术有限公司