Veritas-bu

[Veritas-bu] Changing exp dates via command line

2000-12-21 12:30:07
Subject: [Veritas-bu] Changing exp dates via command line
From: David A. Chapa david AT datastaff DOT com
Date: Thu, 21 Dec 2000 09:30:07 -0800 (PST)
vmchange -M master -h volhost -exp 0 -m mediaid

will change it to NEVER expire.

david

Quoting mike.marcell AT cntcorp DOT com:

> 
> Lee,
> 
> Sorry to disagree with you, or for not being more 
clear initially, but the
> physcial media (tape) expiration date is exactly what 
I'm referring to.
> 
> We have tapes that are sent offsite each week. They 
have a 1 month (image)
> retention, which is fine and not an issue here.  What 
happened is that
> whenever these tapes were initialized, someone marked 
the physical media
> (tape) expiration date to expire on 12/8/2000 or 
close to it.  So in a
> nutshell, they ran the backups, and it said "Hey, I 
don't have any tapes to
> use, because the ones that I have are all 'expired".  
The batch of tapes
> can come back anywhere from 1 to 2 months after being 
sent out. They've
> only been used about 9 times, and are no where near 
the point that they
> (physical media) should be considered unusable.
> 
> So what I was trying to do, is to mark the physical 
expiration date to
> "Never", as that is what most of the tapes that we 
have (2000+) are set to.
> There are a few hundred tapes in this batch that I'm 
referring to, and I'd
> prefer to do this via the command line instead of the 
gui (mediaMgr ->Media
> ID -> change ->Expire=Never)
> 
> I realize that I could pick a date far into the 
future, that would probably
> not be an issue, but since "Never" is valid option 
from within the GUI, I'd
> prefer to do the right thing, and mark them as the 
rest of the tapes are,
> rather than trying to fool netbackup.  I read the man 
pages on vmchange and
> seen nothing on the Never option. I'll try digging 
through the Media
> Manager book as well.
> 
> Sorry for not clarifying this in my first note.
> 
> Thanks,
> 
> -Mike
> 
> 
> 
> Mike,
> 
> I'm sorry to say you are not doing the right thing at 
all.
> You setting the date when the physical media (tape) is
> considered expired and therefore no longer usable.
> What I believe you are asking for is change 
expiration date of the
> images on those tapes.
> 
> For this you would use the "bpexpdate"
> command.  Also note that once images on a tape have 
expired
> you cannot extend them since the corresponding data 
in the
> NB catalog has already been removed.  You will need 
to do an
> "import" of these tapes.  Look at the man page for 
bpexpdate
> or try running "bpexpdate -help" or look in the admin 
guide
> on page 329, 445 (NB 3.2)  As far as setting the 
expiration
> date to NEVER, this is done by simply using a date 
far out
> in the future.  When you use the "infinite" retention 
level
> in NB it sets the expiration date for those images to
> 01/18/2038-22:14:07 which is the larges possible 
unixt-time
> number (or close to it)  Hope this helps
> 
> 
> 
> mike.marcell AT cntcorp DOT com wrote:
> >
> > We have found a small truckload of offsite tapes 
that have expiration
> dates
> > that are approaching or past. Most of these tapes 
aren't old at all, and
> > have very few mounts on them.
> >
> > Anyone know how to set the expiration date to null, 
or never on a tape
> from
> > the command line?
> >
> > I'm able to change the date, but I can't find out 
how to set it to
> "never"
> > or "---"
> >
> > Here's what I'm doing:    vmchange -exp 12/31/00 -m 
000211
> >
> > This works fine to change the date to 12/31/00. I 
could change it to a
> date
> > far, far out, but I'd rather set it to never like 
the others in it's
> pool.
> > I can do it from the gui, but I'd rather script 
this and do it in mass if
> > possible.
> >
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=
> >   Mike Marcell                                     
CNT Corp (The Arizona
> > Republic)
> >   mike.marcell AT cntcorp DOT com        Unix Systems 
Administrator
> >   Phone:  (602)  444-4958                 Fax: 
(602)  444-8010
> >   Pager:   (602)  519-2270                 Cell: 
(602) 538-5265
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=
> >
> > _______________________________________________
> > Veritas-bu maillist  -  Veritas-
bu AT mailman.eng.auburn DOT edu
> > 
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-
bu
> 
> --
> 
> --Lee
> 
> Client Site: EATON Corp. Cleveland OH (440) 954-5626
> ----------------------_-----------------------_-------
-------------------
>  Lee S. Kolinsky     |_| C o l l e c t i v e |_|   
kolinsky AT colltech DOT com
>  Pager: 800/946-4646 |___   Technologies    ___|  
http://www.colltech.com
>  Pin #: 148-3408         O                 O     "The 
Power Of Many Minds"
> ------------------------------------------------------
-------------------
>          What the large print giveth, the small print 
taketh away.
> 
> 
> 
> 
> _______________________________________________
> Veritas-bu maillist  -  Veritas-
bu AT mailman.eng.auburn DOT edu
> 
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-
bu
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David A. Chapa
Consulting Manager
DataStaff, Inc.
847 413 1144



<Prev in Thread] Current Thread [Next in Thread>