diff options
Diffstat (limited to 'switch-snmp')
| -rw-r--r-- | switch-snmp/omada-switches.conf | 5 | ||||
| -rw-r--r-- | switch-snmp/snmpOmada.py | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/switch-snmp/omada-switches.conf b/switch-snmp/omada-switches.conf index e4a6888..be77cd2 100644 --- a/switch-snmp/omada-switches.conf +++ b/switch-snmp/omada-switches.conf @@ -1,4 +1,4 @@ -[192.168.69.112] +[192.168.69.28] 1 = EAP225 Wifi 2 = Tasmota Zigbee 4 = Mikrotik CRS310-8G+2S+ @@ -7,7 +7,7 @@ 24 = Frigate Pi 23 = SG2005P-PD 8 = PiKVM -11 = Type-C POE Charger +11 = Cisco 7975 22 = Cluster Pi 9 19 = Cluster Pi 5 20 = Cluster Pi 7 @@ -21,4 +21,5 @@ 1 = Fibre ONT 2 = TL-RP108GE & EAP110 3 = Firestick +4 = ES205G diff --git a/switch-snmp/snmpOmada.py b/switch-snmp/snmpOmada.py index f1546a7..d3b183c 100644 --- a/switch-snmp/snmpOmada.py +++ b/switch-snmp/snmpOmada.py @@ -44,7 +44,7 @@ def get_alternate_name(port, host): try: return port_names[port] except KeyError: - return port + return str(port) def snmp_walk(host): proc = subprocess.Popen( @@ -93,4 +93,4 @@ if __name__ == "__main__": import mikrotik points = get_points() print(points) - mikrotik.append(points)
\ No newline at end of file + mikrotik.append(points) |
