Salt * Wet * Bytes

January 8, 2008

DHCP: Adding a new vendor class for Sun Ray servers

Filed under: AdminScripts, Networking — saltwetfish @ 7:28 am
Tags: , ,

I was asking to add a new vendor class for a set of subnets hosted by Sun Ray servers from the networking team into our MSDHCP servers. It took me a while to figure out as this was the first time I had done this, but I managed to get it up.

If you have a subnet that require setup of vendor specific dhcp options for sun ray server, you can use the following text file and run netsh on your dhcp server. I did not add all the available options for sun ray servers, but only those required by my network team, but I am sure that you are smart enough to figure that out!

Replace with and actual IP address

—- start of text file —–
# =====================================
# Add Classes
# =====================================

Dhcp Server Add Class “Sun Ray DHCP Option” “” 53554e572e4e6577542e53554e57 1 b

# =====================================
# Add Optiondef
# =====================================

Dhcp Server Add Optiondef 23 “NewTVer” STRING 0 vendor=”Sun Ray DHCP Option” comment=”Specifies which firmware version to upgrade to” “”
Dhcp Server Add Optiondef 24 “LogHost” IPADDRESS 0 vendor=”Sun Ray DHCP Option” comment=”Log level for host” 0.0.0.0
Dhcp Server Add Optiondef 25 “LogKern” BYTE 0 vendor=”Sun Ray DHCP Option” comment=”Log level for kernel” 0
Dhcp Server Add Optiondef 26 “LogNet” BYTE 0 vendor=”Sun Ray DHCP Option” comment=”Log level for network” 0
Dhcp Server Add Optiondef 27 “LogUSB” BYTE 0 vendor=”Sun Ray DHCP Option” comment=”Log level for USB” 0
Dhcp Server Add Optiondef 28 “Log Vid” BYTE 0 vendor=”Sun Ray DHCP Option” comment=”Log level for video” 0
Dhcp Server Add Optiondef 29 “LogAppl” BYTE 0 vendor=”Sun Ray DHCP Option” comment=”Log level for application” 0
Dhcp Server Add Optiondef 31 “FWSrvr” IPADDRESS 0 vendor=”Sun Ray DHCP Option” comment=”Firmware server IP address (needed for firmware upgrade)” 0.0.0.0
Dhcp Server Add Optiondef 35 “AltAuth” IPADDRESS 1 vendor=”Sun Ray DHCP Option” comment=”Alternate set of Sun Ray server IP addresses” 0.0.0.0

—- end of text file —–

Blog at WordPress.com.