AIX系统监控利器:nmon实战指南

需积分: 15 6 下载量 134 浏览量 更新于2024-09-12 收藏 60KB DOCX 举报
"AIX下用nmon进行监控和分析实战" 在IBM AIX操作系统中,nmon(Nigel's Performance Monitor for AIX)是一个强大的工具,用于实时监控和记录系统的性能数据,包括CPU、内存、磁盘I/O、网络、文件系统等。本实战指南将详细介绍如何在AIX上安装、配置和分析nmon的数据。 首先,获取nmon软件。你可以从IBM DeveloperWorks Wiki或SourceForge网站下载最新的nmon版本。下载后,作为root用户登录到AIX系统,并将文件重命名并上传到/bin目录。执行`chmod 755 /bin/nmon`来赋予文件执行权限。 使用nmon进行监控时,有几种运行方式。基本命令格式如下: ```bash nmon -f -N -m /nmon/log -s 30 -c 2880 ``` - `-f` 参数指示nmon按照标准格式输出文件,文件名包含主机名、日期和时间戳。 - `-N` 参数开启NFS部分的监控。 - `-m /nmon/log` 设置输出日志文件的保存路径。 - `-s 30` 指定每30秒收集一次数据。 - `-c 2880` 表示总共收集2880次数据,相当于24小时的监控(假设每30秒收集一次)。 如果想要让nmon定期运行,可以利用crontab。例如,要在工作日的每天8点开始监控10小时,可以编辑crontab配置: ```bash 0 8 * * 1,2,3,4,5 nmon -f -N -m /nmon/log -s 30 -c 1200 ``` 分析nmon收集的数据,你需要将生成的`.nmon`文件从AIX服务器下载到个人计算机。然后,使用nmon analyser工具,如nmonanalyserv339.xls,这是一款基于Excel的工具。确保Excel的安全设置允许运行宏,然后打开`.nmon`文件。工具会自动生成视图模式,让你能直观地看到性能数据。 参考链接中的crontab参数详解可以帮助理解其各个字段的含义。例如,`minute`, `hour`, `day_of_month`, `month`, 和 `weekday` 分别对应分钟、小时、日期、月份和星期,接受0到59、0到23、1到31的数值。 通过这种方式,AIX管理员可以有效地监控系统性能,及时发现和解决潜在问题,优化系统资源的使用,确保业务连续性和稳定性。nmon不仅提供了实时视图,还支持长时间的数据收集和分析,是AIX系统管理中的得力助手。
2009-04-09 上传
Hello nmon user, This file introduces nmon for AIX 5L version 11e. This is a full version but seems to me to be stable enough for real work. But please test it a little before removing your older nmon version. If you are using the nmon2rrd or nmon Analyser, please also check these tool accept the new data files generated by nmon 11. Please feedback any problems to the developer Nigel Griffiths at nag@uk.ibm.com A zipped sample output file (not too big please) is also helpful. nmon has moved to the new IBM AIX Wiki Website which will mean that new versions can be release much more effectively and information updated on demand. See below for the URL. What is new in this latest nmon for AIX 5 version 11c ? Summary: 1) New Simpler Online Look 2) Volume Group Disk Stats 3) Paging Space Stats 4) Command Summary of TOP process data 5) Error messages go out to stderr 6) Network stats - fixed overflow problems. 7) Network errors and auto off 8) Protect against WLM library AIX memory leaks - if WLM off 9) AIX 5.2 Low ML - problem work around attempt 10) CPU Stats on POWER5 with AIX 5.3 and Shared Processor LPARs = SPLPAR. 11) Making nmon numbers match AIX commands 12) JFS numclient and maxclient numers 13) Wide windows in X Windows makes the columns wider in the Top view 14) WLM works again 15) nmon spots the VIO Server and reports the VIO Server version The full details of these 10 enhancements can be found at the new nmon Wiki Website http://www-941.haw.ibm.com/collaboration/wiki/display/WikiPtype/README+nmon+for+AIX+version+11e Please read the details before asking questions, particularly with number 10. Installing You will need to unzip the file: gunzip nmon4aix11e.tar.gz and then tar the files out: tar xvf nmon4linuxv11e.tar Please Note the New Places to Get nmon and nmon Information ----------------------------------------------------------- You can find all the latest nmon information and downloads at the new AIX Wiki - this includes the nmon for Linux too: Goto http://www.ibm.com/servers/eserver/pseries/community/ then select AIX Wiki then select Other Performance Tools then select nmon or go there directly via this URL http://www.ibm.com/collaboration/wiki/display/WikiPtype/nmon In addition nmon questions should now be raised at the Performance Tools Forum Goto http://www.ibm.com/servers/eserver/pseries/community/ and take the Performance Tools Forum Link There are loads of questions and answers there already. You may find your questions has already been answered.