06-21-2017 08:12 AM
Hello,
I have to set up cron job to get sctach media for each monday at 8:05AM.
when i used below command its not working.
5 8 * * 1 /usr/openv/volmgr/bin/vmquery -pn Scratch_pool -bx | awk '{ if ( $3 == "NONE" ) print $1 }' | mail -s "scratch tapes recall list" xyz@abc.com
But if i used to run it at any minute its working, like below command
* * * * * /usr/openv/volmgr/bin/vmquery -pn Scratch_pool -bx | awk '{ if ( $3 == "NONE" ) print $1 }' | mail -s "scratch tapes recall list" xyz@abc.com
Thanks
06-21-2017 09:02 PM
Has nothing to do with Netbackup..
system logs give you an idea whether it's running the cronjob properly or not.
I would delete the whole line and key them in again to try.
06-22-2017 01:02 AM
root gets a mail if a crontab fails, the mail should provide a hint of what failed.
06-22-2017 06:46 AM
Hello,
Thanks for the reply.
cron job is not working/running with specific day and time, rather its working if i gave all stars(to run it any minute). nothing i can see under root for any failed crontab related email.
thanks
06-22-2017 07:01 AM
Maybe there isnt an email. Have you look at the cron log?