Veritas-bu

[Veritas-bu] Scripting ejection of tapes based on search criteria.

2003-07-11 09:09:22
Subject: [Veritas-bu] Scripting ejection of tapes based on search criteria.
From: scott.kendall AT abbott DOT com (scott.kendall AT abbott DOT com)
Date: Fri, 11 Jul 2003 08:09:22 -0500
This is a multipart message in MIME format.
--=_alternative 00484A6986256D60_=
Content-Type: text/plain; charset="us-ascii"

When using the -l option, the date you get is in "seconds past the epoch", 
or the number of seconds since Jan 1, 1970.

This makes it easy for things like what you're doing.  You just take the 
current time in seconds, add 24 hours worth of seconds to it and then do 
the comparison to see if it will expire before of after that number.

There may be a way to print the time this way using a NetBackup command 
(may be undocumented), but can't think of anything.  You can also use Perl 
to print the time

perl -e 'print time'

If you want to take a date like this and convert it to a normal date, the 
NBU command for that is bpdbm -ctime <seconds>


- Scott





"Timothy Arnold" <timothy.arnold AT becta.org DOT uk>
Sent by: veritas-bu-admin AT mailman.eng.auburn DOT edu
07/11/2003 04:26 AM

 
        To:     <veritas-bu AT mailman.eng.auburn DOT edu>
        cc: 
        Subject:        [Veritas-bu] Scripting ejection of tapes based on 
search criteria.


Morning all!

I have a question about 'bpmedialist -mlist -l'. I would like to search 
for tapes that are Active/Full/Frozen or Suspended that will not expire 
within the next 24 hours. I know that bpmedialist -mlist -l contains the 
information for when the tape was last written to and when it will expire 
but have no idea how to decode the timestamp information.

Any ideas?

Thanks,
Timothy.

--
Timothy Arnold, Server & Network Infrastructure Support Officer, Internet 
Services,
Becta, Coventry, CV4 7JJ, UK                      Voice: +44 24 7684 7169
email: timothy.arnold AT becta.org DOT uk                Fax:   +44 24 7641 
1418 

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************


_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu



--=_alternative 00484A6986256D60_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="Arial">When using the -l option, the date you get is in 
&quot;seconds past the epoch&quot;, or the number of seconds since Jan 1, 
1970.</font>
<br>
<br><font size=2 face="Arial">This makes it easy for things like what you're 
doing. &nbsp;You just take the current time in seconds, add 24 hours worth of 
seconds to it and then do the comparison to see if it will expire before of 
after that number.</font>
<br>
<br><font size=2 face="Arial">There may be a way to print the time this way 
using a NetBackup command (may be undocumented), but can't think of anything. 
&nbsp;You can also use Perl to print the time</font>
<br>
<br><font size=2 face="Arial">perl -e 'print time'</font>
<br>
<br><font size=2 face="Arial">If you want to take a date like this and convert 
it to a normal date, the NBU command for that is bpdbm -ctime 
&lt;seconds&gt;</font>
<br>
<br>
<br><font size=2 face="Arial">- Scott</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Timothy Arnold&quot; 
&lt;timothy.arnold AT becta.org DOT uk&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: veritas-bu-admin AT 
mailman.eng.auburn DOT edu</font>
<p><font size=1 face="sans-serif">07/11/2003 04:26 AM</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; 
&nbsp; &nbsp; &nbsp;&lt;veritas-bu AT mailman.eng.auburn DOT edu&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; 
&nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; 
&nbsp; &nbsp; &nbsp;[Veritas-bu] Scripting ejection of tapes based on search 
criteria.</font></table>
<br>
<br>
<br><font size=2 face="Courier New">Morning all!<br>
<br>
I have a question about 'bpmedialist -mlist -l'. I would like to search for 
tapes that are Active/Full/Frozen or Suspended that will not expire within the 
next 24 hours. I know that bpmedialist -mlist -l contains the information for 
when the tape was last written to and when it will expire but have no idea how 
to decode the timestamp information.<br>
<br>
Any ideas?<br>
<br>
Thanks,<br>
Timothy.<br>
<br>
--<br>
Timothy Arnold, Server &amp; Network Infrastructure Support Officer, Internet 
Services,<br>
Becta, Coventry, CV4 7JJ, UK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp;Voice: +44 24 7684 7169<br>
email: timothy.arnold AT becta.org DOT uk &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp;Fax: &nbsp; +44 24 7641 1418 <br>
<br>
**********************************************************************<br>
This email and any files transmitted with it are confidential and<br>
intended solely for the use of the individual or entity to whom they<br>
are addressed. If you have received this email in error please notify<br>
the system manager.<br>
This footnote also confirms that this email message has been swept by<br>
MIMEsweeper for the presence of computer viruses.<br>
www.mimesweeper.com<br>
**********************************************************************<br>
<br>
<br>
_______________________________________________<br>
Veritas-bu maillist &nbsp;- &nbsp;Veritas-bu AT mailman.eng.auburn DOT edu<br>
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu<br>
</font>
<br>
<br>
--=_alternative 00484A6986256D60_=--

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