228 Command Reference
set switch state
Description Changes the administrative state for all ports on the switch. The previous set config switch
command settings are restored after a switch reset or a reactivation of a switch configuration.
Authority Admin session
Syntax
set switch state [state]
Operands
[state]
Table 58 describes the switch administrative state parameters.
Table 58 Switch administrative state parameters
Parameter Description
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
automatically resets.
Notes QuickTools and Enterprise Fabric Management Suite will override any temporary administrative state
changes that have been made using the Set Port State command. Therefore, to avoid unexpected
results, do not manage port administrative states with QuickTools or Enterprise Fabric Management
Suite and the CLI at the same time.
Examples The following is an example of the set switch command:
8/20q FC Switch #>admin start
8/20q FC Switch (admin) #>set switch state offline
See also show switch, page 272