From 53caebed43a2c4a3bf21f7ec4cf76ee0f508e07f Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 15 Aug 2026 18:30:21 +0000 Subject: [PATCH] chore(mibs): add TP-Link PSU MIB and update SYSINFO MIB - add tplink/tplink-powerSupplyUnit.mib - update tplink/tplink-sysinfo.mib --- tplink/tplink-powerSupplyUnit.mib | 62 +++++++++++++++++++++++++ tplink/tplink-sysinfo.mib | 76 ++++++++++++++++++++++++++++--- 2 files changed, 131 insertions(+), 7 deletions(-) create mode 100644 tplink/tplink-powerSupplyUnit.mib diff --git a/tplink/tplink-powerSupplyUnit.mib b/tplink/tplink-powerSupplyUnit.mib new file mode 100644 index 000000000..e367d3da8 --- /dev/null +++ b/tplink/tplink-powerSupplyUnit.mib @@ -0,0 +1,62 @@ + TPLINK-POWERSUPPLYUNIT-MIB DEFINITIONS ::= BEGIN + + IMPORTS + MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE + FROM SNMPv2-SMI + tplinkMgmt + FROM TPLINK-MIB; + + tplinkPowerSupplyUnitMIB MODULE-IDENTITY + LAST-UPDATED "201212171014Z" + ORGANIZATION "TPLINK" + CONTACT-INFO "www.tplink.com" + DESCRIPTION "Private MIB for Power Supply Unit configuration." + REVISION "201212171014Z" + DESCRIPTION + "Initial version of this MIB module." + ::= { tplinkMgmt 88 } + + tplinkPowerSupplyUnitMIBObjects OBJECT IDENTIFIER ::= { tplinkPowerSupplyUnitMIB 1 } + tplinkPowerSupplyUnitNotifications OBJECT IDENTIFIER ::= { tplinkPowerSupplyUnitMIB 2 } + + powerSupplyUnitGlobalConfig OBJECT IDENTIFIER ::= { tplinkPowerSupplyUnitMIBObjects 1 } + + powerSupplyUnitCapacity OBJECT-TYPE + SYNTAX INTEGER + MAX-ACCESS read-write + STATUS current + DESCRIPTION + "Configure power supply unit maximum battery capacity." + ::= { powerSupplyUnitGlobalConfig 1 } + + powerSupplyUnitRemainingTime OBJECT-TYPE + SYNTAX INTEGER + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "Display device remaining time in miniute." + ::= { powerSupplyUnitGlobalConfig 2 } + + powerSupplyUnitInternalPower OBJECT-TYPE + SYNTAX OCTET STRING + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "Display device internal(main) power status." + ::= { powerSupplyUnitGlobalConfig 3} + + powerSupplyUnitExternalPower OBJECT-TYPE + SYNTAX OCTET STRING + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "Display device external(backup) power status." + ::= { powerSupplyUnitGlobalConfig 4} + + powerSupplyUnitStatusChangeTrap NOTIFICATION-TYPE + STATUS current + DESCRIPTION + "A notification is sent when power supply unit status change." + ::= { tplinkPowerSupplyUnitNotifications 1} +END + diff --git a/tplink/tplink-sysinfo.mib b/tplink/tplink-sysinfo.mib index 9ea2658f7..42698f7c8 100644 --- a/tplink/tplink-sysinfo.mib +++ b/tplink/tplink-sysinfo.mib @@ -1,17 +1,20 @@ + TPLINK-SYSINFO-MIB DEFINITIONS ::= BEGIN IMPORTS TimeStamp FROM SNMPv2-TC OBJECT-TYPE - FROM SNMPv2-SMI + FROM SNMPv2-SMI tplinkMgmt - FROM TPLINK-MIB; + FROM TPLINK-MIB + ifIndex + FROM RFC1213-MIB; tplinkSysInfoMIB MODULE-IDENTITY LAST-UPDATED "201211290000Z" ORGANIZATION "TP-LINK" - CONTACT-INFO "www.tplink.com.cn" + CONTACT-INFO "www.tplink.com" DESCRIPTION "This MIB module contain a collection of managed objects that get infomation of the system." @@ -90,7 +93,14 @@ tpSysInfoMacAddr OBJECT-TYPE DESCRIPTION "The MAC address of the product." ::= { tplinkSysInfoMIBObjects 7 } - + +tpSysInfoSerialNum OBJECT-TYPE + SYNTAX OCTET STRING (SIZE (0..255)) + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "The Serial number of the product." + ::= { tplinkSysInfoMIBObjects 8 } tpSysInfoUpTime OBJECT-TYPE SYNTAX TimeStamp @@ -100,7 +110,7 @@ tpSysInfoUpTime OBJECT-TYPE "The time (in hundredths of a second) since the network management portion of the system was last re-initialized." - ::= { tplinkSysInfoMIBObjects 8 } + ::= { tplinkSysInfoMIBObjects 9 } tpSysInfoSerialPort OBJECT-TYPE SYNTAX INTEGER{ @@ -114,6 +124,58 @@ tpSysInfoSerialPort OBJECT-TYPE STATUS current DESCRIPTION "config the baud rate of the system" - ::= { tplinkSysInfoMIBObjects 9} + ::= { tplinkSysInfoMIBObjects 10} + +tpSysInfoPortTable OBJECT-TYPE + SYNTAX SEQUENCE OF TPSYSINFOPORTENTRY + MAX-ACCESS not-accessible + STATUS current + DESCRIPTION + "Port Utilization." + ::= { tplinkSysInfoMIBObjects 11 } + + tpSysInfoPortEntry OBJECT-TYPE + SYNTAX TPSYSINFOPORTENTRY + MAX-ACCESS not-accessible + STATUS current + DESCRIPTION + "An entry contains of the information of port Utilization." + INDEX { ifIndex } + ::= { tpSysInfoPortTable 1 } + + TPSYSINFOPORTENTRY ::= + SEQUENCE { + tpSysInfoPortRxUtilization + OCTET STRING, + tpSysInfoPortTxUtilization + OCTET STRING + } + + tpSysInfoPortRxUtilization OBJECT-TYPE + SYNTAX OCTET STRING (SIZE (0..255)) + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "Displays the port Tx Utilization." + ::= { tpSysInfoPortEntry 1 } + + tpSysInfoPortTxUtilization OBJECT-TYPE + SYNTAX OCTET STRING (SIZE (0..255)) + MAX-ACCESS read-only + STATUS current + DESCRIPTION + "Displays the port Tx Utilization." + ::= { tpSysInfoPortEntry 2 } + +tpSysInfoLed OBJECT-TYPE + SYNTAX INTEGER{ + off(0), --LED off + on(1), --LED on + } + MAX-ACCESS read-write + STATUS current + DESCRIPTION + "Config the switch LED status." + ::= { tplinkSysInfoMIBObjects 12} -END \ No newline at end of file +END