Please login or register. August 23, 2019, 11:11:21 AM

Author Topic: topas_nmon undocumented features  (Read 10188 times)

0 Members and 1 Guest are viewing this topic.

weskus

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
topas_nmon undocumented features
« on: September 26, 2012, 07:57:54 AM »
Any idea what this actually does on topas_nmon

-ypersistent=1

And there are other -y arguments as well?

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1139
  • Karma: +0/-0
Re: topas_nmon undocumented features
« Reply #1 on: September 27, 2012, 11:41:27 AM »
I do not know if there are other -y arguments.

-ypersistent=1 -- I have only seen this used for setting up "permanent" monitors starting from /etc/inittab rather than from a root entry in crontab.

And you are correct - not in the man page...

nmon:2:once:/usr/bin/nmon -f -s 900 -ydays_file=1 -a 7 -t -w 4 -l 150 -I 0.1 -o /etc/perf/daily/ -ypersistent=1 2>&1 >/dev/null #Start daily recording

VincentL

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
Re: topas_nmon undocumented features
« Reply #2 on: November 25, 2014, 07:24:15 PM »
I've found a new undocumented feature.

I'd an issue with topas_nmon in AIX 7.1 TL3 SP3.

IBM reply :

Quote
"Without APAR IV52726, nmon was overwritting the         
existing file. So nmon is modified to not to use the existing file.         
Customer should use '-yoverwrite=1' if they use existing file.  This is     
not the work around.  nmon is working as expected."

It's very useful when you want topas_nmon to write in a pipe.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1139
  • Karma: +0/-0
Re: topas_nmon undocumented features
« Reply #3 on: November 25, 2014, 08:16:40 PM »
The behavior, to not overwrite a file, is also the behavior for AIX 6.1 TL9. And since AIX 7.1 TL3 and AIX 61. TLP are supposed to be similar in feature behavior - as much as possible - this was to be expected.


Code: [Select]
                                  COMMAND STATUS

Command: failed        stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

opening output file: File exists
ERROR nmon filename=/var/perf/daily/x054_141125.nmon
Error: Failed to start the recording.
Failed command: /usr/bin/nmon -f -s 900 -ydays_file=1 -a 7 -t -w 4 -l 150 -I 0.1 -o /var/perf/daily/

Neither did /etc/inittab get updated.

p.s. The help text in "smitty topas"
Code: [Select]

 Number of Days to retain                           [7]                       #
Code: [Select]
* Overwrite existing recording file                   no                       +
Code: [Select]
  Output Path                                        []
  Running Priority                                   []                        #
* Rlqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk+
  Ix                             CONTEXTUAL HELP                              x+
