Topics: AIX, Monitoring, System Admin
NMON recordings
One can set up NMON recordings from smit via:
# smitty topas -> Start New Recording -> Start local recording -> nmonHowever, the smit panel doesn't list the option needed to get disk IO service times. Specifically, the -d option to collect disk IO service and wait times. Thus, it's better to use the command line with the nmon command to collect and report these statistics. Here's one set of options for collecting the data:
# nmon -AdfKLMNOPVY^ -w 4 -s 300 -c 288 -m /var/adm/nmonThe key options here include:
- -d Collect and report IO service time and wait time statistics.
- -f Specifies that the output is in spreadsheet format. By default, the command takes 288 snapshots of system data with an interval of 300 seconds between each snapshot. The name of the output file is in the format of hostname_YYMMDD_HHMM.nmon.
- -O Includes the Shared Ethernet adapter (SEA) VIOS sections in the recording file.
- -V Includes the disk volume group section.
- -^ Includes the FC adapter section (which also measures NPIV traffic on VIOS FC adapters).
- -s Specifies the interval in seconds between 2 consecutive recording snapshots.
- -c Specifies the number snapshots that must be taken by the command.
# cat /usr/local/collect_nmon.ksh
#!/bin/ksh
LOGDIR="/var/adm/nmon"
PARAMS="-fTNAdKLMOPVY^ -w 4 -s 300 -c 288 -m $LOGDIR"
# LOGRET determines the number of days to retain nmon logs.
LOGRET=365
# Create the nmon folder.
if [ ! -d /var/adm/nmon ] ; then
mkdir -p $LOGDIR
fi
# Compress previous daily log.
find $LOGDIR -name *.nmon -type f -mtime +1 -exec gzip '{}' \;
# Clean up old logs.
find $LOGDIR -name *nmon.gz -type f -mtime +$LOGRET -exec rm '{}' \;
# Start nmon.
/usr/bin/nmon $PARAMS
Then add the following crontab entry to the root crontab file:
0 0 * * * /usr/local/collect_nmon.ksh >/tmp/collect_nmon.ksh.log 2>&1To get the recordings thru the NMON Analyser tool (a spreadsheet tool that runs on PCs and generates performance graphs, other output, and is available here), it's recommended to keep the number of intervals less than 300.
If you found this useful, here's more on the same topic(s) in our blog:
- Installation history
- How much paging space is this process using?
- Opening a virtual terminal window on HMC version 3.3.6
- Creating an LPP source and SPOT in NIM
- System dump compression
UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.
Interested in learning more?
Interested in learning more?




