Networker

Re: [Networker] Need help on nsradmin !!

2006-05-26 13:22:01
Subject: Re: [Networker] Need help on nsradmin !!
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Fri, 26 May 2006 10:19:35 -0700
> Here is a quick shell script to get you started (hope you are on a unix 
> platform), which looks through the contents of the nsrdb resource files. 
> It finds all the NSR client resources, and prints out the name of the 
> client and the name(s) of the storage nodes.  Modify as needed.
> 
> for f in `find /nsr/res/nsrdb -type f`
> do
>         grep -l "type: NSR client;" $f > /dev/null &&  egrep "^storage 
> nodes:|^name:" $f
> done 

Why would you grab the files directly instead of just asking nsradmin?

show name; storage nodes
print type:NSR client

-- 
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

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