Sponsored Content
Top Forums Shell Programming and Scripting shell script to check if PSU and fan needs to be replaced? Post 302594636 by chihung on Tuesday 31st of January 2012 10:54:32 PM
Old 01-31-2012
prtdiag is Solaris specific.

Here is my sample ipmitool output from one of my system:
Code:
# ipmitool -I lan -H 192.168.1.168 -U ADMIN sdr
Password:
CPU1 Temp        | 0 unspecified     | ok
CPU2 Temp        | 0 unspecified     | ok
System Temp      | 27 degrees C      | ok
NB Temp          | disabled          | ns
CPU1 Vcore       | 1.06 Volts        | ok
CPU2 Vcore       | 1.06 Volts        | ok
CPU1 DIMM        | 1.51 Volts        | ok
CPU2 DIMM        | 1.51 Volts        | ok
CPU1 DIMM VTT    | 0.75 Volts        | ok
CPU2 DIMM VTT    | 0.75 Volts        | ok
+1.1 V           | 1.10 Volts        | ok
+1.8 V           | 1.86 Volts        | ok
+5 V             | 5.18 Volts        | ok
+12 V            | 12.03 Volts       | ok
HT Voltage       | 1.22 Volts        | ok
+3.3 V           | 3.31 Volts        | ok
+3.3VSB          | 3.26 Volts        | ok
VBAT             | 3.14 Volts        | ok
FAN 1            | 5476 RPM          | ok
FAN 2            | 5476 RPM          | ok
PS Status        | 0 unspecified     | nc

Code:
# ipmitool -I lan -H 192.168.1.168 -U ADMIN sensor
Password:
CPU1 Temp        | 0x0        | discrete   | 0x0000| na        | na        | na        | na        | na        | na
CPU2 Temp        | 0x0        | discrete   | 0x0000| na        | na        | na        | na        | na        | na
System Temp      | 27.000     | degrees C  | ok    | -9.000    | -7.000    | -5.000    | 75.000    | 77.000    | 79.000
NB Temp          | na         | degrees C  | na    | na        | na        | na        | na        | na        | na
CPU1 Vcore       | 1.064      | Volts      | ok    | 0.776     | 0.800     | 0.824     | 1.352     | 1.376     | 1.400
CPU2 Vcore       | 1.056      | Volts      | ok    | 0.776     | 0.800     | 0.824     | 1.352     | 1.376     | 1.400
CPU1 DIMM        | 1.512      | Volts      | ok    | 1.288     | 1.312     | 1.336     | 1.656     | 1.680     | 1.704
CPU2 DIMM        | 1.512      | Volts      | ok    | 1.288     | 1.312     | 1.336     | 1.656     | 1.680     | 1.704
CPU1 DIMM VTT    | 0.744      | Volts      | ok    | 0.616     | 0.640     | 0.664     | 0.832     | 0.856     | 0.880
CPU2 DIMM VTT    | 0.752      | Volts      | ok    | 0.616     | 0.640     | 0.664     | 0.832     | 0.856     | 0.880
+1.1 V           | 1.104      | Volts      | ok    | 0.928     | 0.952     | 0.976     | 1.216     | 1.240     | 1.264
+1.8 V           | 1.856      | Volts      | ok    | 1.560     | 1.584     | 1.608     | 1.984     | 2.008     | 2.032
+5 V             | 5.184      | Volts      | ok    | 4.416     | 4.448     | 4.480     | 5.536     | 5.568     | 5.600
+12 V            | 12.031     | Volts      | ok    | 10.600    | 10.653    | 10.706    | 13.250    | 13.303    | 13.356
HT Voltage       | 1.216      | Volts      | ok    | 1.024     | 1.048     | 1.072     | 1.328     | 1.352     | 1.376
+3.3 V           | 3.312      | Volts      | ok    | 2.880     | 2.904     | 2.928     | 3.648     | 3.672     | 3.696
+3.3VSB          | 3.264      | Volts      | ok    | 2.880     | 2.904     | 2.928     | 3.648     | 3.672     | 3.696
VBAT             | 3.144      | Volts      | ok    | 2.448     | 2.472     | 2.496     | 3.648     | 3.672     | 3.696
FAN 1            | 5476.000   | RPM        | ok    | 400.000   | 576.000   | 784.000   | 33856.000 | 34225.000 | 34596.000
FAN 2            | 5476.000   | RPM        | ok    | 400.000   | 576.000   | 784.000   | 33856.000 | 34225.000 | 34596.000
PS Status        | 0x1        | discrete   | 0x01ff| na        | na        | na        | na        | na        | na

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

