Hi Simon
Do you have any idea about my question??
To unfrozen it :
bpmedia -unfreeze -m <media_id>
To expire it (normal backup) :
bpexpdate -m <media_id> -d 0
To expire it (catalog backup) :
vmquery -deassigned <media_id> 1 0x1
Hope it helps!
jm
>>> "WEAVER, Simon" <simon.weaver AT astrium.eads DOT net> 02.11.2005 10:53:25
>>> >>>
Hi
If I have a media that is frozen and I want to expire it to make it
available, do you happen to know the command line for this? Using NBU 5.x
Thanks
Simon
-----Original Message-----
From: Jérôme Meyer [mailto:jerome.meyer AT pax DOT ch]
Sent: 02 November 2005 09:46
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Capturing bpmedialist's command output ?
Hi
I'm writing a shell script to know the tape's expiration date, like
this:
VARIABLE=$(bpmedialist -mlist -U -m $MEDIA_ID|tail +7|\awk '{print $2}'|sed
'/^ *$/d') Output --> $VARIABLE=11/06/2005
Unfortunately, some tapes aren't in DB and produce no output in $VARIABLE
BUT they send this message in STDOUT like follow :
"requested media id was not found in NB media database and/or MM volume
database"
Which commands or functions can I use to capturing the STDOUT value?
Thanks
jm
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
This email is for the intended addressee only.
If you have received it in error then you must not use, retain, disseminate or
otherwise deal with it.
Please notify the sender by return email.
The views of the author may not necessarily constitute the views of EADS
Astrium Limited.
Nothing in this email shall bind EADS Astrium Limited in any contract or
obligation.
EADS Astrium Limited, Registered in England and Wales No. 2449259
Registered Office: Gunnels Wood Road, Stevenage, Hertfordshire, SG1 2AS, England
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|