SAS_DISK_BLINK(8)
β¨ SAS_DISK_BLINK π‘
okay bestie, so this is a section 8 manual page (that's the sysadmin-y one) from the sdparm family, and it's literally just: sas_disk_blink β the lil script that makes a SAS disk's LED go blink blink so you can figure out which physical drive you're actually staring at. π¦
πΈ NAME πΈ
sas_disk_blink β blink the LED on a SAS disk π‘β¨
π SYNOPSIS π
sas_disk_blink [--help] [--set NUM] [--verbose] DEVICE
π DESCRIPTION π
So. This is a bash shell script, and what it does is attempt to blink the LED on the SAS disk that DEVICE is pointing at. By default the LED will blink for 30 seconds. The whole point of this is to help you identify which disk corresponds to a given DEVICE β like, you're standing in a server room with 24 identical drives and you need to know which one is that one. π
Under the hood, the script uses the sdparm utility and manipulates the "Ready LED Meaning" (RLM) field in the Protocol specific port mode page in order to blink the LED. That's the whole trick. Iconic behavior, honestly. π
β¨ OPTIONS β¨
Heads up before we dive in: arguments to long options are mandatory for short options as well. So don't be out here trying to be cute with it. π
-h,--helpβ print out the usage message then exit. Very demure, very mindful. π-s,--set NUMβ okay so this one's a choose-your-own-adventure:- when NUM is
0then the RLM field is cleared. - when NUM is
1then the RLM field is set. - when NUM >
1then the SAS disk LED is made to blink for NUM seconds. - If this option is not given then the SAS disk LED is made to blink for 30 seconds. (the default! she has a default! π )
- when NUM is
-v,--verboseβ increase level or verbosity. More yapping, more info. π£οΈ
π«Ά EXIT STATUS π«Ά
The exit status of this script is 0 when it is successful. Otherwise the exit status is that of the last sdparm utility called. See the sdparm(8) man page. no cap, that's where the real tea is. π
π AUTHORS π
Written by D. Gilbert. π
π COPYRIGHT π
Copyright Β© 2013-2016 Douglas Gilbert
This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (so if it breaks, it's not their problem bestie π)
π₯ SEE ALSO π₯
sdparm (sdparm)
sdparm-1.11 Β· February 2016 β that's the version and the date, mwah, go blink some LEDs, you've got this πβ¨
π¦ where this page comes from
- arch rolling: sdparm 1.12-1 Β· BSD
- debian bookworm: sdparm 1.12-1 Β· BSD-3-Clause
- debian trixie: sdparm 1.12-2 Β· BSD-3-Clause
- epel 10: sdparm 1.12-9.el10_0 Β· BSD-2-Clause AND GPL-2.0-or-later AND BSD-4-Clause-UC
- epel 9: sdparm 1.12-2.el9 Β· BSD
- fedora 43: sdparm 1.12-12.fc43 Β· BSD-2-Clause AND GPL-2.0-or-later AND BSD-4-Clause-UC
- fedora 44: sdparm 1.12-13.fc44 Β· BSD-2-Clause AND GPL-2.0-or-later AND BSD-4-Clause-UC
- nixpkgs unstable: sdparm 1.12
- opensuse-leap 16.0: sdparm 1.12-160000.2.2 Β· BSD-2-Clause AND BSD-4-Clause
- opensuse-leap 16.0: sdparm 1.12-160000.2.2 Β· BSD-2-Clause AND BSD-4-Clause
- opensuse-leap 16.0: sdparm 1.12-160000.2.2 Β· BSD-2-Clause AND BSD-4-Clause
- opensuse-leap 16.0: sdparm 1.12-160000.2.2 Β· BSD-2-Clause AND BSD-4-Clause
- ubuntu noble: sdparm 1.12-1 Β· BSD-3-Clause
- ubuntu questing: sdparm 1.12-2
- ubuntu resolute: sdparm 1.12-3 Β· BSD-3-Clause
- ubuntu stonking: sdparm 1.12-3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms