"unsetting" global options for a host

Christian Kratzer ck-lists at cksoft.de
Tue Jan 31 07:53:52 UTC 2012


Hi,

On Mon, 30 Jan 2012, Rick Coloccia wrote:

> I like the classes idea.  I went through the docs and man pages.  I'm trying 
> to work out how I'd use classes to do this but I am hitting a stumbling 
> block.  I really don't know anything unique about 99.9% of the hosts I want 
> to give everything to - I only need to not give certain options to a small 
> lists of hosts.  I can make a class for them, I know who they are, but can I 
> make a class that matches "everything but 00:11:22:43:44:55 and 
> 66:77:88:99:00:aa" so that I can say "class almost-everyone" gets these 
> things and "class only-a-few" gets those?
>
> Put another way, is there wildcard class matching implemented in such a way 
> that a more specific match override a less specific/wildcard based match?

why don't you just put the hosts in different groups depending on the
options they need.  Sounds like you know the specific hosts you need
to exluded so why not just list them in a group.

Classes are good for matching a large number of hosts via specific
attributes.

Greetings
Christian


>
> Thanks again, everyone.
>
> -Rick
>
> On 1/30/2012 12:54 PM, perl-list wrote:
>> If you setup two classes.  One for everyone else and one for the printer 
>> and other devices that you need special options for, you can do this.  I 
>> bet you can't unset an option, however.  There should be a way to match 
>> everything for one class.  Matching for the other class (the one with the 
>> printer) could be done by mac address.  Then you could set options as 
>> needed in each class.  That way the options are never global.
>> 
>> 
>> ------------------------------------------------------------------------
>>
>>     *From: *"Rick Coloccia" <coloccia at geneseo.edu>
>>     *To: *dhcp-users at lists.isc.org
>>     *Sent: *Monday, January 30, 2012 12:16:10 PM
>>     *Subject: *"unsetting" global options for a host
>>
>>     Hello,
>>
>>     The message below went out to the list in April 2010.  I need to
>>     do the
>>     exact same thing, albeit for a slightly different reason.  I need
>>     to set
>>     a global "filename" option for netbooting most hosts, but we have
>>     some
>>     hosts that need to netboot but not receive a filename option at
>>     all from
>>     the dhcp server.
>>
>>     As far as I can see by searching the list archives, no one responded.
>>     Is this not possible?   Thoughts?  Thanks, folks!!
>>
>>     I am running Internet Systems Consortium DHCP Server V3.1.2b1 on
>>     CentOS
>>     release 5.7 running this kernel: 2.6.18-238.12.1.el5PAE #1 SMP.
>>
>>     -Rick
>> 
>>
>>     Is it possible to locally (at host declaration level) "unset" or
>>     "undefine" a general (top-level) option?
>>
>>     We've got a broken printer which can't handle the provided
>>     netbios-scope information properly.
>>
>>     So I'd like to override our netbios globally-set options: not by
>>     setting a different value, but by
>>     deleting or unsetting the options. So that this host won't get
>>     that options, as if they had never
>>     been set.
>>
>>     We are running version 3.1.1-7.12 on SLES 11
>>
>>     Thanks in advance and best regards,
>>
>>     Luis Hernandez
>>
>>     --     Rick Coloccia, Jr.
>>     Network Manager
>>     State University of NY College at Geneseo
>>     1 College Circle, 119 South Hall
>>     Geneseo, NY 14454
>>     V: 585-245-5577
>>     F: 585-245-5579
>>
>>     _______________________________________________
>>     dhcp-users mailing list
>>     dhcp-users at lists.isc.org
>>     https://lists.isc.org/mailman/listinfo/dhcp-users
>> 
>> 
>> 
>> 
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users at lists.isc.org
>> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>

-- 
Christian Kratzer                      CK Software GmbH
Email:   ck at cksoft.de                  Wildberger Weg 24/2
Phone:   +49 7032 893 997 - 0          D-71126 Gaeufelden
Fax:     +49 7032 893 997 - 9          HRB 245288, Amtsgericht Stuttgart
Web:     http://www.cksoft.de/         Geschaeftsfuehrer: Christian Kratzer



More information about the dhcp-users mailing list