Re: [Networker] Query for tapes created on a certain date
2008-04-02 13:35:16
On Wed, Apr 02, 2008 at 12:48:45PM -0400, MIchael Leone wrote:
> And it does! Thanks. But why doesn't this work?
>
> mminfo -avot -q "client=admnman002,savetime=03/31/2008" -r
> "client,volume,name,savetime(22)"
> 6095:mminfo: no matches found for the query
Because 03/31/2008 is equivalent to "03/31/2008 00:00:00".
> admnman002 897337 C:\ 3/31/2008
> 6:35:14 PM 2700175139 vF
> Why can I not query an exact date as savetime? It makes putting this in a
> script a bit more challenging, since I'd have to specify the date I really
> want to see, and then construct the query to be 1 day before and 1 day
> after.
Or "after the date I want" and "before the next day". But yes, I think
you'll need to construct them.
> I'd rather not have to do date arithmetic in my script (Windows
> shell scripts aren't exactly brainy ...).
I run perl on my windows hosts for any advanced scripting. Other
scripting languages are available. While sticking with the installed
tools is nice, the convenience of using something other than batch
syntax is too high for me.
--
Darren Dunham ddunham AT taos DOT com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
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
|
|
|