1SAS_DISK_BLINK(8) SDPARM SAS_DISK_BLINK(8)
2
3
4
6 sas_disk_blink - blink the LED on a SAS disk
7
9 sas_disk_blink [--help] [--set NUM] [--verbose] DEVICE
10
12 This bash shell script attempts to blink the LED on the SAS disk
13 referred to by DEVICE. By default the LED will blink for 30 seconds.
14 This is meant to help identify which disk corresponds to a given
15 DEVICE.
16
17 The script use the sdparm utility and manipulates the "Ready LED Mean‐
18 ing" (RLM) field in the Protocol specific port mode page in order to
19 blink the LED.
20
22 Arguments to long options are mandatory for short options as well.
23
24 -h, --help
25 print out the usage message then exit.
26
27 -s, --set NUM
28 when NUM is 0 then the RLM field is cleared. When NUM is 1 then
29 the RLM field is set. When NUM > 1 then the SAS disk LED is made
30 to blink for NUM seconds. If this option is not given then the
31 SAS disk LED is made to blink for 30 seconds.
32
33 -v, --verbose
34 increase level or verbosity.
35
37 The exit status of this script is 0 when it is successful. Otherwise
38 the exit status is that of the last sdparm utility called. See the
39 sdparm(8) man page.
40
42 Written by D. Gilbert
43
45 Copyright © 2013 Douglas Gilbert
46 This software is distributed under a FreeBSD license. There is NO war‐
47 ranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR‐
48 POSE.
49
51 sdparm (sdparm)
52
53
54
55sdparm-1.08 May 2013 SAS_DISK_BLINK(8)