H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Firmware Version 9.0.7

Command Reference
Set Switch State
59272-00 C 243
Set Switch State
Changes the administrative state for all ports on the Switch Module. The previous
Set Config Switch settings are restored after a
Switch Module reset or a
reactivation of a
Switch Module configuration.
Authority Admin session
Syntax set switch state [state]
Keywords [state]
[state] can be one of the following:
online
Activates and prepares the ports to send data. This is the default.
offline
Prevents the ports from receiving signal and accepting a device login.
diagnostics
Prepares the ports for testing and prevents each port from accepting a
device login. When you leave the diagnostics state, the
Switch Module
automatically resets.
Examples The following is an example of the Set Switch command:
H3C #> admin start
H3C (admin) #> set switch state offline