Networker

Re: [Networker] Clients in a SaveGroup

2004-12-06 16:13:50
Subject: Re: [Networker] Clients in a SaveGroup
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 6 Dec 2004 13:12:57 -0800
> To simply find the present members in a group ask networker:
>
> nsradmin -i - <<EOF
> . type: NSR client
> . group: "$1"
> show name:
> print
> EOF

. (or print) always perform a complete query.  So you're doing two
separate queries here and throwing away the work done in the first one.
Replace that first query with "type: nsr device" and you'll see that it
is ignored in the output.

I'd probably write it something like this...

 show name
 print type:nsr client; group: "$1"

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

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>