AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  configuring nmon in crontab

    Posted Thu July 31, 2008 01:31 AM

    Originally posted by: manu12


    Hi,

    I want to know how to configure nmon in crontab, I want to configure nmon for entire month.

    Regards,

    Manoj
    #AIX-Forum


  • 2.  Re: configuring nmon in crontab

    Posted Thu July 31, 2008 08:53 AM

    Originally posted by: SystemAdmin


    This is what we use in our crontab for nmon. Give it a try and see if works for you. It should create an nmon file for you once a day.

    0 6 * * * /usr/bin/nmon -f -T -s600 -c72 1>/dev/null 2>/dev/null
    #AIX-Forum


  • 3.  Re: configuring nmon in crontab

    Posted Mon January 11, 2010 08:35 AM

    Originally posted by: aravinthsamy


    In my box, nmon is in /tmp/nmon. So i gave
    (15 8 * * * ./nmon -fT -s 90 -c 120 1>/dev/null 2>/dev/null) which doesnt work. Please help me out to run nmon in crontab. It needs to be run every 4 hours ,every day and it needs to be stored in /tmp/nmon)

    #cd /tmp/nmon
    #ls -l
    total 22160
    -rw-r--r-- 1 210 ipsec 3603 Mar 30 2008 README_nmon12e.txt
    -rw-r----- 1 root system 4444160 Nov 30 15:01 newer_nmon4aix12e.tar
    -rwxr-xr-x 1 210 ipsec 2119 Mar 31 2008 nmon
    -rwxr-xr-x 1 210 ipsec 388992 Mar 30 2008 nmon12e_aix51
    -rwxr-xr-x 1 210 ipsec 449315 Mar 30 2008 nmon12e_aix522
    -rwxr-xr-x 1 210 ipsec 438145 Mar 30 2008 nmon12e_aix527
    -rwxr-xr-x 1 210 ipsec 472071 Mar 30 2008 nmon12e_aix530
    -rwxr-xr-x 1 210 ipsec 515179 Mar 30 2008 nmon12e_aix534
    -rwxr-xr-x 1 210 ipsec 515368 Mar 30 2008 nmon12e_aix535
    -rwxr-xr-x 1 210 ipsec 539536 Mar 30 2008 nmon12e_aix536
    -rwxr-xr-x 1 210 ipsec 542388 Mar 30 2008 nmon12e_aix537
    -rwxr-xr-x 1 210 ipsec 560628 Mar 30 2008 nmon12e_aix61
    -rw-r----- 1 root system 2458196 Nov 30 14:58 nmon4aix12e.tar.Z
    #AIX-Forum


  • 4.  Re: configuring nmon in crontab

    Posted Mon January 11, 2010 10:36 AM

    Originally posted by: orphy


    I suggest creating a separate filesystem for storing nmon data collection unless this is a very short team thing. You don't want to fill up /tmp.

    Secondly, if you read the crontab man page, you would notice that the entry format is this:

    minute hour day_of_month month weekday command

    With what you have, you minute is 15 while your hour is 8. This means your nmon command will only run once a day at 8:15am. To get what you need, read the man page again to see if you could figure it out yourself.

    Thirdly, your don't usually want to use relative path (./nmon) in the "command" field. Use full path and in your case, /tmp/nmon/nmon. I would also suggest putting the nmon commands in a different place than /tmp/nmon. These would be good candidates for /usr/local/bin or see if /usr/bin/topas_nmon exists. If so, you can simply use that instead.

    To save collection in /tmp/nmon (again, a separate filesystem is highly recommended), you need the "-m <dir>" flag. Run "nmon -h" to get a list of all options and -m is one of them.

    Try putting the crontab entry together on your own and come back if you run in any more issues.
    Orphy
    #AIX-Forum


  • 5.  Re: configuring nmon in crontab

    Posted Mon January 09, 2012 03:36 AM

    Originally posted by: kishoraix


    on which path the nmon file was generated
    my nmon is located at /usr/bin

    Plz suggest me...

    Regards
    kishor babu.m
    #AIX-Forum