Home > Uncategorized > DHCP Option 002 (Time-offset) for #Lync and #Polycom Phones

DHCP Option 002 (Time-offset) for #Lync and #Polycom Phones

November 1, 2013 Leave a comment Go to comments

*** Update 11/27/2014 – It was asked in the comments if this applies to the Lync Phone Edition devices (LPE). LPE is created/maintained by Microsoft but various companies manufacture the devices, including Polycom. The Polycom LPE’s are the CX series phones. This article does not apply to the LPE devices. It only applies to the Polycom phones that run Polycom’s own software such as the VVX line of phones.

Lately, I have found myself having to do the math for the time offset for DHCP Option 002. I decided it was worth just documenting them so I could look them up quickly and what better way to come up with all of them than with Powershell?

EDIT (I realized that I shouldn’t have done 1-24 for the timezones, you actually have to account for time zones after and before (East and West) of GMT):

$timezone = @(1..24)
foreach ($i in $timezone) { $a = (3600 * -$i); $b = ("{0:X0}" -f $a); write ("0x" + $b)}

$timezone = @(1..12)
$results = @()
write “Timezones East of GMT:”
foreach ($i in $timezone) {
# Get TimeZones East of GMT
$a = (3600 * $i)
$b = (“{0:X0}” -f $a)
write (“Timezone ” + $i + ” – 0x” + $b)
write “Timezones West of GMT:”
foreach ($i in $timezone) {
# Get TimeZones East of GMT
$a = (3600 * -$i)
$b = (“{0:X0}” -f $a)
write (“Timezone -” + $i + ” – 0x” + $b)

This will give you:

Timezones East of GMT:
Timezone 1 – 0xE10
Timezone 2 – 0x1C20
Timezone 3 – 0x2A30
Timezone 4 – 0x3840
Timezone 5 – 0x4650
Timezone 6 – 0x5460
Timezone 7 – 0x6270
Timezone 8 – 0x7080
Timezone 9 – 0x7E90
Timezone 10 – 0x8CA0
Timezone 11 – 0x9AB0
Timezone 12 – 0xA8C0
Timezones West of GMT:
Timezone -1 – 0xFFFFF1F0
Timezone -2 – 0xFFFFE3E0
Timezone -3 – 0xFFFFD5D0
Timezone -4 – 0xFFFFC7C0
Timezone -5 – 0xFFFFB9B0
Timezone -6 – 0xFFFFABA0
Timezone -7 – 0xFFFF9D90
Timezone -8 – 0xFFFF8F80
Timezone -9 – 0xFFFF8170
Timezone -10 – 0xFFFF7360
Timezone -11 – 0xFFFF6550
Timezone -12 – 0xFFFF5740

Pretty simple and now I can just look up what I need versus doing the math each time.

Categories: Uncategorized Tags: , ,
  1. soder
    October 28, 2014 at 9:44 am

    Do Lync phones (the LPE class of devices, not the Polycom BBX class) actually support this DHCP option at all?

    • October 28, 2014 at 9:56 am

      Unfortunately, the LPE devices don’t support this. It would be awesome if they did as it would pretty much automate the entire delivery of them.

      • soder
        October 30, 2014 at 12:52 pm

        Thanks for the info. I was scratching my head for some minutes to find any reference to such supportability thing for LPE, but didnt find anything of course. So then I would ask you what was the main reason of writing this article then?

      • November 11, 2014 at 12:11 pm

        Mainly because I was doing a lot of VVX deployments at the time. Just reminding myself on what I needed to do.

  2. soder
    November 13, 2014 at 8:50 am

    Ok, what I am trying to highlight is the fact, that the article title is very misleading for the novice Lync juniors, as those timezone settings in your article are consumed only by polycom VVX type of Lync phones, and not by any Microsoft-delivered Aries-class phone devices.

    • soder
      November 19, 2014 at 2:26 pm

      Do you agree / disagree? Seems moderation takes a loong time on this blog :S

      • November 19, 2014 at 8:07 pm

        Sorry, been slammed at work and this took a back seat. I do agree that I can make the title more descriptive. With Lync phone edition, I don’t normally think of who makes it since it is just a Microsoft spec. Thanks for pointing it out!

  3. soder
    November 22, 2014 at 9:18 am

    No worries 🙂

    • soder
      November 26, 2014 at 2:42 am

      But you still didnt put this clarification into the article 😉

      • November 27, 2014 at 1:08 pm

        Sodor, took some time on the holiday to catch up here and posted an update at the top of the article. Hoping to get some more blog time around Christmas/New Years. The next few weeks will be busy.

  4. Raz
  1. November 30, 2017 at 8:36 am
  2. September 6, 2018 at 12:34 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: