Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :local ifname;
- :local hostname;
- :local mac;
- :local txt;
- foreach i in=[/caps-man registration-table find] do={
- :set mac [/caps-man registration-table get $i mac-address];
- :set hostname [/ip dhcp-server lease get [/ip dhcp-server lease find mac-address=$mac] host-name];
- :set ifname [/interface bridge host get [/interface bridge host find mac-address=$mac] on-interface];
- :set txt "$mac $hostname $ifname";
- :log info $txt;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement