if [[ $# -ne 3 ]]
then
echo 'Usage: nmon.sh <logname> <interval:second> <duration:minute>'
exit
fi
((COUNT=($3*60)/$2))
export DATE=`date +"%y%m%d_%H%M"`
/usr/bin/nmon -fdt -F /home/log/$(hostname -s)_$(date +"%y%m%d_%H%M")_$1.nmon -s $2 -c $COUNT
# mkdir /home/log/$(date +"%y%m%d")_$1
echo "####################################################################"
echo " For gathering nmon data, "
echo " Execute"
echo " \"/home/script/nmon_get.sh $(date +"%y%m%d_%H")*_$1 $(date +"%y%m%d")_$1\" "
echo " on this server without dsh "
echo "####################################################################"
'IBM Power' 카테고리의 다른 글
gmon - A Graphical LPar Monitor (0) | 2012.08.17 |
---|---|
crontab... (0) | 2012.08.17 |
dog 프로세스... (0) | 2012.08.16 |
aix 6.1 이상에서 hdisk 순서변경하기 rendev (0) | 2012.08.08 |
vios에서 보이는 virtual adapter의 slot 번호 찾기... (0) | 2012.08.07 |