Code backup
This commit is contained in:
2026-05-10 16:59:01 +02:00
commit 368d6fafea
796 changed files with 315310 additions and 0 deletions
@@ -0,0 +1,641 @@
paladmin@palicinga02:~$ snmpwalk -v 2c -c pal-ro palap024.pal.local
SNMPv2-MIB::sysDescr.0 = STRING: Linux EAP245 3.3.8 #1 Fri Sep 18 16:46:11 CST 2020 mips
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.11863.3.2.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (40561988) 4 days, 16:40:19.88
SNMPv2-MIB::sysContact.0 = STRING: root@localhost
SNMPv2-MIB::sysName.0 = STRING: EAP245
SNMPv2-MIB::sysLocation.0 = STRING: Unknown
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.2 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.3 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.6 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.7 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.7 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORDescr.8 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00
IF-MIB::ifNumber.0 = INTEGER: 19
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.9 = INTEGER: 9
IF-MIB::ifIndex.10 = INTEGER: 10
IF-MIB::ifIndex.11 = INTEGER: 11
IF-MIB::ifIndex.12 = INTEGER: 12
IF-MIB::ifIndex.13 = INTEGER: 13
IF-MIB::ifIndex.14 = INTEGER: 14
IF-MIB::ifIndex.15 = INTEGER: 15
IF-MIB::ifIndex.16 = INTEGER: 16
IF-MIB::ifIndex.17 = INTEGER: 17
IF-MIB::ifIndex.18 = INTEGER: 18
IF-MIB::ifIndex.19 = INTEGER: 19
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifDescr.3 = STRING: br0
IF-MIB::ifDescr.4 = STRING: wifi0
IF-MIB::ifDescr.5 = STRING: wifi1
IF-MIB::ifDescr.6 = STRING: ath0
IF-MIB::ifDescr.7 = STRING: ath1
IF-MIB::ifDescr.8 = STRING: ath2
IF-MIB::ifDescr.9 = STRING: ath3
IF-MIB::ifDescr.10 = STRING: ath4
IF-MIB::ifDescr.11 = STRING: ath5
IF-MIB::ifDescr.12 = STRING: ath6
IF-MIB::ifDescr.13 = STRING: ath10
IF-MIB::ifDescr.14 = STRING: ath11
IF-MIB::ifDescr.15 = STRING: ath12
IF-MIB::ifDescr.16 = STRING: ath13
IF-MIB::ifDescr.17 = STRING: ath14
IF-MIB::ifDescr.18 = STRING: ath15
IF-MIB::ifDescr.19 = STRING: ath16
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.4 = INTEGER: other(1)
IF-MIB::ifType.5 = INTEGER: other(1)
IF-MIB::ifType.6 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.7 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.8 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.9 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.10 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.11 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.12 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.13 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.14 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.15 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.16 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.17 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.18 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.19 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 16436
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifMtu.3 = INTEGER: 1500
IF-MIB::ifMtu.4 = INTEGER: 1500
IF-MIB::ifMtu.5 = INTEGER: 1500
IF-MIB::ifMtu.6 = INTEGER: 1500
IF-MIB::ifMtu.7 = INTEGER: 1500
IF-MIB::ifMtu.8 = INTEGER: 1500
IF-MIB::ifMtu.9 = INTEGER: 1500
IF-MIB::ifMtu.10 = INTEGER: 1500
IF-MIB::ifMtu.11 = INTEGER: 1500
IF-MIB::ifMtu.12 = INTEGER: 1500
IF-MIB::ifMtu.13 = INTEGER: 1500
IF-MIB::ifMtu.14 = INTEGER: 1500
IF-MIB::ifMtu.15 = INTEGER: 1500
IF-MIB::ifMtu.16 = INTEGER: 1500
IF-MIB::ifMtu.17 = INTEGER: 1500
IF-MIB::ifMtu.18 = INTEGER: 1500
IF-MIB::ifMtu.19 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifSpeed.2 = Gauge32: 1000000000
IF-MIB::ifSpeed.3 = Gauge32: 0
IF-MIB::ifSpeed.4 = Gauge32: 0
IF-MIB::ifSpeed.5 = Gauge32: 0
IF-MIB::ifSpeed.6 = Gauge32: 0
IF-MIB::ifSpeed.7 = Gauge32: 0
IF-MIB::ifSpeed.8 = Gauge32: 0
IF-MIB::ifSpeed.9 = Gauge32: 0
IF-MIB::ifSpeed.10 = Gauge32: 0
IF-MIB::ifSpeed.11 = Gauge32: 0
IF-MIB::ifSpeed.12 = Gauge32: 0
IF-MIB::ifSpeed.13 = Gauge32: 0
IF-MIB::ifSpeed.14 = Gauge32: 0
IF-MIB::ifSpeed.15 = Gauge32: 0
IF-MIB::ifSpeed.16 = Gauge32: 0
IF-MIB::ifSpeed.17 = Gauge32: 0
IF-MIB::ifSpeed.18 = Gauge32: 0
IF-MIB::ifSpeed.19 = Gauge32: 0
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING: 1c:3b:f3:be:e1:84
IF-MIB::ifPhysAddress.3 = STRING: 1c:3b:f3:be:e1:84
IF-MIB::ifPhysAddress.4 = STRING: 1c:3b:f3:be:e1:84
IF-MIB::ifPhysAddress.5 = STRING: 1c:3b:f3:be:e1:85
IF-MIB::ifPhysAddress.6 = STRING: 1c:3b:f3:be:e1:84
IF-MIB::ifPhysAddress.7 = STRING: 22:3b:f3:be:e1:84
IF-MIB::ifPhysAddress.8 = STRING: 26:3b:f3:be:e1:84
IF-MIB::ifPhysAddress.9 = STRING: 2a:3b:f3:be:e1:84
IF-MIB::ifPhysAddress.10 = STRING: 2e:3b:f3:be:e1:84
IF-MIB::ifPhysAddress.11 = STRING: 32:3b:f3:be:e1:84
IF-MIB::ifPhysAddress.12 = STRING: 36:3b:f3:be:e1:84
IF-MIB::ifPhysAddress.13 = STRING: 1c:3b:f3:be:e1:85
IF-MIB::ifPhysAddress.14 = STRING: 22:3b:f3:be:e1:85
IF-MIB::ifPhysAddress.15 = STRING: 26:3b:f3:be:e1:85
IF-MIB::ifPhysAddress.16 = STRING: 2a:3b:f3:be:e1:85
IF-MIB::ifPhysAddress.17 = STRING: 2e:3b:f3:be:e1:85
IF-MIB::ifPhysAddress.18 = STRING: 32:3b:f3:be:e1:85
IF-MIB::ifPhysAddress.19 = STRING: 36:3b:f3:be:e1:85
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
IF-MIB::ifAdminStatus.4 = INTEGER: up(1)
IF-MIB::ifAdminStatus.5 = INTEGER: up(1)
IF-MIB::ifAdminStatus.6 = INTEGER: up(1)
IF-MIB::ifAdminStatus.7 = INTEGER: up(1)
IF-MIB::ifAdminStatus.8 = INTEGER: up(1)
IF-MIB::ifAdminStatus.9 = INTEGER: up(1)
IF-MIB::ifAdminStatus.10 = INTEGER: up(1)
IF-MIB::ifAdminStatus.11 = INTEGER: up(1)
IF-MIB::ifAdminStatus.12 = INTEGER: up(1)
IF-MIB::ifAdminStatus.13 = INTEGER: up(1)
IF-MIB::ifAdminStatus.14 = INTEGER: up(1)
IF-MIB::ifAdminStatus.15 = INTEGER: up(1)
IF-MIB::ifAdminStatus.16 = INTEGER: up(1)
IF-MIB::ifAdminStatus.17 = INTEGER: up(1)
IF-MIB::ifAdminStatus.18 = INTEGER: up(1)
IF-MIB::ifAdminStatus.19 = INTEGER: up(1)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: up(1)
IF-MIB::ifOperStatus.4 = INTEGER: up(1)
IF-MIB::ifOperStatus.5 = INTEGER: up(1)
IF-MIB::ifOperStatus.6 = INTEGER: up(1)
IF-MIB::ifOperStatus.7 = INTEGER: up(1)
IF-MIB::ifOperStatus.8 = INTEGER: up(1)
IF-MIB::ifOperStatus.9 = INTEGER: up(1)
IF-MIB::ifOperStatus.10 = INTEGER: up(1)
IF-MIB::ifOperStatus.11 = INTEGER: up(1)
IF-MIB::ifOperStatus.12 = INTEGER: up(1)
IF-MIB::ifOperStatus.13 = INTEGER: up(1)
IF-MIB::ifOperStatus.14 = INTEGER: up(1)
IF-MIB::ifOperStatus.15 = INTEGER: up(1)
IF-MIB::ifOperStatus.16 = INTEGER: up(1)
IF-MIB::ifOperStatus.17 = INTEGER: up(1)
IF-MIB::ifOperStatus.18 = INTEGER: up(1)
IF-MIB::ifOperStatus.19 = INTEGER: up(1)
IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.5 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.6 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.7 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.8 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.9 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.10 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.11 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.12 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.13 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.14 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.15 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.16 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.17 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.18 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.19 = Timeticks: (0) 0:00:00.00
IF-MIB::ifInOctets.1 = Counter32: 0
IF-MIB::ifInOctets.2 = Counter32: 3018727910
IF-MIB::ifInOctets.3 = Counter32: 56637864
IF-MIB::ifInOctets.4 = Counter32: 383407055
IF-MIB::ifInOctets.5 = Counter32: 1376381
IF-MIB::ifInOctets.6 = Counter32: 3894619
IF-MIB::ifInOctets.7 = Counter32: 628
IF-MIB::ifInOctets.8 = Counter32: 36960
IF-MIB::ifInOctets.9 = Counter32: 2479045457
IF-MIB::ifInOctets.10 = Counter32: 104428755
IF-MIB::ifInOctets.11 = Counter32: 2878891
IF-MIB::ifInOctets.12 = Counter32: 0
IF-MIB::ifInOctets.13 = Counter32: 583398
IF-MIB::ifInOctets.14 = Counter32: 0
IF-MIB::ifInOctets.15 = Counter32: 18113
IF-MIB::ifInOctets.16 = Counter32: 3144
IF-MIB::ifInOctets.17 = Counter32: 0
IF-MIB::ifInOctets.18 = Counter32: 670223
IF-MIB::ifInOctets.19 = Counter32: 0
IF-MIB::ifInUcastPkts.1 = Counter32: 0
IF-MIB::ifInUcastPkts.2 = Counter32: 37076458
IF-MIB::ifInUcastPkts.3 = Counter32: 25912288
IF-MIB::ifInUcastPkts.4 = Counter32: 136011348
IF-MIB::ifInUcastPkts.5 = Counter32: 8581
IF-MIB::ifInUcastPkts.6 = Counter32: 19763
IF-MIB::ifInUcastPkts.7 = Counter32: 4
IF-MIB::ifInUcastPkts.8 = Counter32: 226
IF-MIB::ifInUcastPkts.9 = Counter32: 6445197
IF-MIB::ifInUcastPkts.10 = Counter32: 955099
IF-MIB::ifInUcastPkts.11 = Counter32: 20720
IF-MIB::ifInUcastPkts.12 = Counter32: 0
IF-MIB::ifInUcastPkts.13 = Counter32: 2689
IF-MIB::ifInUcastPkts.14 = Counter32: 0
IF-MIB::ifInUcastPkts.15 = Counter32: 155
IF-MIB::ifInUcastPkts.16 = Counter32: 35
IF-MIB::ifInUcastPkts.17 = Counter32: 0
IF-MIB::ifInUcastPkts.18 = Counter32: 5005
IF-MIB::ifInUcastPkts.19 = Counter32: 0
IF-MIB::ifInNUcastPkts.1 = Counter32: 0
IF-MIB::ifInNUcastPkts.2 = Counter32: 0
IF-MIB::ifInNUcastPkts.3 = Counter32: 0
IF-MIB::ifInNUcastPkts.4 = Counter32: 0
IF-MIB::ifInNUcastPkts.5 = Counter32: 0
IF-MIB::ifInNUcastPkts.6 = Counter32: 0
IF-MIB::ifInNUcastPkts.7 = Counter32: 0
IF-MIB::ifInNUcastPkts.8 = Counter32: 0
IF-MIB::ifInNUcastPkts.9 = Counter32: 0
IF-MIB::ifInNUcastPkts.10 = Counter32: 0
IF-MIB::ifInNUcastPkts.11 = Counter32: 0
IF-MIB::ifInNUcastPkts.12 = Counter32: 0
IF-MIB::ifInNUcastPkts.13 = Counter32: 0
IF-MIB::ifInNUcastPkts.14 = Counter32: 0
IF-MIB::ifInNUcastPkts.15 = Counter32: 0
IF-MIB::ifInNUcastPkts.16 = Counter32: 0
IF-MIB::ifInNUcastPkts.17 = Counter32: 0
IF-MIB::ifInNUcastPkts.18 = Counter32: 0
IF-MIB::ifInNUcastPkts.19 = Counter32: 0
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 132757
IF-MIB::ifInDiscards.3 = Counter32: 4421828
IF-MIB::ifInDiscards.4 = Counter32: 0
IF-MIB::ifInDiscards.5 = Counter32: 0
IF-MIB::ifInDiscards.6 = Counter32: 3
IF-MIB::ifInDiscards.7 = Counter32: 0
IF-MIB::ifInDiscards.8 = Counter32: 0
IF-MIB::ifInDiscards.9 = Counter32: 1
IF-MIB::ifInDiscards.10 = Counter32: 0
IF-MIB::ifInDiscards.11 = Counter32: 0
IF-MIB::ifInDiscards.12 = Counter32: 0
IF-MIB::ifInDiscards.13 = Counter32: 0
IF-MIB::ifInDiscards.14 = Counter32: 0
IF-MIB::ifInDiscards.15 = Counter32: 0
IF-MIB::ifInDiscards.16 = Counter32: 0
IF-MIB::ifInDiscards.17 = Counter32: 0
IF-MIB::ifInDiscards.18 = Counter32: 0
IF-MIB::ifInDiscards.19 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 0
IF-MIB::ifInErrors.4 = Counter32: 0
IF-MIB::ifInErrors.5 = Counter32: 487
IF-MIB::ifInErrors.6 = Counter32: 3
IF-MIB::ifInErrors.7 = Counter32: 0
IF-MIB::ifInErrors.8 = Counter32: 0
IF-MIB::ifInErrors.9 = Counter32: 1
IF-MIB::ifInErrors.10 = Counter32: 0
IF-MIB::ifInErrors.11 = Counter32: 0
IF-MIB::ifInErrors.12 = Counter32: 0
IF-MIB::ifInErrors.13 = Counter32: 0
IF-MIB::ifInErrors.14 = Counter32: 0
IF-MIB::ifInErrors.15 = Counter32: 0
IF-MIB::ifInErrors.16 = Counter32: 0
IF-MIB::ifInErrors.17 = Counter32: 0
IF-MIB::ifInErrors.18 = Counter32: 0
IF-MIB::ifInErrors.19 = Counter32: 0
IF-MIB::ifInUnknownProtos.1 = Counter32: 0
IF-MIB::ifInUnknownProtos.2 = Counter32: 0
IF-MIB::ifInUnknownProtos.3 = Counter32: 0
IF-MIB::ifInUnknownProtos.4 = Counter32: 0
IF-MIB::ifInUnknownProtos.5 = Counter32: 0
IF-MIB::ifInUnknownProtos.6 = Counter32: 0
IF-MIB::ifInUnknownProtos.7 = Counter32: 0
IF-MIB::ifInUnknownProtos.8 = Counter32: 0
IF-MIB::ifInUnknownProtos.9 = Counter32: 0
IF-MIB::ifInUnknownProtos.10 = Counter32: 0
IF-MIB::ifInUnknownProtos.11 = Counter32: 0
IF-MIB::ifInUnknownProtos.12 = Counter32: 0
IF-MIB::ifInUnknownProtos.13 = Counter32: 0
IF-MIB::ifInUnknownProtos.14 = Counter32: 0
IF-MIB::ifInUnknownProtos.15 = Counter32: 0
IF-MIB::ifInUnknownProtos.16 = Counter32: 0
IF-MIB::ifInUnknownProtos.17 = Counter32: 0
IF-MIB::ifInUnknownProtos.18 = Counter32: 0
IF-MIB::ifInUnknownProtos.19 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 0
IF-MIB::ifOutOctets.2 = Counter32: 2865729307
IF-MIB::ifOutOctets.3 = Counter32: 408299892
IF-MIB::ifOutOctets.4 = Counter32: 576951385
IF-MIB::ifOutOctets.5 = Counter32: 15054252
IF-MIB::ifOutOctets.6 = Counter32: 97189462
IF-MIB::ifOutOctets.7 = Counter32: 4920
IF-MIB::ifOutOctets.8 = Counter32: 313466
IF-MIB::ifOutOctets.9 = Counter32: 2840977473
IF-MIB::ifOutOctets.10 = Counter32: 218063042
IF-MIB::ifOutOctets.11 = Counter32: 33605131
IF-MIB::ifOutOctets.12 = Counter32: 0
IF-MIB::ifOutOctets.13 = Counter32: 3768939
IF-MIB::ifOutOctets.14 = Counter32: 0
IF-MIB::ifOutOctets.15 = Counter32: 69534
IF-MIB::ifOutOctets.16 = Counter32: 31015
IF-MIB::ifOutOctets.17 = Counter32: 0
IF-MIB::ifOutOctets.18 = Counter32: 12315773
IF-MIB::ifOutOctets.19 = Counter32: 0
IF-MIB::ifOutUcastPkts.1 = Counter32: 0
IF-MIB::ifOutUcastPkts.2 = Counter32: 8081425
IF-MIB::ifOutUcastPkts.3 = Counter32: 634878
IF-MIB::ifOutUcastPkts.4 = Counter32: 202178584
IF-MIB::ifOutUcastPkts.5 = Counter32: 41485
IF-MIB::ifOutUcastPkts.6 = Counter32: 194758
IF-MIB::ifOutUcastPkts.7 = Counter32: 10
IF-MIB::ifOutUcastPkts.8 = Counter32: 635
IF-MIB::ifOutUcastPkts.9 = Counter32: 11197952
IF-MIB::ifOutUcastPkts.10 = Counter32: 1942736
IF-MIB::ifOutUcastPkts.11 = Counter32: 63997
IF-MIB::ifOutUcastPkts.12 = Counter32: 0
IF-MIB::ifOutUcastPkts.13 = Counter32: 12989
IF-MIB::ifOutUcastPkts.14 = Counter32: 0
IF-MIB::ifOutUcastPkts.15 = Counter32: 115
IF-MIB::ifOutUcastPkts.16 = Counter32: 102
IF-MIB::ifOutUcastPkts.17 = Counter32: 0
IF-MIB::ifOutUcastPkts.18 = Counter32: 28279
IF-MIB::ifOutUcastPkts.19 = Counter32: 0
IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
IF-MIB::ifOutNUcastPkts.5 = Counter32: 0
IF-MIB::ifOutNUcastPkts.6 = Counter32: 0
IF-MIB::ifOutNUcastPkts.7 = Counter32: 0
IF-MIB::ifOutNUcastPkts.8 = Counter32: 0
IF-MIB::ifOutNUcastPkts.9 = Counter32: 0
IF-MIB::ifOutNUcastPkts.10 = Counter32: 0
IF-MIB::ifOutNUcastPkts.11 = Counter32: 0
IF-MIB::ifOutNUcastPkts.12 = Counter32: 0
IF-MIB::ifOutNUcastPkts.13 = Counter32: 0
IF-MIB::ifOutNUcastPkts.14 = Counter32: 0
IF-MIB::ifOutNUcastPkts.15 = Counter32: 0
IF-MIB::ifOutNUcastPkts.16 = Counter32: 0
IF-MIB::ifOutNUcastPkts.17 = Counter32: 0
IF-MIB::ifOutNUcastPkts.18 = Counter32: 0
IF-MIB::ifOutNUcastPkts.19 = Counter32: 0
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutDiscards.3 = Counter32: 0
IF-MIB::ifOutDiscards.4 = Counter32: 2389
IF-MIB::ifOutDiscards.5 = Counter32: 0
IF-MIB::ifOutDiscards.6 = Counter32: 3130886
IF-MIB::ifOutDiscards.7 = Counter32: 2980266
IF-MIB::ifOutDiscards.8 = Counter32: 275491
IF-MIB::ifOutDiscards.9 = Counter32: 401445
IF-MIB::ifOutDiscards.10 = Counter32: 9432206
IF-MIB::ifOutDiscards.11 = Counter32: 329855
IF-MIB::ifOutDiscards.12 = Counter32: 224669
IF-MIB::ifOutDiscards.13 = Counter32: 0
IF-MIB::ifOutDiscards.14 = Counter32: 0
IF-MIB::ifOutDiscards.15 = Counter32: 0
IF-MIB::ifOutDiscards.16 = Counter32: 0
IF-MIB::ifOutDiscards.17 = Counter32: 0
IF-MIB::ifOutDiscards.18 = Counter32: 0
IF-MIB::ifOutDiscards.19 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutErrors.4 = Counter32: 27854
IF-MIB::ifOutErrors.5 = Counter32: 0
IF-MIB::ifOutErrors.6 = Counter32: 0
IF-MIB::ifOutErrors.7 = Counter32: 0
IF-MIB::ifOutErrors.8 = Counter32: 0
IF-MIB::ifOutErrors.9 = Counter32: 0
IF-MIB::ifOutErrors.10 = Counter32: 0
IF-MIB::ifOutErrors.11 = Counter32: 0
IF-MIB::ifOutErrors.12 = Counter32: 0
IF-MIB::ifOutErrors.13 = Counter32: 1
IF-MIB::ifOutErrors.14 = Counter32: 0
IF-MIB::ifOutErrors.15 = Counter32: 0
IF-MIB::ifOutErrors.16 = Counter32: 0
IF-MIB::ifOutErrors.17 = Counter32: 0
IF-MIB::ifOutErrors.18 = Counter32: 11
IF-MIB::ifOutErrors.19 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifOutQLen.3 = Gauge32: 0
IF-MIB::ifOutQLen.4 = Gauge32: 0
IF-MIB::ifOutQLen.5 = Gauge32: 0
IF-MIB::ifOutQLen.6 = Gauge32: 0
IF-MIB::ifOutQLen.7 = Gauge32: 0
IF-MIB::ifOutQLen.8 = Gauge32: 0
IF-MIB::ifOutQLen.9 = Gauge32: 0
IF-MIB::ifOutQLen.10 = Gauge32: 0
IF-MIB::ifOutQLen.11 = Gauge32: 0
IF-MIB::ifOutQLen.12 = Gauge32: 0
IF-MIB::ifOutQLen.13 = Gauge32: 0
IF-MIB::ifOutQLen.14 = Gauge32: 0
IF-MIB::ifOutQLen.15 = Gauge32: 0
IF-MIB::ifOutQLen.16 = Gauge32: 0
IF-MIB::ifOutQLen.17 = Gauge32: 0
IF-MIB::ifOutQLen.18 = Gauge32: 0
IF-MIB::ifOutQLen.19 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.5 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.6 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.7 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.8 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.9 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.10 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.11 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.12 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.13 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.14 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.15 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.16 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.17 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.18 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.19 = OID: SNMPv2-SMI::zeroDotZero
SNMPv2-SMI::mib-2.3.1.1.1.3.1.172.16.126.254 = INTEGER: 3
SNMPv2-SMI::mib-2.3.1.1.2.3.1.172.16.126.254 = Hex-STRING: 00 09 0F 09 00 12
SNMPv2-SMI::mib-2.3.1.1.3.3.1.172.16.126.254 = IpAddress: 172.16.126.254
IP-MIB::ipForwarding.0 = INTEGER: forwarding(1)
IP-MIB::ipDefaultTTL.0 = INTEGER: 64
IP-MIB::ipInReceives.0 = Counter32: 6354664
IP-MIB::ipInHdrErrors.0 = Counter32: 0
IP-MIB::ipInAddrErrors.0 = Counter32: 0
IP-MIB::ipForwDatagrams.0 = Counter32: 0
IP-MIB::ipInUnknownProtos.0 = Counter32: 0
IP-MIB::ipInDiscards.0 = Counter32: 0
IP-MIB::ipInDelivers.0 = Counter32: 3679386
IP-MIB::ipOutRequests.0 = Counter32: 351289
IP-MIB::ipOutDiscards.0 = Counter32: 0
IP-MIB::ipOutNoRoutes.0 = Counter32: 0
IP-MIB::ipReasmTimeout.0 = INTEGER: 3 seconds
IP-MIB::ipReasmReqds.0 = Counter32: 47110
IP-MIB::ipReasmOKs.0 = Counter32: 6661
IP-MIB::ipReasmFails.0 = Counter32: 3
IP-MIB::ipFragOKs.0 = Counter32: 0
IP-MIB::ipFragFails.0 = Counter32: 0
IP-MIB::ipFragCreates.0 = Counter32: 0
IP-MIB::ipAdEntAddr.127.0.0.1 = IpAddress: 127.0.0.1
IP-MIB::ipAdEntAddr.172.16.126.158 = IpAddress: 172.16.126.158
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.172.16.126.158 = INTEGER: 3
IP-MIB::ipAdEntNetMask.127.0.0.1 = IpAddress: 255.0.0.0
IP-MIB::ipAdEntNetMask.172.16.126.158 = IpAddress: 255.255.255.0
IP-MIB::ipAdEntBcastAddr.127.0.0.1 = INTEGER: 0
IP-MIB::ipAdEntBcastAddr.172.16.126.158 = INTEGER: 1
IP-MIB::ip.21.1.1.0.0.0.0 = IpAddress: 0.0.0.0
IP-MIB::ip.21.1.1.172.16.126.0 = IpAddress: 172.16.126.0
IP-MIB::ip.21.1.2.0.0.0.0 = INTEGER: 3
IP-MIB::ip.21.1.2.172.16.126.0 = INTEGER: 3
IP-MIB::ip.21.1.3.0.0.0.0 = INTEGER: 1
IP-MIB::ip.21.1.3.172.16.126.0 = INTEGER: 0
IP-MIB::ip.21.1.7.0.0.0.0 = IpAddress: 172.16.126.254
IP-MIB::ip.21.1.7.172.16.126.0 = IpAddress: 0.0.0.0
IP-MIB::ip.21.1.8.0.0.0.0 = INTEGER: 4
IP-MIB::ip.21.1.8.172.16.126.0 = INTEGER: 3
IP-MIB::ip.21.1.9.0.0.0.0 = INTEGER: 2
IP-MIB::ip.21.1.9.172.16.126.0 = INTEGER: 2
IP-MIB::ip.21.1.11.0.0.0.0 = IpAddress: 0.0.0.0
IP-MIB::ip.21.1.11.172.16.126.0 = IpAddress: 255.255.255.0
IP-MIB::ip.21.1.13.0.0.0.0 = OID: SNMPv2-SMI::zeroDotZero
IP-MIB::ip.21.1.13.172.16.126.0 = OID: SNMPv2-SMI::zeroDotZero
IP-MIB::ipNetToMediaIfIndex.3.172.16.126.254 = INTEGER: 3
IP-MIB::ipNetToMediaPhysAddress.3.172.16.126.254 = STRING: 0:9:f:9:0:12
IP-MIB::ipNetToMediaNetAddress.3.172.16.126.254 = IpAddress: 172.16.126.254
IP-MIB::ipNetToMediaType.3.172.16.126.254 = INTEGER: dynamic(3)
IP-MIB::ipRoutingDiscards.0 = Counter32: 0
IP-MIB::icmpInMsgs.0 = Counter32: 5996
IP-MIB::icmpInErrors.0 = Counter32: 2
IP-MIB::icmpInDestUnreachs.0 = Counter32: 613
IP-MIB::icmpInTimeExcds.0 = Counter32: 0
IP-MIB::icmpInParmProbs.0 = Counter32: 0
IP-MIB::icmpInSrcQuenchs.0 = Counter32: 0
IP-MIB::icmpInRedirects.0 = Counter32: 0
IP-MIB::icmpInEchos.0 = Counter32: 5383
IP-MIB::icmpInEchoReps.0 = Counter32: 0
IP-MIB::icmpInTimestamps.0 = Counter32: 0
IP-MIB::icmpInTimestampReps.0 = Counter32: 0
IP-MIB::icmpInAddrMasks.0 = Counter32: 0
IP-MIB::icmpInAddrMaskReps.0 = Counter32: 0
IP-MIB::icmpOutMsgs.0 = Counter32: 5381
IP-MIB::icmpOutErrors.0 = Counter32: 0
IP-MIB::icmpOutDestUnreachs.0 = Counter32: 0
IP-MIB::icmpOutTimeExcds.0 = Counter32: 0
IP-MIB::icmpOutParmProbs.0 = Counter32: 0
IP-MIB::icmpOutSrcQuenchs.0 = Counter32: 0
IP-MIB::icmpOutRedirects.0 = Counter32: 0
IP-MIB::icmpOutEchos.0 = Counter32: 0
IP-MIB::icmpOutEchoReps.0 = Counter32: 5381
IP-MIB::icmpOutTimestamps.0 = Counter32: 0
IP-MIB::icmpOutTimestampReps.0 = Counter32: 0
IP-MIB::icmpOutAddrMasks.0 = Counter32: 0
IP-MIB::icmpOutAddrMaskReps.0 = Counter32: 0
IP-MIB::icmpStatsInMsgs.ipv4 = Counter32: 5996
IP-MIB::icmpStatsInMsgs.ipv6 = Counter32: 0
IP-MIB::icmpStatsInErrors.ipv4 = Counter32: 2
IP-MIB::icmpStatsInErrors.ipv6 = Counter32: 0
IP-MIB::icmpStatsOutMsgs.ipv4 = Counter32: 5381
IP-MIB::icmpStatsOutMsgs.ipv6 = Counter32: 0
IP-MIB::icmpStatsOutErrors.ipv4 = Counter32: 0
IP-MIB::icmpStatsOutErrors.ipv6 = Counter32: 0
IP-MIB::icmpMsgStatsInPkts.ipv4.3 = Counter32: 613
IP-MIB::icmpMsgStatsInPkts.ipv4.8 = Counter32: 5383
IP-MIB::icmpMsgStatsOutPkts.ipv4.0 = Counter32: 5381
TCP-MIB::tcpRtoAlgorithm.0 = INTEGER: other(1)
TCP-MIB::tcpRtoMin.0 = INTEGER: 200 milliseconds
TCP-MIB::tcpRtoMax.0 = INTEGER: 120000 milliseconds
TCP-MIB::tcpMaxConn.0 = INTEGER: -1
TCP-MIB::tcpActiveOpens.0 = Counter32: 2
TCP-MIB::tcpPassiveOpens.0 = Counter32: 0
TCP-MIB::tcpAttemptFails.0 = Counter32: 0
TCP-MIB::tcpEstabResets.0 = Counter32: 0
TCP-MIB::tcpCurrEstab.0 = Gauge32: 1
TCP-MIB::tcpInSegs.0 = Counter32: 66977
TCP-MIB::tcpOutSegs.0 = Counter32: 120776
TCP-MIB::tcpRetransSegs.0 = Counter32: 15
TCP-MIB::tcpConnState.0.0.0.0.80.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.0.0.0.0.443.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.0.0.0.0.22080.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.0.0.0.0.22443.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.172.16.126.158.48894.172.16.94.72.29811 = INTEGER: established(5)
TCP-MIB::tcpConnLocalAddress.0.0.0.0.80.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnLocalAddress.0.0.0.0.443.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnLocalAddress.0.0.0.0.22080.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnLocalAddress.0.0.0.0.22443.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnLocalAddress.172.16.126.158.48894.172.16.94.72.29811 = IpAddress: 172.16.126.158
TCP-MIB::tcpConnLocalPort.0.0.0.0.80.0.0.0.0.0 = INTEGER: 80
TCP-MIB::tcpConnLocalPort.0.0.0.0.443.0.0.0.0.0 = INTEGER: 443
TCP-MIB::tcpConnLocalPort.0.0.0.0.22080.0.0.0.0.0 = INTEGER: 22080
TCP-MIB::tcpConnLocalPort.0.0.0.0.22443.0.0.0.0.0 = INTEGER: 22443
TCP-MIB::tcpConnLocalPort.172.16.126.158.48894.172.16.94.72.29811 = INTEGER: 48894
TCP-MIB::tcpConnRemAddress.0.0.0.0.80.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemAddress.0.0.0.0.443.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemAddress.0.0.0.0.22080.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemAddress.0.0.0.0.22443.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemAddress.172.16.126.158.48894.172.16.94.72.29811 = IpAddress: 172.16.94.72
TCP-MIB::tcpConnRemPort.0.0.0.0.80.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.0.0.0.0.443.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.0.0.0.0.22080.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.0.0.0.0.22443.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.172.16.126.158.48894.172.16.94.72.29811 = INTEGER: 29811
TCP-MIB::tcpInErrs.0 = Counter32: 0
TCP-MIB::tcpOutRsts.0 = Counter32: 0
UDP-MIB::udpInDatagrams.0 = Counter32: 611
UDP-MIB::udpNoPorts.0 = Counter32: 0
UDP-MIB::udpInErrors.0 = Counter32: 0
UDP-MIB::udpOutDatagrams.0 = Counter32: 225241
UDP-MIB::udpLocalAddress.0.0.0.0.161 = IpAddress: 0.0.0.0
UDP-MIB::udpLocalAddress.0.0.0.0.20003 = IpAddress: 0.0.0.0
UDP-MIB::udpLocalPort.0.0.0.0.161 = INTEGER: 161
UDP-MIB::udpLocalPort.0.0.0.0.20003 = INTEGER: 20003
SNMPv2-MIB::snmpInPkts.0 = Counter32: 586
SNMPv2-MIB::snmpOutPkts.0 = Counter32: 586
SNMPv2-MIB::snmpInBadVersions.0 = Counter32: 0
SNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 0
SNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0
SNMPv2-MIB::snmpInASNParseErrs.0 = Counter32: 0
SNMPv2-MIB::snmpInTooBigs.0 = Counter32: 0
SNMPv2-MIB::snmpInNoSuchNames.0 = Counter32: 0
SNMPv2-MIB::snmpInBadValues.0 = Counter32: 0
SNMPv2-MIB::snmpInReadOnlys.0 = Counter32: 0
SNMPv2-MIB::snmpInGenErrs.0 = Counter32: 0
SNMPv2-MIB::snmpInTotalReqVars.0 = Counter32: 596
SNMPv2-MIB::snmpInTotalSetVars.0 = Counter32: 0
SNMPv2-MIB::snmpInGetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpInGetNexts.0 = Counter32: 600
SNMPv2-MIB::snmpInSetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpInGetResponses.0 = Counter32: 0
SNMPv2-MIB::snmpInTraps.0 = Counter32: 0
SNMPv2-MIB::snmpOutTooBigs.0 = Counter32: 0
SNMPv2-MIB::snmpOutNoSuchNames.0 = Counter32: 0
SNMPv2-MIB::snmpOutBadValues.0 = Counter32: 0
SNMPv2-MIB::snmpOutGenErrs.0 = Counter32: 0
SNMPv2-MIB::snmpOutGetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpOutGetNexts.0 = Counter32: 0
SNMPv2-MIB::snmpOutSetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpOutGetResponses.0 = Counter32: 610
SNMPv2-MIB::snmpOutTraps.0 = Counter32: 0
SNMPv2-MIB::snmpEnableAuthenTraps.0 = INTEGER: disabled(2)
SNMPv2-MIB::snmpSilentDrops.0 = Counter32: 0
SNMPv2-MIB::snmpProxyDrops.0 = Counter32: 0
IF-MIB::ifTableLastChange.0 = Timeticks: (0) 0:00:00.00
@@ -0,0 +1,509 @@
#!/bin/bash
# - VAR
# - Bash info
APPNAME=$(basename $0)
NAME="Check TplinkAp"
AUTHOR="Kalarumeth"
VERSION="v0.1"
URL="https://github.com/Kalarumeth"
# - Default settings for connection
COMMUNITY="public"
HOST_NAME="localhost"
SNMPVERSION="2c"
# - State Variables
STATE_OK=0
STATE_WARN=1
STATE_CRIT=2
STATE_UNK=3
STATE=$STATE_OK
# - OID
TpLink.OIDS() {
OID_nameIF="1.3.6.1.2.1.2.2.1.2"
OID_typeIF="1.3.6.1.2.1.2.2.1.3"
OID_statusIF="1.3.6.1.2.1.2.2.1.8"
OID_clientCon="1.3.6.1.4.1.11863.10.1.1.1"
OID_arrayMac="1.3.6.1.4.1.11863.10.1.1.2.1.2"
}
# - MAIN CODE
Script.HostAlive() {
for server in $HOST_NAME; do
ping -c1 -W1 -q $server &>/dev/null
if [[ $? != 0 ]] ; then
printf "%s\n" "$server is unreachable"
exit $STATE_UNK
fi
done
}
Script.SNMP() {
snmpwalk -v $SNMPVERSION -r 1 -t 10 -Oe -c $COMMUNITY $HOST_NAME $1
}
Script.SNMP.Hex() {
snmpwalk -v $SNMPVERSION -r 1 -t 10 -Oa -c $COMMUNITY $HOST_NAME $1
}
# - TpLink AP Health Check
TpLink.Main() {
Script.HostAlive
case $1 in
client)
TpLink.ClientConnected
exit $STATE ;;
if)
TpLink.IF
exit $STATE ;;
*)
echo "Unknown check!"
Help.IPMI
exit $STATE_UNK ;;
esac
}
TpLink.GetData() {
TpLink.OIDS
case $1 in
interface)
nameIF=($(Script.SNMP $OID_nameIF | cut -d '"' -f 2 | sed "s/$//g"))
statusIF=($(Script.SNMP $OID_statusIF | cut -d ' ' -f 4 | sed "s/$//g"))
typeIF=($(Script.SNMP $OID_typeIF | cut -d ' ' -f 4 | sed "s/$//g")) ;;
client)
clientCon=$(Script.SNMP $OID_clientCon | cut -d ' ' -f 4 | sed "s/$//g")
raw_arrayMac=$(Script.SNMP.Hex $OID_arrayMac | cut -d '"' -f 2 | cut -d '.' -f 1 | sed "s/-/:/g")
readarray -t addressMac <<< $raw_arrayMac ;;
esac
}
TpLink.IF() {
TpLink.GetData interface
TpLink.IF.Header
for((i=0; i<${#nameIF[@]}; i++))
do
TpLink.IF.operStatus
printf "%s\t" "${nameIF[$i]}"
TpLink.IF.IANAifType
done
}
TpLink.IF.Header() {
WarningCounter=0
CriticalCounter=0
for((i=0; i<${#name[@]}; i++)); do
if [[ ${name[$i]} == *"wifi"* ]] ; then
for value in "${statusIF[$i]}"; do
if [[ $value != 1 ]] && [[ $value != 2 ]]; then
WarningCounter=$(( WarningCounter + 1 ))
elif [[ $value == 2 ]]; then
CriticalCounter=$(( CriticalCounter + 1 ))
fi
done
elif [[ ${name[$i]} == *"eth"* ]] ; then
for value in "${statusIF[$i]}"; do
if [[ $value != 1 ]] && [[ $value != 2 ]]; then
WarningCounter=$(( WarningCounter + 1 ))
elif [[ $value == 2 ]]; then
CriticalCounter=$(( CriticalCounter + 1 ))
fi
done
fi
done
for Error in "$(( WarningCounter + CriticalCounter ))"; do
if [[ $WarningCounter == 0 ]] && [[ $CriticalCounter == 0 ]] ; then
printf "%s\t%s\n\n" "OK!" "All interFace is Up"
elif [[ $WarningCounter != 0 ]] && [[ $CriticalCounter == 0 ]] ; then
printf "%s\t%s\n\n" "WARNING!" "$Error interFace with problem"
elif [[ $CriticalCounter != 0 ]] ; then
printf "%s\t%s\n\n" "CRITICAL!" "$Error interFace with problem"
fi
done
printf "%s\t%s\t%s\n" "STATUS" "NAME" "TYPE" "=============================="
}
TpLink.IF.operStatus() {
case ${statusIF[$i]} in
1) printf "%s\t" "Up" ;;
2) printf "%s\t" "Down" ;;
3) printf "%s\t" "Testing" ;;
4) printf "%s\t" "Unknown" ;;
5) printf "%s\t" "Dormant" ;;
6) printf "%s\t" "notPresent" ;;
7) printf "%s\t" "lowerLayerDown" ;;
esac
}
TpLink.IF.IANAifType() {
case ${typeIF[$i]} in
1) printf "%s\n" "other" ;;
2) printf "%s\n" "regular1822" ;;
3) printf "%s\n" "hdh1822" ;;
4) printf "%s\n" "ddnX25" ;;
5) printf "%s\n" "rfc877x25" ;;
6) printf "%s\n" "ethernetCsmacd" ;;
7) printf "%s\n" "iso88023Csmacd" ;;
8) printf "%s\n" "iso88024TokenBus" ;;
9) printf "%s\n" "iso88025TokenRing" ;;
10) printf "%s\n" "iso88026Man" ;;
11) printf "%s\n" "starLan" ;;
12) printf "%s\n" "proteon10Mbit" ;;
13) printf "%s\n" "proteon80Mbit" ;;
14) printf "%s\n" "hyperchannel" ;;
15) printf "%s\n" "fddi" ;;
16) printf "%s\n" "lapb" ;;
17) printf "%s\n" "sdlc" ;;
18) printf "%s\n" "ds1" ;;
19) printf "%s\n" "e1" ;;
20) printf "%s\n" "basicISDN" ;;
21) printf "%s\n" "primaryISDN" ;;
22) printf "%s\n" "propPointToPointSerial" ;;
23) printf "%s\n" "ppp" ;;
24) printf "%s\n" "softwareLoopback" ;;
25) printf "%s\n" "eon" ;;
26) printf "%s\n" "ethernet3Mbit" ;;
27) printf "%s\n" "nsip" ;;
28) printf "%s\n" "slip" ;;
29) printf "%s\n" "ultra" ;;
30) printf "%s\n" "ds3" ;;
31) printf "%s\n" "sip" ;;
32) printf "%s\n" "frameRelay" ;;
33) printf "%s\n" "rs232" ;;
34) printf "%s\n" "para" ;;
35) printf "%s\n" "arcnet" ;;
36) printf "%s\n" "arcnetPlus" ;;
37) printf "%s\n" "atm" ;;
38) printf "%s\n" "miox25" ;;
39) printf "%s\n" "sonet" ;;
40) printf "%s\n" "x25ple" ;;
41) printf "%s\n" "iso88022llc" ;;
42) printf "%s\n" "localTalk" ;;
43) printf "%s\n" "smdsDxi" ;;
44) printf "%s\n" "frameRelayService" ;;
45) printf "%s\n" "v35" ;;
46) printf "%s\n" "hssi" ;;
47) printf "%s\n" "hippi" ;;
48) printf "%s\n" "modem" ;;
49) printf "%s\n" "aal5" ;;
50) printf "%s\n" "sonetPath" ;;
51) printf "%s\n" "sonetVT" ;;
52) printf "%s\n" "smdsIcip" ;;
53) printf "%s\n" "propVirtual" ;;
54) printf "%s\n" "propMultiplexor" ;;
55) printf "%s\n" "ieee80212" ;;
56) printf "%s\n" "fibreChannel" ;;
57) printf "%s\n" "hippiInterface" ;;
58) printf "%s\n" "frameRelayInterconnect" ;;
59) printf "%s\n" "aflane8023" ;;
60) printf "%s\n" "aflane8025" ;;
61) printf "%s\n" "cctEmul" ;;
62) printf "%s\n" "fastEther" ;;
63) printf "%s\n" "isdn" ;;
64) printf "%s\n" "v11" ;;
65) printf "%s\n" "v36" ;;
66) printf "%s\n" "g703at64k" ;;
67) printf "%s\n" "g703at2mb" ;;
68) printf "%s\n" "qllc" ;;
69) printf "%s\n" "fastEtherFX" ;;
70) printf "%s\n" "channel" ;;
71) printf "%s\n" "ieee80211" ;;
72) printf "%s\n" "ibm370parChan" ;;
73) printf "%s\n" "escon" ;;
74) printf "%s\n" "dlsw" ;;
75) printf "%s\n" "isdns" ;;
76) printf "%s\n" "isdnu" ;;
77) printf "%s\n" "lapd" ;;
78) printf "%s\n" "ipSwitch" ;;
79) printf "%s\n" "rsrb" ;;
80) printf "%s\n" "atmLogical" ;;
81) printf "%s\n" "ds0" ;;
82) printf "%s\n" "ds0Bundle" ;;
83) printf "%s\n" "bsc" ;;
84) printf "%s\n" "async" ;;
85) printf "%s\n" "cnr" ;;
86) printf "%s\n" "iso88025Dtr" ;;
87) printf "%s\n" "eplrs" ;;
88) printf "%s\n" "arap" ;;
89) printf "%s\n" "propCnls" ;;
90) printf "%s\n" "hostPad" ;;
91) printf "%s\n" "termPad" ;;
92) printf "%s\n" "frameRelayMPI" ;;
93) printf "%s\n" "x213" ;;
94) printf "%s\n" "adsl" ;;
95) printf "%s\n" "radsl" ;;
96) printf "%s\n" "sdsl" ;;
97) printf "%s\n" "vdsl" ;;
98) printf "%s\n" "iso88025CRFPInt" ;;
99) printf "%s\n" "myrinet" ;;
100) printf "%s\n" "voiceEM" ;;
101) printf "%s\n" "voiceFXO" ;;
102) printf "%s\n" "voiceFXS" ;;
103) printf "%s\n" "voiceEncap" ;;
104) printf "%s\n" "voiceOverIp" ;;
105) printf "%s\n" "atmDxi" ;;
106) printf "%s\n" "atmFuni" ;;
107) printf "%s\n" "atmIma" ;;
108) printf "%s\n" "pppMultilinkBundle" ;;
109) printf "%s\n" "ipOverCdlc" ;;
110) printf "%s\n" "ipOverClaw" ;;
111) printf "%s\n" "stackToStack" ;;
112) printf "%s\n" "virtualIpAddress" ;;
113) printf "%s\n" "mpc" ;;
114) printf "%s\n" "ipOverAtm" ;;
115) printf "%s\n" "iso88025Fiber" ;;
116) printf "%s\n" "tdlc" ;;
117) printf "%s\n" "gigabitEthernet" ;;
118) printf "%s\n" "hdlc" ;;
119) printf "%s\n" "lapf" ;;
120) printf "%s\n" "v37" ;;
121) printf "%s\n" "x25mlp" ;;
122) printf "%s\n" "x25huntGroup" ;;
123) printf "%s\n" "transpHdlc" ;;
124) printf "%s\n" "interleave" ;;
125) printf "%s\n" "fast" ;;
126) printf "%s\n" "ip" ;;
127) printf "%s\n" "docsCableMaclayer" ;;
128) printf "%s\n" "docsCableDownstream" ;;
129) printf "%s\n" "docsCableUpstream" ;;
130) printf "%s\n" "a12MppSwitch" ;;
131) printf "%s\n" "tunnel" ;;
132) printf "%s\n" "coffee" ;;
133) printf "%s\n" "ces" ;;
134) printf "%s\n" "atmSubInterface" ;;
135) printf "%s\n" "l2vlan" ;;
136) printf "%s\n" "l3ipvlan" ;;
137) printf "%s\n" "l3ipxvlan" ;;
138) printf "%s\n" "digitalPowerline" ;;
139) printf "%s\n" "mediaMailOverIp" ;;
140) printf "%s\n" "dtm" ;;
141) printf "%s\n" "dcn" ;;
142) printf "%s\n" "ipForward" ;;
143) printf "%s\n" "msdsl" ;;
144) printf "%s\n" "ieee1394" ;;
145) printf "%s\n" "if-gsn" ;;
146) printf "%s\n" "dvbRccMacLayer" ;;
147) printf "%s\n" "dvbRccDownstream" ;;
148) printf "%s\n" "dvbRccUpstream" ;;
149) printf "%s\n" "atmVirtual" ;;
150) printf "%s\n" "mplsTunnel" ;;
151) printf "%s\n" "srp" ;;
152) printf "%s\n" "voiceOverAtm" ;;
153) printf "%s\n" "voiceOverFrameRelay" ;;
154) printf "%s\n" "idsl" ;;
155) printf "%s\n" "compositeLink" ;;
156) printf "%s\n" "ss7SigLink" ;;
157) printf "%s\n" "propWirelessP2P" ;;
158) printf "%s\n" "frForward" ;;
159) printf "%s\n" "rfc1483" ;;
160) printf "%s\n" "usb" ;;
161) printf "%s\n" "ieee8023adLag" ;;
162) printf "%s\n" "bgppolicyaccounting" ;;
163) printf "%s\n" "frf16MfrBundle" ;;
164) printf "%s\n" "h323Gatekeeper" ;;
165) printf "%s\n" "h323Proxy" ;;
166) printf "%s\n" "mpls" ;;
167) printf "%s\n" "mfSigLink" ;;
168) printf "%s\n" "hdsl2" ;;
169) printf "%s\n" "shdsl" ;;
170) printf "%s\n" "ds1FDL" ;;
171) printf "%s\n" "pos" ;;
172) printf "%s\n" "dvbAsiIn" ;;
173) printf "%s\n" "dvbAsiOut" ;;
174) printf "%s\n" "plc" ;;
175) printf "%s\n" "nfas" ;;
176) printf "%s\n" "tr008" ;;
177) printf "%s\n" "gr303RDT" ;;
178) printf "%s\n" "gr303IDT" ;;
179) printf "%s\n" "isup" ;;
180) printf "%s\n" "propDocsWirelessMaclayer" ;;
181) printf "%s\n" "propDocsWirelessDownstream" ;;
182) printf "%s\n" "propDocsWirelessUpstream" ;;
183) printf "%s\n" "hiperlan2" ;;
184) printf "%s\n" "propBWAp2Mp" ;;
185) printf "%s\n" "sonetOverheadChannel" ;;
186) printf "%s\n" "digitalWrapperOverheadChannel" ;;
187) printf "%s\n" "aal2" ;;
188) printf "%s\n" "radioMAC" ;;
189) printf "%s\n" "atmRadio" ;;
190) printf "%s\n" "imt" ;;
191) printf "%s\n" "mvl" ;;
192) printf "%s\n" "reachDSL" ;;
193) printf "%s\n" "frDlciEndPt" ;;
194) printf "%s\n" "atmVciEndPt" ;;
195) printf "%s\n" "opticalChannel" ;;
196) printf "%s\n" "opticalTransport" ;;
197) printf "%s\n" "propAtm" ;;
198) printf "%s\n" "voiceOverCable" ;;
199) printf "%s\n" "infiniband" ;;
200) printf "%s\n" "teLink" ;;
201) printf "%s\n" "q2931" ;;
202) printf "%s\n" "virtualTg" ;;
203) printf "%s\n" "sipTg" ;;
204) printf "%s\n" "sipSig" ;;
205) printf "%s\n" "docsCableUpstreamChannel" ;;
206) printf "%s\n" "econet" ;;
207) printf "%s\n" "pon155" ;;
208) printf "%s\n" "pon622" ;;
209) printf "%s\n" "bridge" ;;
210) printf "%s\n" "linegroup" ;;
211) printf "%s\n" "voiceEMFGD" ;;
212) printf "%s\n" "voiceFGDEANA" ;;
213) printf "%s\n" "voiceDID" ;;
214) printf "%s\n" "mpegTransport" ;;
215) printf "%s\n" "sixToFour" ;;
216) printf "%s\n" "gtp" ;;
217) printf "%s\n" "pdnEtherLoop1" ;;
218) printf "%s\n" "pdnEtherLoop2" ;;
219) printf "%s\n" "opticalChannelGroup" ;;
220) printf "%s\n" "homepna" ;;
221) printf "%s\n" "gfp" ;;
222) printf "%s\n" "ciscoISLvlan" ;;
223) printf "%s\n" "actelisMetaLOOP" ;;
224) printf "%s\n" "fcipLink" ;;
225) printf "%s\n" "rpr" ;;
226) printf "%s\n" "qam" ;;
227) printf "%s\n" "lmp" ;;
228) printf "%s\n" "cblVectaStar" ;;
229) printf "%s\n" "docsCableMCmtsDownstream" ;;
230) printf "%s\n" "adsl2" ;;
231) printf "%s\n" "macSecControlledIF" ;;
232) printf "%s\n" "macSecUncontrolledIF" ;;
233) printf "%s\n" "aviciOpticalEther" ;;
234) printf "%s\n" "atmbond" ;;
235) printf "%s\n" "voiceFGDOS" ;;
236) printf "%s\n" "mocaVersion1" ;;
237) printf "%s\n" "ieee80216WMAN" ;;
238) printf "%s\n" "adsl2plus" ;;
239) printf "%s\n" "dvbRcsMacLayer" ;;
240) printf "%s\n" "dvbTdm" ;;
241) printf "%s\n" "dvbRcsTdma" ;;
242) printf "%s\n" "x86Laps" ;;
243) printf "%s\n" "wwanPP" ;;
244) printf "%s\n" "wwanPP2" ;;
245) printf "%s\n" "voiceEBS" ;;
246) printf "%s\n" "ifPwType" ;;
247) printf "%s\n" "ilan" ;;
248) printf "%s\n" "pip" ;;
249) printf "%s\n" "aluELP" ;;
250) printf "%s\n" "gpon" ;;
251) printf "%s\n" "vdsl2" ;;
252) printf "%s\n" "capwapDot11Profile" ;;
253) printf "%s\n" "capwapDot11Bss" ;;
254) printf "%s\n" "capwapWtpVirtualRadio" ;;
255) printf "%s\n" "bits" ;;
256) printf "%s\n" "docsCableUpstreamRfPort" ;;
257) printf "%s\n" "cableDownstreamRfPort" ;;
258) printf "%s\n" "vmwareVirtualNic" ;;
259) printf "%s\n" "ieee802154" ;;
260) printf "%s\n" "otnOdu" ;;
261) printf "%s\n" "otnOtu" ;;
262) printf "%s\n" "ifVfiType" ;;
263) printf "%s\n" "g9981" ;;
264) printf "%s\n" "g9982" ;;
265) printf "%s\n" "g9983" ;;
266) printf "%s\n" "aluEpon" ;;
267) printf "%s\n" "aluEponOnu" ;;
268) printf "%s\n" "aluEponPhysicalUni" ;;
269) printf "%s\n" "aluEponLogicalLink" ;;
270) printf "%s\n" "aluGponOnu" ;;
271) printf "%s\n" "aluGponPhysicalUni" ;;
272) printf "%s\n" "vmwareNicTeam" ;;
esac
}
TpLink.ClientConnected() {
TpLink.GetData client
printf "%s\n" "Conneceted clients: $clientCon"
if [[ $clientCon != 0 ]] ; then
printf "\n"
for((i=0; i<${#addressMac[@]}; i++)); do
printf "%s\n" "$((i+1)). ${addressMac[$i]}"
done
fi
}
# - Help
Help.Main() {
echo "Check AP Status"
echo ''
Help.Usage
echo ''
Help.Option
echo ''
Help.Info
echo ''
exit $STATE_UNK
}
Help.Usage() {
printf "%s\n" "Method to compose the execution string"
printf "%s\n" "./$APPNAME -c <SNMP community> -h <host>"
}
Help.Option() {
printf "%s\n" "OPTIONS:"
printf "%s\t%s\t%s\n\t\t\t%s\n" "-c" "--community" "SNMP v2 community string with Read access." " Default is $COMMUNITY."
printf "%s\t%s\t\t%s\n\t\t\t%s\n" "-h" "--host" "Host name or IP address to check." " Default is $HOST_NAME."
printf "%s\t%s\t\t%s\n" "-H" "--help" "Show script help"
printf "%s\t%s\t%s\n" "-V" "--version" "Show script version"
}
Help.IPMI() {
printf "\n%s\n\n" "TpLink AP EAP265HD Check Function"
printf "%s\t%s\n\n" "Check" "Description"
printf "%s\t%s\n" "all" "Full monitoring check with single output"
printf "%s\t%s\n" "cpu" "Monitoring CPU load"
printf "%s\t%s\n" "err" "Monitoring system error"
printf "%s\t%s\n" "fan" "Monitoring fan speed"
printf "%s\t%s\n" "ram" "Monitoring RAM load"
printf "%s\t%s\n" "hw" "Monitoring Hardware status"
printf "%s\t%s\n" "temp" "Monitoring temperature sensor"
}
Help.Info() {
printf "%s\t%s\t%s\n" "INFO:" "$NAME" "$VERSION" "" "$AUTHOR" "$URL"
}
# - COMMAND LINE ENCODER
while test -n "$1"; do
case "$1" in
--host | -h)
HOST_NAME=$2
shift ;;
--comunity | -c)
COMMUNITY=$2
shift ;;
--type | -t)
TpLink.Main $2
shift ;;
--help | -H)
Help.Main ;;
--version | -V)
Help.Info
exit $STATE ;;
*)
echo "Unknown argument: $1"
print_help
exit $STATE_UNK ;;
esac
shift
done
TpLink.Main