shell script to check if PSU and fan needs to be replaced?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting shell script to check if PSU and fan needs to be replaced?
# 1  
Old 01-31-2012
shell script to check if PSU and fan needs to be replaced?

does anyone know any shell script command that can check if PSU and fan needs to be replaced?

examples will also be greatly appreciated.

thanks!
# 2  
Old 01-31-2012
grep the error from below command output.
Code:
/usr/platfrom/`uname -i`/sbin/prtdiag

# 3  
Old 01-31-2012
There is no universal method.
What hardware, Operating System and version, and Shell do you have?
# 4  
Old 01-31-2012
Quote:
Originally Posted by methyl
There is no universal method.
What hardware, Operating System and version, and Shell do you have?

OS, well we are just booting an image then goes to bash prompt automatically...

i was looking for something like ipmitool or something...can I use that to check the health of my fan or PSU?

thanks!

---------- Post updated at 08:39 AM ---------- Previous update was at 08:38 AM ----------

Quote:
Originally Posted by rdcwayx
grep the error from below command output.
Code:
/usr/platfrom/`uname -i`/sbin/prtdiag


i don't have the folder /usr/platform ..
# 5  
Old 01-31-2012
Quote:
Originally Posted by h0ujun
OS, well we are just booting an image then goes to bash prompt automatically...
An image of what? Smilie
Quote:
i don't have the folder /usr/platform ..
Of course you don't, that's almost certainly not the answer for your system...

What is, we can't begin to guess.
# 6  
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

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question