You’re just looking in the policy name for ndmp, right? (bpdbjobs without modifiers doesn’t include policy type).
Why not just use:
“bperror –backstat –hoursago 24 | grep –i ndmp | grep –i “EXIT STATUS 1”
Cheers,
Nic
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of NBU
Sent: 22 June 2011 15:56
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Need help in scripting
Hello folks,
I have a requirement where we need to check NDMP backups which completed with status code 1 (Partial backups) in last 24 hours.
I usually run below command to check the output
bpdbjobs | grep -i ndmp | grep -i "Done 1"
I am not good in scripting, so can someone help me make a script which should check the current date and get the output just 24 hours ago.
Thanks in advance,
Saran
Treat yourself at a restaurant, spa, resort and much more with Rediff Deal ho jaye!