I have a command that I can run from the terminal that can post an IP assignment and A MAC address to a specific site.
/tool fetch url="https://mysite.com/api/dhcp_assignments ... b20cf26f97" mode=https keep-result=no
However I would like to make it a automated so it grabs all the IP and mac addresses from the DHCP server and posts them to the above site. Can someone tell me how I would use a foreach loop in here? I am a newb in programming and I could not find a way to use the foreach loop.
Thanks