nmon use of summary (updated regularly)

nmon use of summary

1.nmon commonly used commands:

./nmon -s1 -c300 -f -m / root / nmon-test-result / -50 concurrent projects /

2. Set nmon parameter -s1 -c720, found nmon run only 288 seconds is stopped.

Solution: At that time I was directly copied from another system nmon, horses do not know the version does not match, then try to upload another local version of nmon, run successfully.

3. How batch run nmon?

Requirements: There are currently 10 servers (192.168.1.11-20) needs to be monitored, and this bastion 10 servers are accessible only through the machine. Now find another remote access server A (192.168.1.10), which is connected to a server 10 through which ssh. Now have an application deployed on these 10 servers, they need to monitor CPU, memory performance test cases at the same time, how?

Ideas: nmon multi-machine monitor multiple hosts to build trust, one to execute the script.

Solution:

(1) first copy of the public key, so that we can directly ssh A which servers 10, without the need to enter a password.

ssh-keygen // generate keys 
ssh-copy-id -i ./.ssh/id_rsa.pub " -p 10022 [email protected]" // copy key 
ssh -p 10022 [email protected] // Copy Upon completion, try to connect via ssh, should not enter a password directly connected to the success of 
the ssh-copy-id -i ./.ssh/id_rsa.pub " -p 10022 [email protected]" // connection is successful, cut back server a, in the same manner, the key is copied to the other nine servers SSH-copy--i ./.ssh/id_rsa.pub ID "10022 [email protected] -p" SSH-copy-ID -i ./ .ssh / id_rsa.pub "-p 10022 [email protected]" SSH-Copy--i ./.ssh/id_rsa.pub ID "10022 [email protected] -p" SSH-Copy-ID -i ./ .ssh / id_rsa.pub "-p 10022 [email protected]" SSH-Copy--i ./.ssh/id_rsa.pub ID "10022 [email protected] -p" SSH-Copy-ID -i ./ .ssh / id_rsa.pub "-p 10022 [email protected]" SSH-Copy-the above mentioned id -i ./.ssh/id_rsa.pub "-p 10022 [email protected]" SSH-Copy-the above mentioned id -i ./.ssh/id_rsa.pub "-p 10022 [email protected]"

(2) running 01copynmon.sh, nmon copied from the server A to the server 10.

#!/bin/bash
iplist=(192.168.1.11 192.168.1.12 192.168.1.13 192.168.1.14 192.168.1.15 192.168.1.16 192.168.1.17 192.168.1.18 192.168.1.19 192.168.1.20)
for ip in ${iplist[*]}
do
 scp -P 10022 /root/nmon root@$ip:/root/ &
 echo $ip
done

(3) Run 02mkdirten.sh, creating nmon-test-result respectively in directory / root / directory servers 10, and the mobile nmon this directory.

#!/bin/bash
iplist=(192.168.1.11 192.168.1.12 192.168.1.13 192.168.1.14 192.168.1.15 192.168.1.16 192.168.1.17 192.168.1.18 192.168.1.19 192.168.1.20)
for ip in ${iplist[*]}
do
 ssh -p 10022 root@$ip "cd;mkdir nmon-test-result;mv nmon nmon-test-result/;exit;"&
 echo $ip
done

(4) running 03runnmon.sh, at 10 servers / root / nmon-test-result /, respectively project050 create a directory, and run nmon, save the results in project050 directory.

#!/bin/bash
iplist=(192.168.1.11 192.168.1.12 192.168.1.13 192.168.1.14 192.168.1.15 192.168.1.16 192.168.1.17 192.168.1.18 192.168.1.19 192.168.1.20)
for ip in ${iplist[*]}
do
 ssh -p 10022 root@$ip "cd /root/nmon-test-result/;mkdir project050;/root/nmon-test-result/nmon -s1 -c300 -f -m /root/nmon-test-result/project050/;exit;"&
 echo $ip
done

(5) run 04ps.sh, to see if nmon have started successfully on 10 servers.

#!/bin/bash
iplist=(192.168.1.11 192.168.1.12 192.168.1.13 192.168.1.14 192.168.1.15 192.168.1.16 192.168.1.17 192.168.1.18 192.168.1.19 192.168.1.20)
for ip in ${iplist[*]}
do
 ssh -p 10022 root@$ip "hostname;ps -ef|grep nmon;exit;"&
 echo $ip
done

(6) running 05mkdir.sh, directory server 10 to establish A above, are used to store the results of monitoring 10 server.

#!/bin/bash
iplist=(192.168.1.11 192.168.1.12 192.168.1.13 192.168.1.14 192.168.1.15 192.168.1.16 192.168.1.17 192.168.1.18 192.168.1.19 192.168.1.20)
for ip in ${iplist[*]}
do
 mkdir nmon-test-result-$ip
 echo $ip
done

(7) running 06copydir.sh, the monitoring result on the server 10 are copied to the appropriate directory server A above.

#!/bin/bash
iplist=(192.168.1.11 192.168.1.12 192.168.1.13 192.168.1.14 192.168.1.15 192.168.1.16 192.168.1.17 192.168.1.18 192.168.1.19 192.168.1.20)
for ip in ${iplist[*]}
do
 scp -P 10022 -r root@$ip:/root/nmon-test-result/chuanglan050 /root/nmon-test-result-$ip &
 echo $ip
done

4.nmon parameter index

Reference: https://blog.csdn.net/he_jian1/article/details/41039709

 


nmon analyser use of summary

1.nmon analyser run-time error: Run-time error '13': Type mismatch.

Cause of the problem: he used to be displayed directly in the lower right corner of the computer, the system will add dddd time, after deleting dddd nmon analyzer can be used normally a week.
Solution: The present system is set to the time format: yyyy-MM-dd. Computer computer name can not have special characters.
Start - Control Panel - Clock, languages and regions - change the date, time, or number format - Short Date Select yyyy-MM-dd, with care not dddd.
Reference: http: //www.kuaiji66.com/t6/yongyout6zhishiku/X6OllZrv64185.html

2.nmon analyser error when running on WPS: Runtime Error 1004 Application-defined or object-defined error.

Tried so many ways did not solve, can only be copied to another computer equipped office on the run.
Official website said nmon analyser only supported in Excel 2003 or later and run.

3.nmon analyser runtime error: Some lines discarded.

unsolved. Temporarily affect the test results.
In addition, nmon command is executed I was ./nmon -s1 -c720 -f -m / root / nmon-test-result /, presumably the number of snapshots I get too much lead. Because the official website said: I recommend that you keep the number of snapshots at about 300, in order to avoid the file is too big a problem. Charts will look better.

4. nmon for large data files (10+ MB), the official website is strongly recommended as follows:

Warning: nmon for large data files (10+ MB), strongly recommended that you install the 64-bit version of Microsoft Excel 2016 or later and have a PC at least 8 GB of memory, 16 GB or more is best. This eliminates many of the failure analysis of large data files.

5.nmon analyser official website:

Download the latest version nmon analyser and recommendations: https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Power+Systems/page/nmon_analyser

 

Guess you like

Origin www.cnblogs.com/zhengna/p/10950056.html