#!/usr/bin/env python3 """One-shot inspect RB4011.""" from mk_rb4011_exec import run SCRIPT = r""" :put "===IDENTITY===" /system identity print :put "===BRIDGE-PORTS===" /interface bridge port print :put "===ADDRESSES===" /ip address print :put "===HOTSPOT===" /ip hotspot print :put "===HSPROF===" /ip hotspot profile print :put "===BINDINGS===" /ip hotspot ip-binding print :put "===DHCP===" /ip dhcp-server print :put "===ARP-JUMP===" /ip arp print where address=172.30.10.26 /ip arp print where address=100.80.255.113 :put "===WIRELESS===" /interface wireless print :put "===WG===" /interface wireguard print /interface wireguard peers print :put "===HS-PROFILES===" /ip hotspot user profile print :put "===PPP-PROFILES===" /ppp profile print :put "===IFACE-LIST===" /interface list member print :put "===ETHER===" /interface ethernet print :put "===LEASES-OFFICE===" /ip dhcp-server lease print where address~"172.30." """ print(run(SCRIPT, timeout=90))