#!/bin/bash
# Print system resources
echo "HOSTNAME: "`hostname`
echo "SYSTEM: "`uname -a`
echo "IP ADDRESS: "; ifconfig eth0
echo "ROUTE TABLE:"; route -n
echo ""
# Start monitoring the system resources
while true
do
echo ------ `date` ------
top -b n1 | head -n 6
sleep 60
done
# Print system resources
echo "HOSTNAME: "`hostname`
echo "SYSTEM: "`uname -a`
echo "IP ADDRESS: "; ifconfig eth0
echo "ROUTE TABLE:"; route -n
echo ""
# Start monitoring the system resources
while true
do
echo ------ `date` ------
top -b n1 | head -n 6
sleep 60
done
No comments:
Post a Comment