# LED Control

## 1. Function Overview

This product includes the following LEDs on the main unit.

- LED type

  LED type | Description
  --- | ---
  POWER LED | Indicates the power supply status.
  microSD LED | Indicates the microSD card connection and usage status.
  Port LED | Indicates the LAN/SFP/AOC cable connection and usage status.
  Stack ID display LED (7SEG LED) | Displays the stack number.

The layout of the LEDs is shown below.

## 2. Definition of Terms Used

Legend of port LED illumination

Port LED illumination mentioned in subsequent explanations are illustrated below.

- Legend of port LED illumination

## 3. Function Details

### 3.1. POWER LED

The POWER LED lamp indicates the product power supply status.
The power supply status indicated by each POWER LED illumination mode is described below.

- Power supply status indicated by each POWER LED illumination mode

  POWER LED illumination mode | Status
  --- | ---
  Unlit | Power is off.
  Flashing green | Power is on and system is starting up.
  Steady green | Power is on and system is operating normally.
  Steady orange | Power is on and an error has occurred in the system.

When the following errors are detected, the POWER indicator illuminates steady orange.
Check the error that was detected and take the appropriate actions.

- Fan stopped
  The fan that exhausts heat generated by the product has stopped.
  Immediately stop using the product and be sure to contact the dealer for inspection or service.

- Temperature error inside the product
  The temperature inside the product is abnormal.
  Review the ambient conditions where installed and install the product correctly so that internal temperature is appropriate.

- Corrupted config storage area
  Config information cannot be read correctly at startup.
  Contact the dealer for inspection or service.

You can use the show environment command to check temperature and fan errors.

### 3.2. microSD LED

The microSD LED lamp indicates the microSD card connection and usage status.
The connection status indicated by each microSD LED illumination mode is described below.

- Connection status indicated by each microSD LED illumination mode

  microSD LED illumination mode | Status
  --- | ---
  Unlit | Not available, because a microSD card is not inserted or unmounted.
  Flashing green | The microSD card is being accessed.
  Steady green | A microSD card is inserted and available for use.

Do not remove the microSD card while flashing green, because the microSD card is being accessed.

### 3.3. Port LED

#### 3.3.1. Indicator modes and switching between them

This product offers the following three display modes.

Mode name | Switch by user | Function Overview
--- | --- | ---
LINK/ACT mode | Yes | The left LED of LAN/SFP ports indicates the link status and the right LED indicates the connection speed.
STATUS mode | No | Displays the error status of the LAN/SFP ports.
OFF mode | Yes | Switches off LAN/SFP port LEDs to minimize power consumption.

To switch the display mode, use the led-mode default command to set the default LED mode (the LED mode at system startup).
However, the STATUS mode is an automatic transition mode and cannot be switched manually by the user.
The flowchart of display mode transition is shown below.

- Display mode transition

*1: When the initial LED mode is LINK/ACT mode.
*2: When the initial LED mode is OFF mode.

The display mode after system startup and the display mode after error is resolved depend on the default LED mode setting.

If an error is detected by the following functions, the port LEDs automatically switch to the STATUS mode.

- Loop detection

- SFP optical reception level monitoring

The device will not transition from STATUS mode to LINK/ACT mode or OFF mode until all errors are resolved.

#### 3.3.2. LED indications in LINK/ACT mode

In the LINK/ACT mode, port LEDs are illuminated as shown below.

- LAN/SFP port link status

- LAN/SFP port connection speed

The link status LED indications are shown below.

- LAN/SFP port link status LED indications

  | While link is down | While link is up | While forwarding data
  --- | --- | --- | ---
  LAN port | (Off) | (Steady green) | (Flashing green)
  SFP port | (Off) | (Steady green) | (Flashing green)

The connection speed LED indications are shown below.

- Connection speed LED indications for LAN/SFP ports

  | 100M Link | 1G Link | 2.5G/5G Link | 10G Link | 25G Link | 100G Link
  --- | --- | --- | --- | --- | --- | ---
  LAN port | (Off) | (Steady orange) | (Steady green) | (Steady green) | (None) | (None)
  SFP+ port | (None) | (Steady orange) | (None) | (Steady green) | (None) | (None)
  SFP28 port | (None) | (Steady orange) | (None) | (Steady orange) | (Steady green) | (None)
  QSFP28 port | (None) | (None) | (None) | (None) | (None) | (Steady green)

#### 3.3.3. LED indications in STATUS mode

In STATUS mode, the port LEDs indicate the status of errors generated by the following product functions.

- Loop detection

- SFP optical reception level monitoring

The port LED display when an error occurs is outlined below.

- Port LED indications in error status

  | Normal state | Loop detection or SFP optical Rx level abnormality
  --- | --- | ---
  LAN port | (Off) | (Left LED flashing orange)
  SFP port | (Off) | (Left LED flashing orange)

When the product detects an error, it overrides the current mode and switches to STATUS mode.
The following conditions trigger an error in respective functions.

- Loop detection

  - Loop was detected, so port was blocked

  - Loop was detected, so port was shut down

- SFP optical reception level monitoring

  - SFP optical reception level fell below the normal range

  - SFP optical reception level exceeded the normal range

The cause of the error can be checked using the show error port-led command.

During active errors in the STATUS mode, LEDs will automatically switch to the default LED mode in the following states.

- All of the following errors were resolved.

  - Blocked status due to loop detection is resolved.

  - Shutdown status due to loop detection is resolved.

    - The monitoring time elapsed after the shutdown due to loop detection.

    - The unit linked up after the no shutdown command was executed during shutdown due to loop detection.

  - SFP optical reception level recovered.

#### 3.3.4. LED indication for OFF mode

If the default LED mode is the OFF mode, the port LEDs remain off regardless of the link status.
The stack ID display LED also turns off at the same time.
Even if the default LED mode is OFF, if an error occurs then the mode automatically switches to the STATUS mode and displays the error status.

#### 3.3.5. Changing the LED mode after system startup

This product enables the LED mode after system startup (the default LED mode) to be changed.
The initial default LED mode is set to LINK/ACT mode, but it can be changed using the led-mode default command.

You can check the default LED mode and the currently displayed LED mode using the show led-mode command.

If an active error is resolved in the STATUS mode, the mode is switched back to the default LED mode.

#### 3.3.6. Other port LED indications

Regardless of the LED mode status, all port LEDs will display as follows during startup initialization, firmware update, and while the "Find this switch" function is running.

- Other port LED indications

  | Updating firmware | Initializing | "Find this switch" function running
  --- | --- | --- | ---
  LAN port | (Flashing green) | (Steady orange) | (Flashing orange)
  SFP port | (Flashing green) | (Steady orange) | (Flashing orange)

### 3.4. Stack ID display LED

The stack ID display LED (7SEG LED) displays the stack ID in the stack configuration after the startup countdown is displayed.
If a stack is not configured, the number ‘1’ is displayed.
If an error occurs while a stack is configured, the letter ’E’ is displayed to indicate the error.

If the default LED mode is the OFF mode, the stack ID display LED is also switched off.

## 4. Related Commands

Related commands are indicated below.
For details on the commands, refer to the Command Reference.

Operations | Operating commands
--- | ---
Show LAN/SFP port status | show interface
Show loop detection setting status | show loop-detect
Set default LED mode | led-mode default
Show LED mode | show led-mode
Show port error status | show error port-led
Start/Stop the "Find this switch" function | find switch start
find switch stop

## 5. Examples of Command Execution

### 5.1. Checking LAN/SFP port status

Use the show interface command to check the LAN/SFP port status.

    Yamaha#show interface
    show interface
    Interface port1.1
      Link is UP
      Hardware is Ethernet
      HW addr: ac44.f23d.0b2c
      ifIndex 5001, MRU 1522
      Speed-Duplex: auto(configured), 1000-full(current)
      Auto MDI/MDIX: on
      Vlan info :
        Switchport mode        : access
        Ingress filter         : enable
        Acceptable frame types : all
        Default Vlan           :    1
        Configured Vlans       :    1
      Interface counter:
        input  packets          : 317111
               bytes            : 31387581
               multicast packets: 317074
        output packets          : 162694
               bytes            : 220469213
               multicast packets: 162310
               broadcast packets: 149
               drop packets     : 0
      ：
    (Shows information for all LAN/SFP ports)

### 5.2. Checking LAN/SFP port loop detection status

Check the LAN/SFP port loop detection status.

    Yamaha#show loop-detect
    loop-detect: Enable

    loop-detect: Enable

    port      loop-detect    port-blocking           status
    -------------------------------------------------------
    port1.1        enable           enable           Normal
    port1.2        enable           enable           Normal
    port1.3        enable           enable           Normal
    port1.4        enable           enable           Normal
    port1.5        enable           enable           Normal
    port1.6        enable           enable           Normal
    port1.7        enable           enable           Normal
    port1.8        enable           enable           Normal
    port1.9        enable           enable           Normal
    port1.10       enable           enable           Normal
    -------------------------------------------------------
    (*): Indicates that the feature is enabled.

### 5.3. Set default LED mode

Set the default LED mode to the OFF mode.

    Yamaha#configure terminal
    Yamaha(config)#led-mode default off (1)
    Yamaha(config)#exit
    Yamaha#show led-mode (2)
    default mode : off
    current mode : off

1 | Set default LED mode
2 | Show LED mode

Search result
No more search results.
There are no topics that match your search query.