[Veritas-bu] How to identity Status of a backup using Netbackup CLI ?

2013-08-22 Thread vengateshs
I launch 'bpbackup' command in my program and it just gives the return code. There is no way to know the corresponding JobId. Before I launch the next backup, I want to check the status of the Previous backup and make some decision. 'bpimagelist' command can be used with 'keyword' as filter so

Re: [Veritas-bu] How to identity Status of a backup using Netbackup CLI ?

2013-08-22 Thread Rusty Major
What about piping bpdbjobs output to grep and filtering there? That will give you the jobID, which you can use in future commands. On Thu, Aug 22, 2013 at 7:13 AM, vengateshs nbu-fo...@backupcentral.comwrote: I launch 'bpbackup' command in my program and it just gives the return code. There is

Re: [Veritas-bu] How to identity Status of a backup using Netbackup CLI ?

2013-08-22 Thread Lightner, Jeff
] On Behalf Of Rusty Major Sent: Thursday, August 22, 2013 11:11 AM To: VERITAS-BU@mailman.eng.auburn.edu Subject: Re: [Veritas-bu] How to identity Status of a backup using Netbackup CLI ? What about piping bpdbjobs output to grep and filtering there? That will give you the jobID, which you can use

Re: [Veritas-bu] How to identity Status of a backup using Netbackup CLI ?

2013-08-22 Thread Bluejay Adametz
I launch 'bpbackup' command in my program and it just gives the return code. There is no way to know the corresponding JobId. Could you use a backup_exit_notify script to capture what you're looking for? I have good luck getting job IDs that way doing: JOBID=`bperror -client $1 -hoursago 1 \