* Ix                                                                          x+
* Ix Press Enter or Cancel to return to the application.                      x+
* Ix                                                                          x+
* Ix   This menu helps user to overwrite the existing recording file. User ca x+
[MOx   n select 'No' to use the existing recording file                       x
   x                                                                          x
F1=x F1=Help                 F2=Refresh              F3=Cancel                x
Escx F8=Image                Enter=Do                                         x
F9=mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1139
  • Karma: +0/-0
Re: topas_nmon undocumented features
« Reply #4 on: November 25, 2014, 08:41:27 PM »
Looks like TL9/TL3 have fixed a bug - files did get overwritten, while the smit dialog also said, do not overwrite!

Notice ALSO, that /var/perf/daily points to /etc/perf/daily!

Code: [Select]
root@x113:[/]ls -l /var/perf/daily
total 88
-rw-r--r--    1 root     system        44352 Nov 25 19:22 persistent.db
lrwxrwxrwx    1 root     system           33 Nov 25 00:00 persistent_local -> /etc/perf/daily/x113_141125.topas


Code: [Select]
root@x113:[/]r ls
ls -l /etc/perf/daily
total 5832
-rw-r--r--    1 root     system       327308 Nov 23 23:57 x113_141123.topas
-rw-r--r--    1 root     system      1424444 Nov 24 23:57 x113_141124.topas
-rw-r--r--    1 root     system        66338 Nov 25 19:22 x113_141125.nmon
-rw-r--r--    1 root     system      1154972 Nov 25 19:17 x113_141125.topas

Beginning of nmon file...
Code: [Select]
AAA,progname,topas_nmon
AAA,command,/usr/bin/topas_nmon -f -s 900 -ydays_file=1 -a 7 -t -w 4 -l 150 -I 0.1 -o /etc/perf/daily/ -ypersistent=1 -y
output_dir=/etc/perf/daily/ -ystart_time=19:19:08,Nov25,2014
AAA,version,TOPAS-NMON
AAA,build,AIX
AAA,disks_per_line,150
AAA,host,x113
AAA,user,root
AAA,AIX,6.1.6.23
AAA,TL,06
AAA,runname,x113
AAA,time,19:19:09
AAA,date,25-NOV-2014
AAA,interval,900
Stop the recording...

Code: [Select]
                                  COMMAND STATUS                                 
                                                                                 
Command: OK            stdout: yes           stderr: no                           
                                                                                 
Before command completion, additional instructions may appear below.             
                                                                                 
Successfully deleted nmon inittab entry.                                         
Successfully stopped the recording.                                               
                                                                                 
                                                           
Restart the recording...
Code: [Select]
                         Start Persistent nmon recording                         
                                                                                 
Type or select values in entry fields.       
Press Enter AFTER making all desired changes.                                     

[TOP]                                                   [Entry Fields]           
  Type of Recording                                   nmon                       
  Length of Recording                                 persistent                 
* Recording Interval in seconds                      [900]                      #
* Number of Days to store per file                   [1]                        #
* Number of Days to retain                           [7]                        #
* Overwrite existing recording file                   no                       + 
  Output Path                                        []                           
  Running Priority                                   []                         #
* Recording time zone                                 Local time               + 
  Include top processes                               2 Include top process l> + 
* Include disk configuration section                  yes                      + 
* Include ESS configuration section                   yes                      + 
* Include JFS section                                 yes                      + 
* Include RAW Kernel and LPAR section                 no                       + 
[MORE...83]                                                                       

                                  COMMAND STATUS

Code: [Select]
Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

Successfully started persistent recording.

Notice the new file date - and smaller size!
Code: [Select]
root@x113:[/]ls -l /etc/perf/daily
total 5824
-rw-r--r--    1 root     system       327308 Nov 23 23:57 x113_141123.topas
-rw-r--r--    1 root     system      1424444 Nov 24 23:57 x113_141124.topas
-rw-r--r--    1 root     system        56185 Nov 25 19:24 x113_141125.nmon
-rw-r--r--    1 root     system      1159784 Nov 25 19:22 x113_141125.topas

And content to prove the old file is overwritten! New Start (check time!)

Code: [Select]
AAA,progname,topas_nmon
AAA,command,/usr/bin/topas_nmon -f -s 900 -ydays_file=1 -a 7 -t -w 4 -l 150 -I 0.1
 -o /etc/perf/daily/ -ypersistent=1 -youtput_dir=/etc/perf/daily/ -ystart_time=19:
24:29,Nov25,2014
AAA,version,TOPAS-NMON
AAA,build,AIX
AAA,disks_per_line,150
AAA,host,x113
AAA,user,root
AAA,AIX,6.1.6.23
AAA,TL,06
AAA,runname,x113
AAA,time,19:24:30
AAA,date,25-NOV-2014

So, in conclusion, it appears the AIX 6.1 TL9 and AIX 7.1 TL3 have corrected an "error" that existed in AIX 6.1 TL6 (and by reference AIX 7.1 TL0) and it has been corrected somewhere between "then" and "now".
« Last Edit: November 25, 2014, 09:00:14 PM by Michael »

VincentL

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
Re: topas_nmon undocumented features
« Reply #5 on: December 01, 2014, 11:50:57 AM »
Thanks you Michael !
I'had not launched smitty and I've had not seen the option :)