Hello,
I have a cli command I am trying to push through the API. The ClI command is
/ip dhcp-server lease set [find host-name=“Unit8103Mikrotik”] address-lists=“noaccess” I have tested this and it works just fine from the cli. My API looks like this
UnitString = “Unit8103Mikrotik”
mk.Send(“ip/dhcp-server/lease/set”, False)
mk.Send(“=host-name=” & UnitString, False)
mk.Send(“=address-lists=” & “noaccess”, True)
I am getting the “no such command” in response. I have also pulled the .id and used it as =.id= and the id. I have also reordered the push so the 2 and 3rd lines are reversed. I am using the vb.net sample code to effect this. I have been able to pull the print command using this same host-name without a problem. Any help would be appreciated.
Thanks