No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade
Knowledge Base

SNMP OID for polling NE40 X8 for IPv6 octets

Publication Date:  2018-10-19  |   Views:  742  |   Downloads:  0  |   Author:  f84038637  |   Document ID:  EKB1001930736

Contents

Issue Description

Need that SNMP poll specific Huawei NE 40 X8 router port to obtain IPv4 & IPv6 octets separately and then use this to plot individual the traffic utilization graph for IPv4 & IPv6.

 Also is there a command where can check IPv4 & IPv6 counters separately?  In cisco is the command - show interfaces <if-number> accounting to achieve this.



Solution

Configure “statistic enable” and “statistic mode forward” together to enable the traffic statistics for IPV4 and IPV6 separately.

After that,  configure above 2 commands, you can check the IPV4 and IPV6 counter by the command “display interface xxxx”.

 

For the SNMP OID, can be used the OID ipIfStatsTable to query the IPV4 and IPV6 datagrams.

 

ipIfStatsTable has 2 nodes(ipIfStatsHCInForwDatagrams and ipIfStatsHCOutForwDatagrams) to query the IPv4 & IPv6 packets counter separately.

 

And it has 2 nodes(ipIfStatsHCInOctets and ipIfStatsHCOutOctets) to query the IPv4 & IPv6 octets separately.

 

For example, after configure above commands,  for a specific port, may get:

 

ipIfStatsHCInOctets.1.122 = COUNTER64: 12081388

 

ipIfStatsHCInOctets.2.122 = COUNTER64: 18727396018

 

here .1 is for ipv4, and  .2 is for ipv6   122 is the interface index.