Networker

Re: [Networker] Need help on nsradmin !!

2006-05-26 12:53:00
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 09:51:27 -0700
> I need help on nsradmin query.
> 
> My question is how to negate the query i.e. I don't want to list certain
> client(s) which have a specific attr.

There's no direct way to ask nsradmin for a negation.  You'll usually
work around this by post-processing the output in a script.

> e.g. Few clients has 3 values for storage nodes attr (server1, server2,
> server3) and few others have only one value (server1), I want to query only
> the clients with one value for the storage nodes say server1.
> 
> Is it possible in nsradmin ? or I have to use some scripting to achive what
> I want.

I'd do it with a script.  Get all the clients using server1, then have
the script toss the clients with multiple entries.

-- 
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