Google

Top output

Top output

Contact:[email protected]

#!/usr/bin/ksh -v

#/usr/local/bin/top -n | mailx -s "top output from `hostname`"
[email protected]
#/usr/bin/df -k | mailx -s "df output from `hostname`"
[email protected]
#/bin/netstat -an | mailx -s "netstat output from `hostname`"
[email protected]
echo Established > /tmp/junk.gcd
netstat -an | grep -i estab | wc -l >> /tmp/junk.gcd
echo Wait >> /tmp/junk.gcd
netstat -an | grep -i wait | wc -l >> /tmp/junk.gcd
echo Idle >> /tmp/junk.gcd
netstat -an | grep -i idle | wc -l >> /tmp/junk.gcd
df -k >> /tmp/junk.gcd
/usr/local/bin/top -n >> /tmp/junk.gcd
/bin/netstat -an >> /tmp/junk.gcd
mailx -s "Output from `hostname`" [email protected] < /tmp/junk.gcd


Back to the Index