Networker

[Networker] Confused about mminfo query

2008-02-07 13:31:16
Subject: [Networker] Confused about mminfo query
From: MIchael Leone <Michael.Leone AT PHA.PHILA DOT GOV>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 7 Feb 2008 13:28:35 -0500
So I have this storage node, and we run a script every day, to delete 
savesets that have already been cloned to tape. We write to disk 
(adv_file), and then clone from there. While we prefer to keep 2 days 
worth of backups on the disk, I have one storage node that doesn't have 
enuough disk space, so on this node, I have to clear out the disk space, 
after it's been cloned to tape. So I use:

SET machine=machine
SET tapevol=NWServer.023.RO
mminfo -r "ssid,cloneid,savetime" -q 
"client=%machine%,volume=%tapevol%,copies>1"

And I get back:

396861745   1202168111 2/4/2008
4104799284  1202340915 2/6/2008
4088022108  1202340955 2/6/2008

(side question - I want to see the date and time - in 24 hr format - that 
the save set was created. What should I use, instead of "savetime", to 
show that?)

Main question: when I run:

mminfo -r "ssid,cloneid,savetime" -q "client=%machine%,volume=%tapevol%"

I get the same results. How is that possible? How can a query that asks 
for everything, and a query that asks for just the subset that has 
multiple copies, show the same result?   Or am I totally misunderstanding 
what this script is supposed to be doing? (it was created by the EMC 
consultant who originally installed NetWorker here, about a year ago)

We use the results to do:
FOR /F "tokens=1-2" %%a in (%nwpath%\tmp\%machine%_ss_list.txt) do nsrmm 
-y -d -S %%a/%%b

so that we clear out the adv_file device on the storage node. 

-- 
Michael Leone
Network Administrator, ISM
Philadelphia Housing Authority
2500 Jackson St
Philadelphia, PA 19145
Tel:  215-684-4180
Cell: 215-252-0143
<mailto:michael.leone AT pha.phila DOT gov>

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