led

Sets the port LED status to on, off, or the default status.
Syntax
led { default | off | on} [ unit unit-id ]
Command Default

The status of the LEDs according to the current status mode is the default if status mode is supported; otherwise, the link status or port status is considered to be the default LED status.

Parameters
default
Turns on all port LEDs with the default status.
off
Turns off the port LEDs.
on
Turns on all the port LEDs to display steady green irrespective of the port status.
unit unit-id
Specifies the stack unit or PE unit that you want to locate.
Modes

Privileged EXEC mode

Usage Guidelines

The status mode feature cannot be used when port LEDs are turned on to locate a device. If the status mode is changed, the LED status will be changed to the respective mode.

Note: The LED ON/OFF feature is supported only on the platforms where LED status mode is available. The status mode is supported on the ICX 7150, ICX 7650, and ICX 7850 devices.

The default LED status is the status of the LEDs according to the current status mode, if the status mode is supported. If the status mode is not supported, the link status or port status is considered to be the default LED status.

If the status of the port changes due to any events such as link up or link down, USB plug in or USB plug out, optical interruption, and so on, the LED status of that particular port LED is changed.

Examples

The following example shows how to turn on port LEDs on a standalone unit, stack unit, or PE unit.

device# led on

The following example shows how to turn on port LEDs to locate a unit in a stack from the active unit.

device# led on unit 5

The following example shows how to turn on port LEDs to locate a PE unit in SPX from the CB.

device# led on unit 23
History
Release version Command history
08.0.92 This command was introduced.