AIX

AIX

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

 View Only
  • 1.  how to output nmon to /tmp directory

    Posted Thu February 05, 2009 02:47 AM

    Originally posted by: apple08


    dear AIX gurus,
    currently our nmon output that we schedule in cron in stored in root directory. the cron job is:
    06 11 19 07 * /tmp/nmon/nmon -fT -s 15 -c 240

    how to output this cron to direct to /tmp
    hope to hear from you. thank you


  • 2.  Re: how to output nmon to /tmp directory

    Posted Thu February 05, 2009 03:52 AM

    Originally posted by: chandru0078


    try this
    06 11 19 07 * /tmp/nmon/nmon -fT -s 15 -c 240or

    mkdir /tmp/nmonlog

    06 11 19 07 * /tmp/nmon/nmon -fT -s 15 -c 240 /tmp/nmonlog

    chandru0078


  • 3.  Re: how to output nmon to /tmp directory

    Posted Thu February 05, 2009 03:54 AM

    Originally posted by: chandru0078


    sorry typo error
    06 11 19 07 * /tmp/nmon/nmon -fT -s 15 -c 240 /tmp


  • 4.  Re: how to output nmon to /tmp directory

    Posted Thu February 05, 2009 08:15 PM
      |   view attached

    Originally posted by: apple08


    dear Sir,
    i'm trying this in crontab, but i check the output didn't direct to /tmp
    00 08 06 02 * /tmp/nmon/nmon -fT -s 30 -c 960 /tmp
    i'm not sure need to change the path in nmon script. attached is the nmon script for your comments.

    than k you

    Attachment(s)



  • 5.  Re: how to output nmon to /tmp directory

    Posted Thu February 05, 2009 09:06 PM

    Originally posted by: chandru0078


    try this again

    /tmp/nmon/nmon -fT -s 15 -c 240 -m /tmp

    chandru0078


  • 6.  Re: how to output nmon to /tmp directory

    Posted Sat February 07, 2009 06:35 AM

    Originally posted by: nagger


    Well, done Mr chandru0078

    And including the cron details to start the collection at midnight every night as it runs for 24 hours this makes good sense:

    0 0 * * * /tmp/nmon/nmon -fT -s 15 -c 240 -m /tmp

    Of course, /tmp is not that good a choice of directory as the contents is often removed automatically via scripts or a system administrator cleaning up.

    Thank Nigel