• Home
  • My Tools
  • Visio Stencils
  • Online Tools
  • PS Scripts
  • PS One Liners
  • Downloads
  • Product Review
  • About

Smarter Together

~ by I.M.H.O.

Smarter Together

Category Archives: DHCP

How to configure DHCP for CX500

03 Tuesday Apr 2012

Posted by Paul Bloem in CX500, DHCP, DHCPUtil, Option 120, Option 43, Quick Reference Guide, Scope Options

≈ Leave a comment

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

Advertisement

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Pocket (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
  • Click to print (Opens in new window)

Like this:

Like Loading...
Newer posts →

IMHO YouTube Channel

Follow Smarter Together on WordPress.com

Enter your email address to subscribe and receive notifications of new posts.

Join 674 other subscribers

Show your appreciation by donating

Archives

Category

ABS ABServer ADContacts Address Book AddressBook AddressBook Service Communicator contacts CX500 Devices DHCP DNS Edge Server Error Codes event id Exchange UM 2010 GAL Install Guide Lync 2013 Tools Lync Edge Lync Tools Microsoft Teams Monitoring Polycom Powershell Scripts Product Review QOS Quick Reference Guide Reskit RGS RTC Database SIP SIP Options Skype for Business Skype for Business Monitoring Skype for Business Tools SQL Teams TMG Tool Tools Troubleshoot Edge UC Sorted Tools UM Uncategorized Unified Messaging visio Visio Stencil voicemail

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • Smarter Together
    • Join 63 other followers
    • Already have a WordPress.com account? Log in now.
    • Smarter Together
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
%d bloggers like this: