Hi
I want to put the output from
wmstat -w 5
into a database as the command runs - I have this script that right now puts the data into a file.
HOST=`hostname -s`
while [ : ]
do
echo `date +"%d%m%y-%H:%M:%S"` " " `/usr/bin/vmstat -w 1 2|tail -1` >> /home/nmsuser/scripts/log/vmstat_$HOST.log
sleep 10
done
But insted of sending the output into a file - I would like it to go ino a database.
/Larshg
I want to put the output from
wmstat -w 5
into a database as the command runs - I have this script that right now puts the data into a file.
HOST=`hostname -s`
while [ : ]
do
echo `date +"%d%m%y-%H:%M:%S"` " " `/usr/bin/vmstat -w 1 2|tail -1` >> /home/nmsuser/scripts/log/vmstat_$HOST.log
sleep 10
done
But insted of sending the output into a file - I would like it to go ino a database.
/Larshg