dhcp server

Migneron Richard richard at migneron.com
Thu Apr 19 20:49:39 UTC 2007


Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=ISO-8859-1;
	delsp=yes;
	format=flowed
Hi Margarita,

There is definitely a syntax error, load the XML file in Firefox, it =20
will tell you where the error is (use the File->Open File menu).

Or worse there is something wrong with the mod you did !  Strange !

Firefox is a great syntax checker for XML files !

Cheers,

Richard
_______________________________________________
Richard Migneron
@ : richard at migneron.com
T=E9l. : +33.(0)1.45.45.13.92 - Fbox: +33.(0)9.50.70.23.92
Yahoo Messenger ID: rmigneron
PGP Fingerprint : EFFE 44E3 894A 7051 F86E E532 4880 9534 E1FB DB33
"Noir comme le diable, chaud comme l'enfer,
pur comme un ange, doux comme l'amour",
Charles-Maurice de Talleyrand-P=E9rigord (1754-1838)


On 19 avr. 07, at 22:37, Margarita Parker wrote:

> Hi Richard,
> I edited the dhcp-server.xml and I ran the svccfg import command.  =20
> This
> is the error I got:
> svccfg import /var/svc/manifest/network/dhcp-server.xml
> svccfg: couldn't parse document
> Margarita
>
> Migneron Richard wrote:
>> Content-Transfer-Encoding: quoted-printable
>> Content-Type: text/plain;
>> 	charset=3DISO-8859-1;
>> 	delsp=3Dyes;
>> 	format=3Dflowed
>> Hi Again,
>>
>> Well, it depends !  If you want to run ISC DHCP instead of the =3D20
>> standard Sun DHCP, yes you have to edit the XML file.
>>
>> In that case, you need to adjust :
>>
>> - The full path where the dhcpd  is located (I suppose it will be /=20=

>> =3D20
>> usr/local/sbin/dhcpd  instead of the   .../in.dhcpd)
>> - The full path of the conf file   (file://localhost/usr/local/etc/=20=

>> =3D20
>> dhcpd.conf  instead of the  file://localhost/etc/inet/... [I think])
>>
>> Probably also the comment around line 107 somewhere, where it says =20=

>> =3D20
>> SUN DHCP   for   ISC DHCP !!!
>>
>> Then, svccfg import /var/svc/manifest/network/dhcp-server.xml   =20
>> <-- =3D20
>> that would also be the original, probably best to  cp  it  =20
>> to .orig   =3D20=3D
>>
>> or something before modifying it.  (It might also be called =3D20
>> server.xml under the dhcp directory)
>>
>> Then, svcadm enable svc:/network/dhcp-server   will start it !  =20
>> (or  =3D20
>> svc:/network/dhcp/server   if the file is under the dhcp directory)
>>
>> Keep me posted, tomorrow at work I can verify if needed !   I'm =20
>> doing =3D20=3D
>>
>> all this from memory ...
>>
>> Good luck,
>>
>> Richard
>> _______________________________________________
>> Richard Migneron
>> @ : richard at migneron.com
>> T=3DE9l. : +33.(0)1.45.45.13.92 - Fbox: +33.(0)9.50.70.23.92
>> Yahoo Messenger ID: rmigneron
>> PGP Fingerprint : EFFE 44E3 894A 7051 F86E E532 4880 9534 E1FB DB33
>> "Noir comme le diable, chaud comme l'enfer,
>> pur comme un ange, doux comme l'amour",
>> Charles-Maurice de Talleyrand-P=3DE9rigord (1754-1838)
>>
>>
>> On 19 avr. 07, at 21:03, Margarita Parker wrote:
>>
>>
>>> I did not touch the server.xml file.  Do I need to do something =20
>>> to it?
>>> Where is it located?
>>> I ran the svcs -cx and it the c is not an option.
>>> svcs -x dhcp-server
>>> svc:/network/dhcp-server:default (DHCP server)
>>>  State: online since Wed Apr 11 11:14:15 2007
>>>    See: in.dhcpd(1M)
>>>    See: /var/svc/log/network-dhcp-server:default.log
>>> Impact: None.
>>>
>>> Thanks.
>>> Margarita
>>>
>>> Migneron Richard wrote:
>>>
>>>> Content-Transfer-Encoding: quoted-printable
>>>> Content-Type: text/plain;
>>>> 	charset=3D3DISO-8859-1;
>>>> 	delsp=3D3Dyes;
>>>> 	format=3D3Dflowed
>>>> Hi,
>>>>
>>>> Did you modify the dhcp server.xml file ??
>>>>
>>>> If so, you need to import the new xml file with "svccfg import /=3D20=

>>>> var/=3D3D20
>>>> svc...", followed by an svcadm enable svc:/netw...
>>>>
>>>> Otherwise, what does "svcs -cx" (I think those are the right =3D20
>>>> options =3D3D20
>>>> to see which errors the service gives when not starting, I'm not =20=

>>>> =3D20
>>>> at =3D3D20
>>>> work right now !)  tells you ???
>>>>
>>>> Hopes it helps !
>>>>
>>>> Cheers,
>>>>
>>>> Richard
>>>> _______________________________________________
>>>> Richard Migneron
>>>> @ : richard at migneron.com
>>>> T=3D3DE9l. : +33.(0)1.45.45.13.92 - Fbox: +33.(0)9.50.70.23.92
>>>> Yahoo Messenger ID: rmigneron
>>>> PGP Fingerprint : EFFE 44E3 894A 7051 F86E E532 4880 9534 E1FB DB33
>>>> "Noir comme le diable, chaud comme l'enfer,
>>>> pur comme un ange, doux comme l'amour",
>>>> Charles-Maurice de Talleyrand-P=3D3DE9rigord (1754-1838)
>>>>
>>>>
>>>> On 19 avr. 07, at 19:05, Margarita Parker wrote:
>>>>
>>>>
>>>>
>>>>> I have setup a dhcp server on a solaris 10 box.
>>>>> I looked at the config, and it seems right, but for some reason =20=

>>>>> =3D20
>>>>> it is
>>>>> not working.
>>>>> When I issue a svcs -l of the dhcp-server, it all looks fine.
>>>>> Can someone point me in the right direction?
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
>>
>
>
>
>






More information about the dhcp-users mailing list