Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

scsi_temperature(8) [debian man page]

SCSI_TEMPERATURE(8)						     SG3_UTILS						       SCSI_TEMPERATURE(8)

NAME
scsi_temperature - fetch the temperature of a SCSI device SYNOPSIS
scsi_temperature [--help] [--verbose] DEVICE [DEVICE]* DESCRIPTION
This Bourne shell script calls the sg_logs utility on each given DEVICE in order to find the device's temperature. The Temperature log page is checked first and if it is not available then the Informational Exceptions log page is checked. OPTIONS
Arguments to long options are mandatory for short options as well. -h, --help print out the usage message then exit. -v, --verbose increase level or verbosity. EXIT STATUS
The exit status of this script is 0 when it is successful. Otherwise the exit status is that of the last sg_logs utility called. See the sg3_utils(8) man page. AUTHORS
Written by D. Gilbert COPYRIGHT
Copyright (C) 2011 Douglas Gilbert This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR- POSE. SEE ALSO
sg_logs (sg3_utils) sg3_utils-1.33 December 2011 SCSI_TEMPERATURE(8)

Check Out this Related Man Page

SCSI_START(8)							     SG3_UTILS							     SCSI_START(8)

NAME
scsi_start - start one or more SCSI disks SYNOPSIS
scsi_start [--help] [--verbose] [--wait] DEVICE [DEVICE]* DESCRIPTION
This Bourne shell script calls the sg_start utility on each given DEVICE. The purpose is to spin up (start) each given DEVICE. OPTIONS
Arguments to long options are mandatory for short options as well. -h, --help print out the usage message then exit. -v, --verbose increase level or verbosity. -w, --wait wait for the spin up (start) on each given DEVICE to complete. The default action is to do each start in immediate mode. NOTES
If a large number of disks are spun up at the same time (i.e. without the --wait option) then the power supply may be overloaded. EXIT STATUS
The exit status of this script is 0 when it is successful. Otherwise the exit status is that of the last sg_start utility called. See the sg3_utils(8) man page. AUTHORS
Written by D. Gilbert COPYRIGHT
Copyright (C) 2009 Douglas Gilbert This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR- POSE. SEE ALSO
sg_start (sg3_utils) sg3_utils-1.28 August 2009 SCSI_START(8)
Man Page

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help to create shell script.

When i run the following command it shows me following o/p # prtpicl -v -c temperature-sensor | sed -n '/T_TCORE/,/:name/ p' | grep Temperature 61 Temperature 62 i want to put this command in shell script so that when i run the script it says ********************* Proc1 ... (4 Replies)
Discussion started by: fugitive
4 Replies

2. UNIX for Dummies Questions & Answers

if and then statements

I came across a bash script that outputs the forecast for the day and the max temperature but at the end of the day the max temperature disappears ($6) and I am left with "°C" after the forecast. Here is the script: #! /bin/bash curl -s --connect-timeout 30... (7 Replies)
Discussion started by: _light_
7 Replies

3. Shell Programming and Scripting

Editing the timestamp

i have data in 3 columns in the format below 2011-11-01-0936,2115,978 2011-11-01-0937,2242,1046 2011-11-01-0938,2538,1186 2011-11-01-0939,2295,1074 2011-11-01-0940,2454,1142 2011-11-01-0941,2545,1184 2011-11-01-0942,2491,1153 I however want to either remove the date on the timestamp and... (2 Replies)
Discussion started by: thinktank
2 Replies

4. Shell Programming and Scripting

Finding files before a certain date with predefined format

Guys, I have an input file such as below I would like to know how i would be able to find items created before 2011-10-01 Appreciate any expert advice. Thanks. (3 Replies)
Discussion started by: aismann
3 Replies

5. Shell Programming and Scripting

fetch data between two timestamp using script

Hi Guys, I have the data in below format. 25 Dec 2011 03:00:01 : aaaaaaaaaaaaaaa 25 Dec 2011 04:23:23 : bbbbbbbbbbbbbbb 25 Dec 2011 16:12:45 : ccccccccccccccc 26 Dec 2011 04:45:34 : ddddddddddddddd 26 Dec 2011 17:01:22 : eeeeeeeeeeeeeee 27 Dec 2011 12:33:45 : ffffffffffffffffffffffff 28... (13 Replies)
Discussion started by: jaituteja
13 Replies

6. Shell Programming and Scripting

Help with Temperature Script (Starting

Hello, I am trying to work on a temperature script to check temperatures on my systems. Im trying to get the basics laid out first. So far i have a command: /usr/sbin/prtpicl -v -c temperature-sensor # (must run as root) This command kicks back alot of information but i only want the... (3 Replies)
Discussion started by: whotippedmycow
3 Replies

7. Shell Programming and Scripting

make the name of file and fetch few things from log file

Hello All, I am working on a script where I need to fetch the value from a log file and log file creates with different name but few thing are common DEV_INFOMGT161_MULTI_PTC_BLD01.Stage_All_to_stp2perf1.042312114644.log STP_12_02_01_00_RC01.Stage_stp-domain_to_stp2perf2.042312041739.log ... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies

8. Shell Programming and Scripting

For Loop & SUM

pcmpath query device |awk 'BEGIN{print "DEVICE NAME\tSERIAL"} /DEVICE NAME/ {printf "%s\t", $5; getline; print substr($2, length($2)-3)}' This script returns output like below to pull out "DEVICE NAME SERIAL". ...... hdisk28 110B hdisk29 1112 hdisk30 1115 hdisk31 1116 hdisk32 1128... (2 Replies)
Discussion started by: Daniel Gate
2 Replies

9. UNIX for Dummies Questions & Answers

Cron confusion - scheduling a script

I have a script that backs up a directory, creates a log file and mails the log file to us. find . -print | backup -ivqf/dev/rmt0 | tee backup.log cat backup.log|mail -v -s "Tape backup log" maillist This script works fine from the console. When I schedule it in cron, I never get the... (1 Reply)
Discussion started by: landog
1 Replies