Networker

Re: [Networker] Help with Query.

2008-02-14 17:12:36
Subject: Re: [Networker] Help with Query.
From: Tim Mooney <Tim.Mooney AT NDSU DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 14 Feb 2008 16:05:14 -0600
In regard to: Re: [Networker] Help with Query., Cox, Shawn said (at 2:47pm...:

mminfo -q "volume=LANDISK.001,totalsize>100MB" -r ssid,totalsize

even formatting it as you have I get back *all* ssids that are on the
given volume.  If I change only the > to a < I get a smaller subset of
ssid's but they are all under 8KB in size(contrary to my original post).
This is very strange.

I'm not at all familiar with the Windows quoting rules, but what happens
if you use single quotes instead?  Does that make a difference?

On UNIX & Linux, I typically always quote what follows the -q or the -r
in mminfo with single quotes, even when they're not needed.  That's
because I generally write my queries and reports iteratively, and what
might start out like

        mminfo -q pool=foo -r volid,volume

might get pulled back from my command line history and changed to

        mminfo -q pool=foo,!full -r volid,volume,client(63)

or

        mminfo -q pool=foo,savetime>01/01/2008 -r volid,volume,savetime(22)

and in those cases I now have a character the shell is going to treat
specially, and if I run that I'm going to get a surprise.  It's easiest
for me to avoid the surprises and make quick edits via command line
history if I just always resort to

        mminfo -q 'pool=foo' -r 'volid,volume'

even when I don't need it, so I don't have to remember to add the quotes
when I do.

It's also rare for me to need to do variable interpolation when running
queries on the command line, so I typically don't use double quotes,
instead using single quotes.  Those habits have worked well for me over
the years, but they certainly wouldn't apply to everyone or to other
platforms where the quoting rules may be different.

Tim
--
Tim Mooney                                        Tim.Mooney AT ndsu DOT edu
Information Technology Services                   (701) 231-1076 (Voice)
Room 242-J6, IACC Building                        (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

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>