1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Rep Power

    Script for checking hardware failures on Solaris

    Hi all,

    I am trying to write a script that checks failures/faults on the Solaris servers(8/9/10) using commands prtdiag -v, echo | format,metastat errors and iostat errors .
    Does anyone have scripts like that?

  2. #2
  3. Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2006
    Rep Power
    It's no help, but I used to have ... but then I jumped in front of the band-wagon and got made redundant, so no more access to my scripts!
    I had a pair of scripts, one that built a config file on a system when it was in a known good state, and which wrote memory size, number of CPUs, disks, mounted file systems, etc., along with the option of checking certain processes were, or were not running. The second script did much the same, but compared results.
    Easy enough to parse for errors in the output of a metastat or prtdiag command, though I seem to recall prtdiag was not that useful for that. You might also want to look at what the picl daemon can produce.
    The main thing is knowing what to look for! Thus you will find yourself adapting your script as things go *sproing* in new, and fun ways!
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc

IMN logo majestic logo threadwatch logo seochat tools logo