How to configure DHCP for CX500


What you will need is the DHCPUtil.exe and the DHCPConfigScript.bat (both found at C:\Program Files\Common Files\Microsoft Lync Server 2010 or C:\Program Files\Common Files\Microsoft Lync Server 2013)

I would recommend copying these two files to a PC that is being serviced by the DHCP Server that needs to be configured.

From the cmd run (be sure to use an account that is permitted to modify DHCP)


DHCPUtil -SipServer FEPool01.lynclab.co.nz -WebServer FEPool01.lynclab.co.nz
#Collects the info required to populate Scope Options 43 and 120

DHCPUtil -SipServer FEPool01.lynclab.co.nz -WebServer FEPool01.lynclab.co.nz -RunConfigScript
#Configures the Scope Options using NETSH

DHCPUtil -emulateclient
#Testing – Please remember to wait a few minutes to allow for these options to “kick in”

NOTE
I have seen this script run too fast for the server to keep up, options running too fast consecutively.
I this case I have either run the .bat file manually or added pauses by adding 30 seconds in between the command lines. My edited version of the DHCPConfigScript.bat..

netsh dhcp server delete optionvalue 120
netsh dhcp server delete optiondef 120
sleep 20
netsh dhcp server delete class MSUCClient

if /i %1 EQU Cleanup goto :EOF
sleep 20
netsh dhcp server add optiondef 120 UCSipServer Binary 0 comment=”Sip Server Fqdn”
sleep 10
netsh dhcp server set optionvalue 120 Binary %3
sleep 20
netsh dhcp server add class MSUCClient “UC Vendor Class Id” “%2” 1
sleep 20
netsh dhcp server add optiondef 1 UCIdentifier Binary 0 Vendor=MSUCClient comment=”UC Identifier”
sleep 10
netsh dhcp server set optionvalue 1 Binary vendor=MSUCClient %4
sleep 10
netsh dhcp server add optiondef 2 URLScheme Binary 0 Vendor=MSUCClient comment=”URL Scheme”
sleep 10
netsh dhcp server set optionvalue 2 Binary vendor=MSUCClient %5
sleep 10
netsh dhcp server add optiondef 3 WebServerFqdn Binary 0 Vendor=MSUCClient comment=”Web Server Fqdn”
sleep 10
netsh dhcp server set optionvalue 3 Binary vendor=MSUCClient %6
sleep 10
if not %7 == NULL (netsh dhcp server add optiondef 4 WebServerPort Binary 0 Vendor=MSUCClient comment=”Web Server Port”)
if not %7 == NULL (netsh dhcp server set optionvalue 4 Binary vendor=MSUCClient %7)
sleep 10
netsh dhcp server add optiondef 5 CertProvRelPath Binary 0 Vendor=MSUCClient comment=”Cert Prov Relative Path”
sleep 10
netsh dhcp server set optionvalue 5 Binary vendor=MSUCClient %8
timeout 120 #allows review of success and failure, touch any key to complete or wait for timeout

Advertisements

About Paul B

My name is Paul Bloem and I am employed at Lexel Systems in New Zealand as a Principal Consultant for Unified Communications. I have been working on enterprise voice solutions for over 20 years. My first 10 years were spent working for a Telco in South Africa (Telcom SA). This is where all the groundwork happened as I was exposed to just about every aspect of telecommunication you could imagine. I develop an interest in PBX technologies and eventually became the go-to guy. Next, I had a 10 year run at Siemens South Africa, most of my time there was as a Technical Trainer. During this time VoIP hit the world stage, I had the privilege of introducing VoIP both as H.323 and later SIP across the Siemens HiPath 4000 solution stack. In 2008 I immigrated to New Zealand with my newly attained MCSE, I was ready to go where no PBX Techie had gone before. I was employed to explore OCS 2007 and that was pretty much the beginning of the end for me. I have been working on OCS and Lync ever since. My current role focuses exclusively on Lync and associated technologies.. That includes pre-sales, consulting, architecture and design, training and support. I even get to play in the development space from time to time - focus on play ;-) I was nominated as a Microsoft VTSP for Lync early in 2013 and also awarded Microsoft's MVP award for Lync in 2014.
This entry was posted in CX500, DHCP, DHCPUtil, Option 120, Option 43, Scope Options. Bookmark the permalink.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s