The ledtool allows you to control the state of the front and back panel light emitting diodes (LEDs). ASIC and Phys control the port LEDs and are beyond the scope of this tool.
You can manually control the front and back panel LEDs, that are normally controlled through the CPLD or FPGA access. When set, bits in these registers control the state of the LED.
To test the LEDs, use the ledtool --test command.
root@dell-diag-os:/opt/dellemc/diag/bin# ./ledtool --test
LED Test Started... Will take few mins to complete.
LED Tool: Overall test results --------------------- >>> Passed
DellEmc Diag - Led Tool version 1.0, x.xx.x.x-x build, 2022/05/20, Usage: List the LEDs:= ledtool --list (or) ledtool -l Get the state of (specific) LED(s):= ledtool --get [--led=<led>] (or) ledtool -g [-D <led>] Set the state of specific LED(color and blink):= ledtool --set --led=<led> [--instance=<instance>] {--state=<state> | --val=<value>} (or) ledtool -s -D <led> [-I <instance>] {-T <state> | -V <value>} Execute repeatedly command by count:= ledtool --iteration=max/<count> [option1] [option2]... (or) ledtool -I max/<count> [option1] [option2]... Test using config file:= ledtool --test [--config=<config_file>] (or) ledtool -t [-f <config_file>] Syntax: ledtool <option> -h, --h Show the help text -l, --list List the LEDs -g, --get Get operation -s, --set Set operation -t, --test Test using the pre-programmed configuration or use supplied config -D, --led= LED -I, --iteration= Iteration command execution -S, --instance=, Instance -T, --state=, State of the LED -V, --val=, Value to be set -f, --config=, To specify the location of the config file e.g. /etc/dn/diag/<file_name> [led] selections are: Power States: green amber flashing-amber off System States: amber flashing-green flashing-amber green Fan States: green flashing-amber off Beacon States: flashing-blue off CPLD2-Mode States: normal-mode test-mode Port#1-18-Amber States: off flashing-amber-fast amber flashing-amber Port#1-18-Green States: off flashing-green-fast green flashing-green CPLD3-Mode States: normal-mode test-mode Port#19-36-Amber States: off flashing-amber-fast amber flashing-amber Port#19-36-Green States: off flashing-green-fast green flashing-green CPLD4-Mode States: normal-mode test-mode Port#37-48-Amber States: off flashing-amber-fast amber flashing-amber Port#37-48-Green States: off flashing-green-fast green flashing-green
root@dell-diag-os:/etc/dn/diag# ledtool --list
Power Led : options
green amber flashing-amber off
System Led : options
amber flashing-green flashing-amber green
Fan Led : options
green flashing-amber off
Beacon LED : options
flashing-blue off
Ports 1-18 PortLED Mode : options
normal-mode test-mode
Ports 1-18 FrontEnd AmberLed : options
off flashing-amber-fast amber flashing-amber
Ports 1-18 FrontEnd GreenLed : options
off flashing-green-fast green flashing-green
Ports 19-36 PortLED Mode : options
normal-mode test-mode
Ports 19-36 FrontEnd AmberLed : options
off flashing-amber-fast amber flashing-amber
Ports 19-36 FrontEnd GreenLed : options
off flashing-green-fast green flashing-green
Ports 37-48 PortLED Mode : options
normal-mode test-mode
Ports 37-48 FrontEnd AmberLed : options
off flashing-amber-fast amber flashing-amber
Ports 37-48 FrontEnd GreenLed : options
off flashing-green-fast green flashing-green
root@dell-diag-os:/etc/dn/diag#
root@dell-diag-os:/etc/dn/diag# ledtool --get
Power Led : flashing-amber
System Led : flashing-green
Fan Led : green
Beacon LED : off
Ports 1-18 PortLED Mode : normal-mode
Ports 1-18 FrontEnd AmberLed : off
Ports 1-18 FrontEnd GreenLed : off
Ports 19-36 PortLED Mode : normal-mode
Ports 19-36 FrontEnd AmberLed : off
Ports 19-36 FrontEnd GreenLed : off
Ports 37-48 PortLED Mode : normal-mode
Ports 37-48 FrontEnd AmberLed : off
Ports 37-48 FrontEnd GreenLed : off
root@dell-diag-os:/etc/dn/diag#