Veritas-bu

[Veritas-bu] Netbackup command to check existence of a specific copy # and retention level

2005-10-07 00:55:50
Subject: [Veritas-bu] Netbackup command to check existence of a specific copy # and retention level
From: ida3248b AT post.cybercity DOT dk (ida3248b AT post.cybercity DOT dk)
Date: Fri, 7 Oct 2005 06:55:50 +0200
Hello Mitch

Have you tried to use bpimagelist ?

Regards
Michael

On Thu, 6 Oct 2005 15:13:09 -0500, Lien, Mitch wrote
> Hi.
> 
> I am writing a shell script that will be used to validate Vault
> duplication jobs.
> 
> Specifically, we want to know that all of our clients/policies have
> duplicated correctly and have the correct retention level.
> 
> Within the script, I have a line which is similar to the following:
> 
> bpimmedia -client $CLIENT -policy $POLICY -d $START_DATE -e $END_DATE
> -cn $COPY_NUMBER -rl $RETENTION_NUMBER
> 
> Example:
> # bpimmedia -client sapdbpr1 -policy sapdbpr1_PRD_Daily_L700 -d
> 10/01/2005 -e 10/05/2005 -cn 2 -rl 3
> IMAGE sapdbpr1 7 sapdbpr1_1128513878 sapdbpr1_PRD_Daily_L700 0
> Daily-Full-sapdbpr1L700 0 3 179 1129723478 0 0
> FRAG 1 1 29920 0 2 6 641 M02545 laxstg1.corp.minimed.com 262144 1189199
> 1114689840 5 0 *NULL* 1131192278 0 3
> FRAG 2 1 29920 0 2 6 8 M02746 laxstg2 262144 38664 1128524650 0 0 *NULL*
> 1129723478 0 1
> 
> When the above command is run, the output always shows both copy 1 
> and copy 2 information. If there isn't a copy 2, it shows the copy 1 
> info. I would like the output to show "no entity found" if there 
> isn't a copy
> 2. From what I can see, the "-cn" is getting ignored. I have tried using
> the "-spangroups" argument, but that does not appear to work and I am
> not sure what it is doing.
> 
> I have had some luck with the "bpduplicate -PM -cn <copy number> -policy
> <policy name> -client <client name> -s <start date> -e <end date>"
> command. It is telling me if a specific copy does exist or not; 
> however, it is not accepting the retention level "-rl" argument. 
> When I attempt to use "-rl" it appears to be ignored.
> 
> If anyone has a way to query the image db by copy # and retention level
> and get a true/false type output, I would appreciate your help.
> 
> Thanks.
> 
> Mitch
> 
> _______________________________________________
> Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


--
Cybercity Webhosting (http://www.cybercity.dk)