Re: [Veritas-bu] Scripting bpdbjobs
2009-02-20 16:52:44
I'd drop the "-all_columns" - it takes forever and gives you way more
than you need.
What you need is probably in the first couple columns or in the
"-most_columns" output at the worst.
You might also consider using a backup_exit_notify script on your master
server to record client, policy, schedule, & return code to create a
daily table as jobs complete. I think that's easier than mining
bpdbjobs output.
-M
-----Original Message-----
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of fullejn
Sent: Thursday, February 19, 2009 5:30 PM
To: VERITAS-BU AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Scripting bpdbjobs
I have been tasked to query bpdbjobs regularly to report back all
successful full backups of all clients. I have been staring at man for
bpdbjobs and have found the command and options below, but I need more
assistance massaging it for the desired results. Anyone currently have
something similar working?
/usr/openv/netbackup/bin/admincmd/bpdbjobs -all_columns -M
${BACKUPSERVER}| cut -d, -f1-34 | awk -F, '{print $1, $4, $5, $6, $7,
$33}'
+----------------------------------------------------------------------
|This was sent by joshua.n.fuller AT lmco DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|