NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
davidzz
Feb 08, 2023Aspirant
Net stats oid of M4300-8X8F ProSAFE 8-port 10GBASE-T and 8-port 10G SFP+
Hello l’m currently searching for the OID to get the net stat of a port on my M4300-8X8F ProSAFE 8-port 10GBASE-T and 8-port 10G SFP+ switch into the information system of the switch there is this o...
davidzz
Feb 10, 2023Aspirant
I want the speed of all the ports (16port) to know how many Mb/s (receive and sent) are transiting with this switch.
The Iod you gave me gave me a null value
schumaku
Feb 10, 2023Guru - Experienced User
All of the MIB attributes required are defined in RFC1213 MIB.
A good starting point (in bits/s) would be the ifSpeed:
.1.3.6.1.2.1.2.2.1.5
ifSpeed OBJECT-TYPE
-- FROM RFC1213-MIB, IF-MIB
SYNTAX Gauge
MAX-ACCESS read-only
STATUS Mandatory
DESCRIPTION "An estimate of the interface's current bandwidth in bits per second.
For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made,
this object should contain the nominal bandwidth."
::= { ISO(1) org(3) DOD(6) Internet(1) mgmt(2) mib-2(1) interfaces(2) ifTable(2) ifEntry(1) 5 }
More sophisticated math can be applied, depends based on whether the connection you measure is half-duplex or full-duplex.
Input utilization == ( (d)ifInOctets x 8 x 100 ) / ( (number of seconds in (d) ) x ifSpeed )
:
Output utilization == ( (d)ifOutOctets x 8 x100 ) / ( (number of seconds in (d) ) x ifSpeed )
.1.3.6.1.2.1.2.2.1.10
ifInOctets OBJECT-TYPE
-- FROM RFC1213-MIB, IF-MIB
SYNTAX Counter
MAX-ACCESS read-only
STATUS Mandatory
DESCRIPTION "The total number of octets received on the interface, including framing characters."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) interfaces(2) ifTable(2) ifEntry(1) 10 }
.1.3.6.1.2.1.2.2.1.16
ifOutOctets OBJECT-TYPE
-- FROM RFC1213-MIB, IF-MIB
SYNTAX Counter
MAX-ACCESS read-only
STATUS Mandatory
DESCRIPTION "The total number of octets transmitted out of the interface, including framing characters."
::= { ISO(1) org(3) DOD(6) Internet(1) mgmt(2) mib-2(1) interfaces(2) ifTable(2) ifEntry(1) 16 }
Keep in mind MIB-II variables are stored as counters and it can be required take two poll cycles and figure the difference between the two.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!