logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sas_disk_blink - blink the LED on a SAS disk

Authors

       Written by D. Gilbert

Description

       This  bash  shell  script attempts to blink the LED on the SAS disk referred to by DEVICE. By default the
       LED will blink for 30 seconds. This is meant to help identify which disk corresponds to a given DEVICE.

       The script use the sdparm utility and manipulates the "Ready LED Meaning" (RLM)  field  in  the  Protocol
       specific port mode page in order to blink the LED.

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.

Name

       sas_disk_blink - blink the LED on a SAS disk

Options

       Arguments to long options are mandatory for short options as well.

       -h, --help
              print out the usage message then exit.

       -s, --setNUM
              when NUM is 0 then the RLM field is cleared. When NUM is 1 then the RLM field is set. When NUM > 1
              then  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.

       -v, --verbose
              increase level or verbosity.

See Also

sdparm(sdparm)

sdparm-1.11                                       February 2016                                SAS_DISK_BLINK(8)

Synopsis

sas_disk_blink [--help] [--setNUM] [--verbose] DEVICE

See Also