Networker

Re: [Networker] nsradmin foo needed

2005-02-01 16:37:50
Subject: Re: [Networker] nsradmin foo needed
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 1 Feb 2005 13:37:16 -0800
> I am running into an issue where I need to return a client's attributes
> but another client attributes are also returned.  For example, if I want
> the attributes for 'database.example.com' and there is also a
> 'sampledatabase.example.com' client configured, nsradmin returns both
> entries.  At this point in the library, I only know the client's name,
> and possibly other attributes.  Obviously if I do know other attributes,
> then adding them into the command will narrow down the playing field.
> 
> Is there any way to turn on strict name matching for those cases when I
> only know the client name? 

>From the nsradmin man page:

          3) Values in a query may be in the form of ed(1)  style
          regular  expressions.   A  pattern  match  is attempted
          against all resources that contain the specified attri-
          bute.

so...

print name:"^database.example.com$"

should do the trick.


-- 
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 listserv.temple DOT edu or visit the list's Web site at
http://listserv.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>