<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Title content=""><meta name=Keywords content=""><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:Calibri;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Calibri;
color:windowtext;}
span.msoIns
{mso-style-type:export-only;
mso-style-name:"";
text-decoration:underline;
color:teal;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:Calibri;
mso-fareast-language:EN-US;}
@page WordSection1
{size:595.0pt 842.0pt;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body bgcolor=white lang=EN-GB link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='font-size:10.0pt'>Me again!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>Just got 1.2.0 from src up and running perfectly using keactrl. Now taking a further step in getting kea-ctrl-agent to work but having a couple of issues when I send requests to the API on the DHCP server itself.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>Remote Command:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt'>curl -X POST -H "Content-Type: application/json" -d '{ "command": "config-get", "service": [ "dhcp4" ] }' http://10.255.11.125:8000/<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>Returns:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt'> [ { "result": 1, "text": "unable to forward command to the dhcp4 service: Connection refused. The server is likely to be offline" } ]<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>So wondering if there is something like permissions on the centos DHCP server stopping the connection. selinux off (if that makes any difference)! Obviously getting a response from the CA as it’s responding with something.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>Config on DHCP server:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>kea.conf - <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt'>"Dhcp4":<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt'> "control-socket": {<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt'> "socket-type": "unix",<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt'> "socket-name": "/tmp/kea-dhcp4-ctrl.sock"<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt'> },<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>kea-ca.conf – <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt'> "Control-agent": {<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt'> "http-host": "10.255.11.125",<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt'> "http-port": 8000,<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt'> "control-sockets": {<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt'> "dhcp4-server": {<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt'> "socket-type": "unix",<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt'> "socket-name": "/tmp/kea-dhcp4-ctrl.sock"<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:10.0pt'> },<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>Any ideas? So close with this one!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;color:black'>Neil Briscoe<o:p></o:p></span></b></p></div></body></html>