[non-SUMMARY] Temperatures from 'prtdiag -v' not consistent

From: David Foster (foster@dim.ucsd.edu)
Date: Tue Aug 27 2002 - 17:11:31 EDT


Problem: On E450 (Solaris 8 108528-10) the ambient temperature
     reported by 'prtdiag -v' is giving a false and extremely
     high reading intermittently.
  
After some lengthly tests I've determined that this happens
about 4% of the time, with "AMBIENT 70" being reported (as
opposed to 15 or 16). I have NO idea why. One suggestion to
look at kstat(1) since prtdiag uses /dev/kstat.

I'm writing a simple script to send email alerts using this output,
so for now I will run prtdiag several times comparing the output
before acting on it.

Looks like I'm due for a call to Sun tech support to check the
sensor probes on the E450.

Thanks to:

Paul Richards
Justin Stringfellow
Hichael Morton

FWIW, here's the simple script I'm using for testing:

#!/bin/csh -f
cat /dev/null >! prtdiag.log

while (1)
   /usr/platform/`uname -i`/sbin/prtdiag -v | /usr/local/bin/grep -A 4 "System
Temperature" | tee -a prtdiag.log
   date | tee -a prtdiag.log
   sleep 10
end
exit 0

>
> I am trying to use output from 'prtdiag -v' on an E450 (Solaris 8
> 07/01) to script an automated warning system which will send email
> alerts when the temps are too high.
>
> I'm just using the output from:
>
> /usr/platform/`uname -i`/sbin/prtdiag -v | \
> grep -A 4 "System Temperature"
>
> The temperatures are absolutely stable:
>
> System Temperatures (Celsius):
> ------------------------------
> AMBIENT 15
> CPU 1 40
> CPU 3 40
>
> except once in a great while the Ambient temperature is reported
> as 70 (ALWAYS 70, and in my testing approx once per 456 runs).
>
> Any ideas? Is it not a good idea to trust prtdiag's output for
> this kind of alert?
>
> Dave Foster
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> David Foster National Center for Microscopy and Imaging Research
> Programmer/Analyst University of California, San Diego
> dfoster@ucsd.edu Department of Neuroscience, Mail 0608
> (858) 534-7968 http://ncmir.ucsd.edu/
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> "The reasonable man adapts himself to the world; the unreasonable one
> persists in trying to adapt the world to himself. Therefore, all progress
> depends on the unreasonable." -- George Bernard Shaw
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers

   << All opinions expressed are mine, not the University's >>

  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   David Foster National Center for Microscopy and Imaging Research
    Programmer/Analyst University of California, San Diego
    dfoster@ucsd.edu Department of Neuroscience, Mail 0608
    (858) 534-7968 http://ncmir.ucsd.edu/
  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

   "The reasonable man adapts himself to the world; the unreasonable one
   persists in trying to adapt the world to himself. Therefore, all progress
   depends on the unreasonable." -- George Bernard Shaw
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:50 EDT