nmon keyboard shortcuts
- q – To stop and exit nmon.
- h – To see quick help (hint) screen and press h again to remove the hints.
- Use the following command to turn on or off stats:
- c – See cpu stats.
- m – See memory stats.
- d – See disk stats.
- k – See kernel stats.
- n – See network stats.
- N – See NFS stats.
- j – See file system stats.
- t – See top process.
- V – See virtual memory stats.
- . – See only busy disks/procs.
- v – Verbose mode (display as Ok/warning/danger on screen).
Sample output from my home server:
How do I set default monitoring options for nmon?
To see the memory, network, disk and processor statistics immediately after the nmon command is started, run (or add in your shell startup file):
# export NMON=mndc
Run the nmon command:
Capturing and analyzing data with nmon
You can capture the data to a file for later analysis and graphing. Type the following command:
# nmon -f -s2 -c 30
# nmon -ft -s 30 -c 120
nmon will run as a daemon in the background and you can log out. nmon will complete the data file capture and it will save in a file *.nmon file such as nas02_120806_0202.nmon. Where,
- -f : Start data collect mode and output in spreadsheet format.
- -s 2 : Wait between 2 seconds refreshing the screen.
- -c30 : Total number of refreshes (30).
- -t : Spreadsheet includes top processes.
- -d disks : to increase the number of disks [default 256]
- -x : Capacity planning (15 min for 1 day = -fdt -s 900 -c 96)
You need to download nmonanalyser which is an Excel spreadsheet that takes an output file from nmon and produces some nice graphs to aid in analysis and report writing.
Check out related media
See a quick installation and demo of nmon command: