On 12/01/10 22:26, christr wrote:
> I've been wanting to script daily reports on only some specific clients.
> They are all members of different savegroups. I've been doing some Google
> searches, but none of them have quite been giving me what I'm looking for.
>
> So far I found this tip, which gets me close to what I'm looking for, but I
> want something more specific:
>
> nsradmin -i query.txt -s networkerserver > log.txt
>
> Replace "networkerserver" with your NetWorker hostname.
>
> query.txt should look something like (empty lines needed!):
>
> 8<---------------------
>
> option hidden: on
>
> show completion; status; work list;
>
> print type: nsr group; name: networkergroup
>
>
> ----------------------
>
>
> What is shown above works great, but I don't want information for all of
> clients in a savegroup. I only want the information for specific clients.
> Does anyone have any suggestions? I can't seem to find a way to do it, but I
> suspect there must be a way. Basically, I want to save myself time each day
> by not having to dig through various savegroup completion emails only to
> generate a specific report.
>
> I tried doing something like "print type: nsr client; name: [client name]",
> but that didn't work.
You can't split the completion field down using nsradmin. You would need
to post-process the output using your favourite scripting language.
The only other way I can think of would be to fill in the owner
notification field for the clients you are interested in. This will send
you information when the group/client completes, rather than you
pro-actively querying it, so it might not be exactly what you are
looking for.
I suppose another approach would be to split the clients up into groups
such that the clients you are interested in are in certain groups.
Finally you could query the clients using mminfo, but this only shows
successful save sets in the media database, which might not help if you
are trying to detect failures.
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
|