DHCP Text Options

I would like to set the following value through DHCP

P1="A";P2="B";P3="C";MG="D"

The problem I have is the double quotes. In my dhcpd.conf i have the following line but when i change the single quotes to doubles I get an error. How can these be represented in the config file?

option HPDM-Group code 203 = text;
option HPDM-Group "P1='15VP';P2='';P3='AWADS1';MG='15VP'";

LVL 5
allan_jardineAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
woolmilkporcConnect With a Mentor Commented:
Escaping the quotes should work:

option HPDM-Group "P1=\"15VP\";P2=\"\'';P3=\"AWADS1\";MG=\"15VP\"";

wmp
0
 
allan_jardineAuthor Commented:
That looks like it will work, thanks. I will let you know how i get on
0
All Courses

From novice to tech pro — start learning today.