Dell N3200-ON Open Networking Hardware Diagnostic Guide July 2022 - Page 39

ledtool, write Output, Tests, CLI options

Page 39 highlights

0x00 000000e0]: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 000000f0]: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x57 W root@dellemc-diag-os:~# write Output /opt/dellemc/diag/bin# ./i2ctool --write --bus=/dev/i2c-2 --addr=0x48 --reg=0x14 --val=1 ledtool 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 normally controlled through the CPLD or FPGA access. When set, bits in these registers control the state of the LED. Tests To test the LEDs, use the ledtool --test command. root@dellemc-diag-os:~# ledtool --test LED Test Started... Will take few mins to complete. Overall LED test result ====>> Passed root@dellemc-diag-os:~# CLI options root@dellemc-diag-os:~# ledtool DellEmc Diag - Led Tool version 2.0, x.xx.x.x-x build, 2019/07/03, Usage: List the LEDs:= ledtool --list (or) ledtool -l Get the state of (specific) LED(s):= ledtool --get [--led=] (or) ledtool -g [-D ] Set the state of specific LED(color and blink):= ledtool --set --led= [--instance=] [--state=] [--val=] (or) ledtool -s -D [-S ] [-T ] [-V ] Execute repeatedly command by count:= ledtool --iteration=max/ [option1] [option2]... (or) ledtool -I max/ [option1] [option2]... Give control to CPU:= ledtool --set --cpu_ctrl (or) ledtool -s -U Give control to FPGA:= ledtool --set --fpga_ctrl Dell DIAG-OS tools 39

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81

0x00
||
................
[000000e0]: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00
||
................
[000000f0]: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x57
||
...............
W
root@dellemc-diag-os:~#
write Output
/opt/dellemc/diag/bin# ./i2ctool --write --bus=/dev/i2c-2 --addr=0x48 --reg=0x14 --val=1
ledtool
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 normally controlled through the CPLD or FPGA access. When set, bits
in these registers control the state of the LED.
Tests
To test the LEDs, use the
ledtool --test
command.
root@dellemc-diag-os:~# ledtool --test
LED Test Started... Will take few mins to complete.
Overall LED test result ====>> Passed
root@dellemc-diag-os:~#
CLI options
root@dellemc-diag-os:~# ledtool
DellEmc Diag - Led Tool
version 2.0, x.xx.x.x-x
build, 2019/07/03,
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> [-S <instance>] [-T <state>] [-V <value>]
Execute repeatedly command by count:=
ledtool --iteration=max/<count> [option1] [option2]...
(or)
ledtool -I max/<count> [option1] [option2]...
Give control to CPU:=
ledtool --set --cpu_ctrl
(or)
ledtool -s -U
Give control to FPGA:=
ledtool --set --fpga_ctrl
Dell DIAG-OS tools
39