status script for solaris10 and 11
Good Day Gents,,
I need a script which collect all status data from solaris10 & 11 is there any famous script to do so? |
Code:
svcs -a For something more verbose, you might try this ksh script: Code:
for service in $(svcs -a -o FMRI); do |
Is the old FAMOUS 'Explorer' still around?
Added: I think you could download it (a script!), and use pieces! |
|
Quote:
is just to display services status and the second script is showing the same I guess but with extra information, that will be brilliant to trouble shooting. What I need actually is a script to collect particular data like disk utilization and error entries from "dmesg" from /var/log/messages |
"collect all status data" was vague, if your Solaris box is under service contract, you can download and use the explorer utility which does what you want.
|
Quote:
I just wanted to check disk utilization through a crontab entry and any error MSG appearing in dmesg then to be sent to a specific location for reporting till now I found the following to filter disk usage percentage # df -k | egrep "([70,80,90][0-9]|100)%" not so sure about it, but it is doing what i need so far -now I will take all error MSGs through grepping "dmesg" -then to automate this on three servers, using RSA key for easy access -script plan gathering info ---> generating a local report ----> sending the report to a specific location |
Quote:
Quote:
Code:
# df -k | egrep "([789][0-9]|100)%" |
Quote:
thanks anyway |
All times are GMT -5. The time now is 05:06 PM. |