Re: [Networker] mminfo query
2010-05-05 09:24:03
> joey.admin AT gmail DOT com
>
> But what if:
>
> If I want to make mminfo query for all clients with specific DNS suffix
in
> the client name?
>
> Does mminfo not accept wildcards? or is it perhaps possible to let
mminfo
> make a lookup in a textfile of clientnames?
Not as such, as I understand it. But on a *nix system, you can do
something like this:
while read host
do
mminfo -ar '<your reportspec here>' -q "client=$host, <remainder
of your query here>", etc.
done < file_containing_hostnames
Note the double quotes around the query string - They're necessary to
allow your $host variable to evaluate and expand. Be aware of shell
interaction, though. For example, using -q "!ssrecycle" on a one line
query under bash works fine, but it will barf in a loop, so you'll need to
use -q "ssrecycle=false". There are almost certainly others to be aware
of.
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
|
|
|