clear command

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

The command must always include the -cnfg or -config option.

Table 1. clear command
Function What it does Command Valid targets
Restore default configuration of primary management module and keep logs Restores the default configuration of the primary management module, retaining log information; then, resets the management module.

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

When you restore the management-module configuration, the Ethernet configuration method is set to a value of dthens. After the management module resets, this causes the management module to try dhcp configuration and then default to the static IP configuration, which might cause the management module 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.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Restore default configuration of I/O module Restores 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.
                           -T system:switch[x]
                        

where x is the I/O-module bay number.

Example: To restore the primary management-module configuration to default settings and retain log information, while management module 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
                  clear -cnfg
               

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