Advertisement
Guest User

Untitled

a guest
Jan 19th, 2022
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. :local ifname;
  2. :local hostname;
  3. :local mac;
  4. :local txt;
  5. foreach i in=[/caps-man registration-table find] do={
  6. :set mac [/caps-man registration-table get $i mac-address];
  7. :set hostname [/ip dhcp-server lease get [/ip dhcp-server lease find mac-address=$mac] host-name];
  8. :set ifname [/interface bridge host get [/interface bridge host find mac-address=$mac] on-interface];
  9. :set txt "$mac $hostname $ifname";
  10. :log info $txt;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement