Re: Nmon scheduling question
- From: "Vincent D'Antonio" <dantoniov@xxxxxxxxx>
- Date: Mon, 2 Oct 2006 12:05:34 -0400
Here is a script I use hope it helps.
Vince
#####################################################
#
# This srcipt is used to gather system
# Information to use for Diagnostics or
# in capacity planning.
#
# Version History:
# 1.0 -- Vincent D'Antonio
# 2/10/05 1st Version
#
######################################################
#
#!/usr/bin/ksh
#
######################################################
#
# Variables
#
######################################################
#
LOG=/usr/local/log
DATE=`/usr/bin/date +%m%d%y`
HOST=`/usr/bin/hostname`
NMON=/usr/local/bin/nmon
FILE=${LOG}/${HOST}_${DATE}.nmon
#
######################################################
#
# Kill nmon if running
#
######################################################
#
for i in `ps -ef | grep "/usr/local/bin/nmon" | egrep -v grep | awk '{print
$2}'`
do
kill -9 $i
sleep 30
done
#
######################################################
#
# Nmon Command
#
######################################################
#
${NMON} -x -F ${FILE} -tA -s 900 -c 96
#
######################################################
#
######################################################
#
# Gzip files older than 3 days
# and remove files older than
# 30 days.
#
######################################################
#
cd ${LOG}
find . -name "*.nmon" -mtime +3 -exec gzip {} \;
find . -name "*.nmon.gz" -mtime +30 -exec rm {} \;
#
On 10/2/06, Larry Scheetz <LScheetz@xxxxxxxxxxx> wrote:
Admins,
I know that nmon32 is not a supported tool by IBM but was wondering how
others had it setup. I have it installed on all my AIX 5.2 boxes and it
works great. I have used the analyzer spread *** and all. I really like
this tool. I would like to add this as a cron entry to run everyday and
keep the files for maybe a week at a time. I want to make sure because
these look like they can get sizeable. What I was going to put is the
following: 0 1 * * * /tmp/nmon_aix32 –s600 –c 144
Does anyone have a suggestion on a cron setting so that I can capture
daily snapshots throughout the day but for the entire day?
Thx
Larry
- References:
- Nmon scheduling question
- From: Larry Scheetz
- Nmon scheduling question
- Prev by Date: Nmon scheduling question
- Next by Date: Re: Nmon scheduling question
- Previous by thread: Nmon scheduling question
- Next by thread: Re: Nmon scheduling question
- Index(es):