| ################################################################### |
| # Check the temperature of the given SCSI device(s). |
| # This script assumes the sg3_utils package is installed. |
| ################################################################## |
| echo "Usage: scsi_temperature [-h] [-v] <device>+" |
| echo " -h, --help print usage message" |
| echo " -v, --verbose more verbose output" |
| echo "Use SCSI LOG SENSE command to fetch temperature of each <device>" |
| while test ! -z "$opt" -a -z "${opt##-*}"; do |
| h|-help) usage ; exit 0 ;; |
| v|-verbose) verbose="-v" ;; |
| *) echo "Unknown option: -$opt " ; exit 1 ;; |
| echo "sg_logs -t $verbose $i" |