check in unix shell script so that no one is able to run the script manually

I want to create an automated script which is called by another maually executed script. The condition is that the no one should be able to manually execute the automated script. The automated script can be on the same machine or it can be on a remote machine. Can any one suggest a check in the... (1 Reply)
Discussion started by: adi_bang76
1 Replies

2. Shell Programming and Scripting

check my first shell script

I have written the below script to determine whether a string is palindrome or not ? But its not working, any help to debug it ? I am new to this forum but when I searched for my question, I found that many people refused to answer this question thinking that its Homework question, Therefore I... (2 Replies)
Discussion started by: gridview
2 Replies

3. Shell Programming and Scripting

IP check with shell script

hi guys ..newbie here i would like to create a simple script tat will detect wether the machine has IP or not ... but it seems that my script doesnt really work it kept rebooting... i set this script during boot so that it will check else it will reboot it a shell script thou... ... (5 Replies)
Discussion started by: bladez
5 Replies

4. Shell Programming and Scripting

Shell script to check numbers!

Hello All, I have 3 types of files. The names of which starts with P,I,M like P********* D********* M********* now I need to do some operations witht hese files.. so if file name starts with P or p then do the operation for P file... fi else (20 Replies)
Discussion started by: smarty86
20 Replies

5. Shell Programming and Scripting

perl script to check if empty files are created and delete them and run a shell script

I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies

6. Shell Programming and Scripting

help on shell script to check line

Hi Scripting Gurus, Can someone help to transform the below logic into a shell script, might be easy for some of you. I have a file with below text, I need if the line has the ":" and the above to it is not a blank line should print " <text>: is incorrect format" Apple: ... (3 Replies)
Discussion started by: usyseng
3 Replies

7. Shell Programming and Scripting

Bash shell script to check if script itself is running

hi guys we've had nagios spewing false alarm (for the umpteenth time) and finally the customer had enough so they're starting to question nagios. we had the check interval increased from 5 minutes to 2 minutes, but that's just temporary solution. I'm thinking of implementing a script on the... (8 Replies)
Discussion started by: hedkandi
8 Replies

8. Hardware

How to remove fan from cpu fan chassis?

hi all, kindly help in this matter. Can i check anyone has any experience in removing the CPU fan from its chassis? my fan is spoilt and i wish to replace with other type. See picture below.. http://zone11.codemicroinc.netdna-cdn.com/large_1054367.jpg ---------- Post updated at 05:15 PM... (6 Replies)
Discussion started by: lchunleo
6 Replies

9. Red Hat

Check PSU Status

Hello, We have a cluster and each server have 2 PSU. An alarm should be raised in case of failure so we need to check periodically the PSU status wth a script. The first idea was to check with ipmitool but this take some time to get the data and we face some other issues now due to that... (1 Reply)
Discussion started by: @dagio
1 Replies

10. Shell Programming and Scripting

Check whether shell script has started.

How can i ceck as shellscript, if a other shellscript has been started? The other script can bee started by a other user. The task will not run twice (5 Replies)
Discussion started by: Linuxmann
5 Replies
ENVEXT(1)						  The Canonical Csound Reference						 ENVEXT(1)

NAME
envext - Extracts the envelope of a file to a text file. . SYNTAX
envext [-flags] soundfile csound -U envext [-flags] soundfile INITIALIZATION
soundfile - Name of the input soundfile. The following flags are available for envext (The default values are stated in parenthesis): -o fnam Name of output filename (newenv) -w size (in seconds) of analysis window (0.25) The envext utility generates a text file containing time and amplitude pairs by finding the absolute peak within each window. EXAMPLE
Using the command (while in the manual directory): csound -U envext examples/mary.wav will produce the a text file containing the following: 0.000 0.000 0.000 0.000 0.250 0.000 0.500 0.000 0.750 0.000 1.249 0.170 1.499 0.269 1.530 0.307 1.872 0.263 2.056 0.304 2.294 0.241 2.570 0.216 2.761 0.178 3.077 0.011 3.251 0.001 3.500 0.000 Which shows the time for the peak amplitude within each measured window. CREDITS
Author: John ffitch 1995 AUTHORS
Barry Vercoe MIT Media Lab Author. Dan Ellis MIT Media Lab, Cambridge Massachussetts Author. COPYRIGHT
5.07 06/23/2009 ENVEXT(1)
All times are GMT -4. The time now is 06:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy