Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions tplink/tplink-powerSupplyUnit.mib
Original file line number Diff line number Diff line change
@@ -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

76 changes: 69 additions & 7 deletions tplink/tplink-sysinfo.mib
Original file line number Diff line number Diff line change
@@ -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."
Expand Down Expand Up @@ -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
Expand All @@ -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{
Expand All @@ -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
END