Skip to main content

clear command

This command restores the primary CMM configuration or an I/O (switch) module configuration to the manufacturing default settings.

Note
  • The command must always include the -cnfg option.
  • To restore a saved CMM configuration after restoring the manufacturing default settings, use the read command (see ../com.lenovo.acc.cmm.doc/cli_command_read.html for information about command use).

If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or clear command errors for a list of error messages that are specific to the clear command.

Table 1. clear command.

The command table is a multi-row, four-column table where each row describes a CMM CLI command option: column one lists command function, column two provides a detailed command description, column three shows command-option syntax, and column four lists valid command targets.

FunctionWhat it doesCommandTarget (see paths in Command targets)
Restore default configuration of primary CMM and keep logsRestores the default configuration of the primary CMM, retaining log information; then, resets the CMM. If the current operating state of the Lenovo Flex System chassis indicates potential problems with restoring the default configuration, an error message is returned and the restore is cancelled.

No results are returned from this command because it resets the CMM.

When you restore the CMM configuration, the Ethernet configuration method is set to a value of dthens. After the CMM resets, this causes the CMM to try dhcp configuration and then default to the static IP configuration, which might cause the CMM to remain offline for longer than normal. See the ifconfig command for information.

clear -cnfg
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis administration and chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Restore default configuration of primary CMM and keep logs (with override)Restores the default configuration of the primary CMM, retaining log information; then, resets the CMM, overriding error messages and restoration cancellation due to the current Lenovo Flex System chassis operating state.

No results are returned from this command because it resets the CMM.

When you restore the CMM configuration, the Ethernet configuration method is set to a value of dthens. After the CMM resets, this causes the CMM to try dhcp configuration and then default to the static IP configuration, which might cause the CMM to remain offline for longer than normal. See the ifconfig command for information.

clear -cnfg -o
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis administration and chassis configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Restore default configuration of I/O moduleRestores the configuration of the specified I/O module to the default settings.clear -cnfg
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • I/O module administration and I/O module configuration
See Commands and user authority for additional information.
I/O module:
  • switch[x]
  • where x is the I/O-bay number.
Example: To restore the primary CMM configuration to default settings and retain log information, while the Lenovo Flex System chassis is set as the persistent command environment, at the system> prompt, type
clear -cnfg -T mm[p]

No results are returned from this command. After the primary CMM resets, you will need to start a new command-line session.