Moxa TC-6110-T-LX [69/117] Turning on or off the leds

Moxa TC-6110-T-LX [69/117] Turning on or off the leds
TC-6110 Linux User's Manual Programming Guide
5-3
SATA LEDs may be accessed directly using the /dev/sata_pledX device node. The examples below show
you how.
Turning On or Off the LEDs
To turn on the first LED and turn off the second, third and fourth LED. You should.
moxa@Moxa:~# echo 1000 > /dev/pled
To turn off all the LED you should.
moxa@Moxa:~# echo 0000 > /dev/sata_pled1
To turn on the second LED and turn off the others. You should
moxa@Moxa:~# echo 0100 > /dev/pled
Turning On or Off the LEDs on a SATA Board
To turn on the first LED and turn off the second on SATA LED #1 . You should.
moxa@Moxa:~# echo 10 > /dev/sata_pled1
To turn off all the SATA LED #1you should.
moxa@Moxa:~# echo 00 > /dev/sata_pled1
To turn on the first LED and turn off the second on SATA LED #2 . You should.
moxa@Moxa:~# echo 10 > /dev/sata_pled2
To turn off all the SATA LED #1 you should.
moxa@Moxa:~# echo 00 > /dev/sata_pled2
Watch Dog Timer (WDT)
Introduction
The WDT can be enabled or disabled directly, using a shell script (if you wish to use the Synmap software
package for this control, see the Synmap section above, Enabling the Watchdog). When the WDT is enabled
and fails to receive a reset signal in the configured amount of time (1 to 255 seconds), the system will
automatically reboot.
How the WDT Works
If you need the watchdog to run at boot time, use moxa@MoxaL~# update-rc.d to add it.
root@moxa@Moxa:~# update-rc.d watchdog defaults
update-rc.d: using dependency based boot sequencing
root@moxa@Moxa:~# ls -al /etc/rc?.d/*watchdog*
lrwxrwxrwx 1 root root 18 Jul 16 11:23 /etc/rc0.d/K01watchdog
-> ../init.d/watchdog
lrwxrwxrwx 1 root root 18 Jul 16 11:23 /etc/rc1.d/K01watchdog
-> ../init.d/watchdog
lrwxrwxrwx 1 root root 18 Jul 16 11:23 /etc/rc2.d/S21watchdog
-> ../init.d/watchdog
lrwxrwxrwx 1 root root 18 Jul 16 11:23 /etc/rc3.d/S21watchdog
-> ../init.d/watchdog
lrwxrwxrwx 1 root root 18 Jul 16 11:23 /etc/rc4.d/S21watchdog
-> ../init.d/watchdog
lrwxrwxrwx 1 root root 18 Jul 16 11:23 /etc/rc5.d/S21watchdog

Содержание

Похожие устройства

Скачать