Networker

Re: [Networker] Savetime < 1 day returns 3 days of tapes?

2007-11-02 14:18:02
Subject: Re: [Networker] Savetime < 1 day returns 3 days of tapes?
From: MIchael Leone <Michael.Leone AT PHA.PHILA DOT GOV>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Fri, 2 Nov 2007 14:07:53 -0400
EMC NetWorker discussion <NETWORKER AT LISTSERV.TEMPLE DOT EDU> wrote on 
11/02/2007 12:32:00 PM:

> On Fri, Nov 02, 2007 at 12:10:07PM -0400, MIchael Leone wrote:
> > I have a script that has the following as a query:
> > 
> > mminfo -av -q "near,savetime<1 day" -r "pool,volume,volaccess(22)"
> > 
> > I thought that this should show me only tapes saved (in this case, 
> > created/accessed, since these were new blank tapes) in the last day 
(24 
> > hours). But the results are more than I expect:
> > 
> >  pool                            volume                     vol access
> > 642nBroad      642nBroad.Full.001 10/31/2007 10:34:41 PM
> > 642nBroad      642nBroad.Full.002 11/1/2007 10:29:19 PM
> > 642nBroad      642nBroad.Full.003 11/2/2007 10:02:35 AM
> > 
> > So how come I'm seeing "full.001" above, it it hasn't been accessed in 

> > more than 24 hours? Isn't the savetime the same as the access time (in 

> > this case)? Or am I completely backwards?
> 
> "savetime" is an absolute number, not a relation from today.  Older
> times are smaller than later times.

Oh.

> 2006 < today. 
> 
> "1 day" is interpreted as "1 day from now".  So "savetime < 1 day" will
> match all dates that are less than (earlier than) tomorrow.

I was thinking of it from one direction, and the reality is coming from 
the other direction. To me, "< 1 day" meant the time the set was saved was 
less than 1 calendar day ago. Just a different world view, I guess.

> If you want match dates older than yesterday that would be:
> 
> "savetime > 1 day ago"

That should do it, thanks.

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

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