[Veritas-bu] [3.4.1] getting JobID in backup_exit_notify
2004-05-12 05:03:50
Subject: |
[Veritas-bu] [3.4.1] getting JobID in backup_exit_notify |
From: |
arne AT topnet DOT de (Arne Kloecker) |
Date: |
Wed, 12 May 2004 11:03:50 +0200 |
Hi,
i'm currently cleaning up my old scripts and trying to make them more robust
and efficient.
To get more infos about the job that just finished, i want to get it's JobID
in backup_exit_notify, so i can parse the info i want out of the jobfile
(until now i uses bpdbjobs to get the info, but i needed the JobID as well).
Currently i get the JobID by guessing it from bperror (the last finished job
with the given stats):
$JOBID=`/usr/openv/netbackup/bin/admincmd/bperror -hoursago 1 -client $CLIENT
-backstat|grep "CLASS $CLASS"|grep "SCHED $SCHEDULE"|grep "STATUS $STATUS"|
tail -1|awk '{print \$6}'` *1
But this sucks, as i only guess the JobID. Do you have any ideas to _know_ the
JobID or guess it more reliable or more efficient?
Thanks in advance
Arne
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Veritas-bu] [3.4.1] getting JobID in backup_exit_notify,
Arne Kloecker <=
|
|
|