Almanack /
SystemStatsSh
- System Stats Shell Script:
- Tells Stats about Uptime, Currently connected, Last logins, Disk Usage, Utilization and most expensive # processes, Open TCP/UDP ports, Detailed Processes List and vmstat!
hope this is some help for your systemstats Author SplinTer@NaStYcOdE.Com Free Unix Tech Support At support@nastycode.com Join Us On IRC At IRC.NaStYcOdE.COM Channel #NaStYcOdE
#!/bin/sh #Author SplinTer@NaStYcOdE.Com Free Unix Tech Support At support@nastycode.com # Join Us On IRC At IRC.NaStYcOdE.COM Channel #NaStYcOdE SHELL=/bin/sh PATH=/bin:/sbin19:/usr/bin:/usr/sbin19:/usr/sbin/:/sbin/ HOME=/root MAILTO="splinter@nastycode.com" echo "--------------------------------------------------------------------" echo "System Stats" date; echo "--------------------------------------------------------------------" echo "Uptime:" uptime echo "--------------------------------------------------------------------" echo "Currently connected:" who echo "--------------------------------------------------------------------" echo "Last logins:" last -d date echo "--------------------------------------------------------------------" echo "Disk and memory usage:" df -h | xargs | awk '{print "Free/Total Disk: " $11 " / " $9}' echo "--------------------------------------------------------------------" echo "Utilization and most expensive processes:" top -b |head -3 echo top -b |head -10 |tail -4 echo "--------------------------------------------------------------------" echo "Open TCP ports (Recommended To Enable But May Cause Flood):" netstat -n echo "--------------------------------------------------------------------" echo "processes:" ps auxf echo "--------------------------------------------------------------------" echo "vmstat:" vmstat -fimstvz echo "--------------------------------------------------------------------"
have any questions regarding this script and need support please email us at support@nastycode.com or connect to irc server at irc.nastycode.com channel #nastycode! feel free to come and join us on irc!