Send dhcp-users mailing list submissions to
        dhcp-users@lists.isc.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        dhcp-users-requ...@lists.isc.org

You can reach the person managing the list at
        dhcp-users-ow...@lists.isc.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. Re: Failover Peer Issue with Polycom SoundStation IP 6000
      Phone (willieb)
   2. Re: Failover Peer Issue with Polycom SoundStation IP 6000
      Phone (glenn.satch...@uniq.com.au)


----------------------------------------------------------------------

Message: 1
Date: Wed, 18 Nov 2020 12:45:08 -0600 (CST)
From: willieb <will.bash...@btctelcom.net>
To: dhcp-users@lists.isc.org
Subject: Re: Failover Peer Issue with Polycom SoundStation IP 6000
        Phone
Message-ID: <1605725108811-0.p...@n4.nabble.com>
Content-Type: text/plain; charset=us-ascii

>> substring(hardware, 1, 4 = 1:aa:bb:cc)

I'm not sure who owned the lease, but I do believe the class solution will
be a nice workaround. I have 2 questions at the moment:

1.) Regarding the substring statement above, what is the difference in using
"1, 4" or "1, 3"?

2.) The first 6 digits of the mac address (OUI) is the same for all of our
Polycom phones, but it appears the SoundStations we have all use 34 as the
next 2 mac digits. So can we specify 8 digits instead of 6 digits for
matching?

Thanks.



--
Sent from: http://isc-dhcp-users.2343191.n4.nabble.com/


------------------------------

Message: 2
Date: Thu, 19 Nov 2020 08:30:46 +1100
From: glenn.satch...@uniq.com.au
To: Users of ISC DHCP <dhcp-users@lists.isc.org>
Subject: Re: Failover Peer Issue with Polycom SoundStation IP 6000
        Phone
Message-ID: <1a54f499df35d63f280d338bb2287...@uniq.com.au>
Content-Type: text/plain; charset=US-ASCII; format=flowed

So from the dhcp-eval man page the arguments to substring() are

        substring (data-expr, offset, length)

Note that the parameter hardware() is one byte for the network type (1 
for ethernet, but others include token ring, etc) prefixed to the MAC 
address. So for a device that has the mac address aa:bb:cc:dd:ee:ff, 
hardware() will return 01:aa:bb:cc:dd:ee:ff

The hardware string represents 7 bytes of data with each byte (or octet) 
being represented by two hexadecimal characters separated by a colon.

So for Q1, the last parameter is the length of the string to match.

And for Q2 matching on the first 4 bytes of the mac seems like the way 
to go, eg: if hardware() is as above then we want to match 1:aa:bb:cc:34 
which is a length of 5.

substring(hardware, 1, 5 = 1:aa:bb:cc:34)

or to ignore the network type, perhaps start at the second byte

substring(hardware, 2, 4 = aa:bb:cc:34)

Hope this helps.

regards,
Glenn

On 2020-11-19 05:45, willieb wrote:
>>> substring(hardware, 1, 4 = 1:aa:bb:cc)
> 
> I'm not sure who owned the lease, but I do believe the class solution 
> will
> be a nice workaround. I have 2 questions at the moment:
> 
> 1.) Regarding the substring statement above, what is the difference in 
> using
> "1, 4" or "1, 3"?
> 
> 2.) The first 6 digits of the mac address (OUI) is the same for all of 
> our
> Polycom phones, but it appears the SoundStations we have all use 34 as 
> the
> next 2 mac digits. So can we specify 8 digits instead of 6 digits for
> matching?
> 
> Thanks.
> 
> 
> 
> --
> Sent from: http://isc-dhcp-users.2343191.n4.nabble.com/
> _______________________________________________
> ISC funds the development of this software with paid support
> subscriptions. Contact us at https://www.isc.org/contact/ for more
> information.
> 
> dhcp-users mailing list
> dhcp-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users


------------------------------

Subject: Digest Footer

_______________________________________________
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users


------------------------------

End of dhcp-users Digest, Vol 145, Issue 16
*******************************************

Reply via email to