Try this on a UNIX server:
print ". type: nsr client\nshow name; comment\nprint\nquit" | nsradmin
-i - > outputfile.txt
Rgds, Ram.
-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of Andrew Dietz
Sent: 03 November 2006 15:42
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] How to query for client's comment field
I am working on a script and need to be able to query Networker from the
command line for a list of clients with their respective comment fields
and dump it to a file, one client/comment per line. Looks like nsradmin
is the only tool to extract that sort of information, but I can't seem
to get it to output what I need. Any one know how to do this?
Thanks in advance,
Andrew
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 wit 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
This email has been sent from KPMG LLP, a UK limited liability partnership, or
from one of the companies within its control (which include KPMG Audit Plc ,
KPMG United Kingdom Plc and KPMG UK Limited). The information in this email is
confidential and may be legally privileged. It is intended solely for the
addressee. Access to this email by anyone else is unauthorised. If you are
not the intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be taken in reliance on it, is prohibited and may be
unlawful. When addressed to our clients any opinions or advice contained in
this email are subject to the terms and conditions expressed in the governing
KPMG client engagement letter.
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
wit 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
|