A way to add host entries to Mission Portal through an API? #5443
-
I want to scrape the connected hosts to my WiFi router and ensure they each have a created host entry in Mission Portal. I see a Host API but no way to create entries there: https://docs.cfengine.com/docs/3.21/api-enterprise-api-ref-host.html Any ideas? I am running the hub in a docker container on an toradex/torizon dev board FWIW, works fine. 👍 I am trying to integrate with an OpenWRT wifi router which I can ssh to to scrape the information. Ideally I'd like to install an Enterprise client there but haven't gotten around to building that yet. :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It would be cool if there was a way in policy to create the host on the policy server. That way I could parse the dhcp lease information from openwrt and add hosts as needed via policy/script. Ideally I'd lookup the hosts by mac address and update/create based on that key. |
Beta Was this translation helpful? Give feedback.
-
@craigcomstock There is no good / supported way to add hosts to Mission Portal without running CFEngine on them. Do you want to add them to get an overview of which hosts still need to have CFEngine installed, or do you want to keep these "fake" host entries forever? |
Beta Was this translation helpful? Give feedback.
I see. This is not a highly requested feature, so likely not something we will add more support for in the near future. Cool that you got something working :)