Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Using nmon to monitor and analyze actual combat under AIX

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Download nmon from here:

Http://www.ibm.com/developerworks/wikis/display/Wikiptype/nmonanalyser

1. Prepare:

1) Log in to the system with the root user

2) create a directory: # mkdir / nmon/script

3) confirm the version: # oslevel, in order to determine which script to use, I use 530

# oslevel-s

5300-09-01-0847

4) upload nmon12e_aix530 to / nmon/script using ftp

5) execute authorization command: # chmod + x nmon12e_aix530

2. Use:

1) use it directly:

. / nmon/nmon12e_aix536-f-N-m / nmon/log-s 30-c 2880

Indicates:

-f output files in standard format: _ YYYYMMDD_HHMM.nmon

-N include NFS sections

-m switch to the path to save the log file

-s is sampled every n seconds, here is 30

-c the number of samples taken, here is 2880, that is, monitoring = 2880 * (30-60-60) = 24 hours

The formula for calculating this number according to the hour is: c=h*3600/s, for example, if you want to monitor for 10 hours and take samples every 30 seconds, then clocks 10 hours 3600 pounds 30 seconds 1200.

2) use crontab regularly:

A. Execute the command: # crontab-e

B. add the following command on the last line:

0 8 * * 1, 2, 3, 4, 5 / nmon/script/nmon12e_aix530-f-N-m / nmon/log-s 30-c 1200

Indicates:

Monday to Friday, starting at 08:00, monitoring for 10 hours (until 18:00 sharp), output to / nmon/log

3. Analysis

1) it will generate * .nmon file in / tmp/nmon and download it to your computer.

2) Open nmon analyser v339.xls, set the security of the macro to a minimum, and open the downloaded * .nmon file.

And save as a file, the generation is in view mode, very intuitive!

Reference:

Appendix I: crontab parameters:

Reference: http://tech.ddvip.com/2008-11/122629526990895.html

F1 f2 f3 f4 f5 program

Minute hour day_of_month month weekday command these fields receive the following values:

Minute 0 to 59

Hour 0 to 23

Day_of_month 1 to 31

Month 1 to 12

Weekday 0 to 6 (Sunday to Saturday)

Where F1 represents minutes, f2 represents hours, f3 represents the day of a month, f4 represents a month, and f5 represents the day of a week. Program represents the program to be executed.

When F1 is *, it means that every minute will be executed. If program,f2 is *, the program will be executed every hour, and so on.

When F1 is aMub, it will be executed from minute a to minute b, and when f2 is amelb, it will be executed from hour a to hour b, and so on.

When F1 is * / n, it is executed every n minutes, f2 is * / n, it is executed every n hours, and so on.

When F1 is a, b, c. It means a, b, c, etc. Minutes to be executed, f2 is a, b, c. It means a, b, c. Hours to execute, other analogies

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report