Originally posted by: SystemAdmin
Hey,
first of all, thanks for your reply!
Finally I almost got the solution, but also have a little problem.
This is what I added to the crontab file:
0 0 * * * /usr/bin/nmon -F /home/informix/nmon_data/analysis_`date +%Y%m%d`.nmon -A -t -s30 -c1439
Now I get the fallowing message from root@AIXHOST:
Cron Environment:
SHELL = /usr/bin/sh
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin
CRONDIR=/var/spool/cron/crontabs
ATDIR=/var/spool/cron/atjobs
LOGNAME=root
HOME=/root
Your "cron" job executed on AIXHOST on Tue Mar 27 00:00:00 MES 2012 /usr/bin/nmon -F /home/informix/nmon_data/analysis_`date +%Y%m%d`.nmon -A -t -s30 -c1439
produced the following output:
ERROR nmon invalid option "Mar"
Hint: topas_nmon
-h -s <seconds> -c <count> -f -d -t -r <name> -x Command: TOPAS_NMON
-h FULL help information - much more than here
Interactive-Mode:
read startup banner and type: "h" once it is running
For Data-Collect-Mode (-f)
-f spreadsheet output format
note: default -s300 -c288 optional
-s <seconds> between refreshing the screen
default 2 -c <number> of refreshes
default millions -t spreadsheet includes top processes
-x capacity planning (15 min for 1 day = -fdt -s 900 -c 96)
*****************************************************************
cron: The previous message is the standard output
and standard error of one of the cron commands.
Something went wrong with the concatenation of the formatted date and the other stuff.
Can you help me out with this ?
Thank you !
Best regards
#AIX-Forum