Advertisement
Guest User

Untitled

a guest
Jan 19th, 2022
19
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement