How to check the link status and data traffic statistics of TP-Link Business Routers with SNMP

Further Assistance
Updated 07-23-2024 03:38:08 AM FAQ view icon73225
This Article Applies to: 

TP-Link SMB routers support SNMP with public OIDs. To check the link status and traffic statistics, the OID ifEntry (.1.3.6.1.2.1.2.2.1) and its children OIDs are used.

1.Check the children's OID for WAN or LAN interfaces.

SNMP Walk ifDescr (.1.3.6.1.2.1.2.2.1.2) to display the children's OIDs of the interfaces. The OIDs of the dual-wan router is obtained via the tool named Snmpwalk, as shown below. Most of the interfaces are for internal communication, and no need to be concerned. Among them, “ifDescr.17 = br-lan” indicates that 17 is the children OID for LAN. If you go to the router page – Network – VLAN, you will find the VLAN IDs of WAN1 and WAN2 are 10 and 20, respectively. Then “ifDescr.19 = eth0.10” indicates the children OID for WAN1 is 19, and that for WAN2 is 20.

If you are using a router with more WAN ports, you can check the VLAN ID of each port, then you will know the correspondence.

2.Check the link status.

You already know that 17, 19, and 20 corresponds to LAN, WAN1, and WAN2, respectively. To check the link status, SNMP Walk ifOperStatus (.1.3.6.1.2.1.2.2.1.8). As shown in the figure below, WAN1 is linked up, WAN2 is linked down. You can also directly SNMP Get ifOperStatus.19 (.1.3.6.1.2.1.2.2.1.8.19) to obtain the link status of WAN1.

3.Check the data traffic statistics.

  • Receiving (RX): SNMP Walk ifInOctets (.1.3.6.1.2.1.2.2.1.10). The values of .17, .19, and .20 correspond to the RX statistics, in Byte, of LAN, WAN1, and WAN2 (linked down), respectively. You can also SNMP Get ifInOctects (.1.3.6.1.2.1.2.2.1.10.19) to obtain the RX bytes of WAN1.

  • Transmitting (TX): SNMP Walk ifOutOctets (.1.3.6.1.2.1.2.2.1.16). The values of .17, .19, and .20 correspond to the TX statistics, in Byte, of LAN, WAN1, and WAN2, respectively.

Is this faq useful?

Your feedback helps improve this site.

Recommend Products

Community

TP-Link Community

Still need help? Search for answers, ask questions, and get help from TP-Link experts and other users around the world.

Visit the Community >

icon

Accessibility Adjustments

icon RESET

Choose the right accessibility profile for you

OFF

Seizure Safe

Eliminates flashes and reduces color

OFF

Cognitive Disability

Assists with reading and focusing

OFF

Vision Impaired

Enhances the website's visuals

OFF

ADHD Friendly

More focus and fewer distractions

Content Adjustments

Adjust Scale

icon
100%
icon

Highlight Title

icon

Highlight Link

icon

Text Magnifier

icon

Readable Font

icon

Align Center

icon

Align Left

icon

Align Right

icon

Color Adjustment

Low Saturate

icon

High Saturate

icon

Dark Contrast

icon

Light Contrast

icon

Set Text Colors

Monochrome

icon

Set Title Colors

High Contrast

icon

Set BackgroundColor

Orientation Adjustments

Muted

icon

Hide Images

icon

Stop Animation

icon

Reading Mask

icon

Highlight Hover

icon

Big Black Cursor

mutedicon

Big White Cursor

icon

Hide Video/Audio

icon

Stop Video

icon

Stop Audio

icon

Hide Animation

icon

Reading Guide

icon

Useful Links

Chat Now