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.
Configure “statistic enable” and “statistic mode
forward” together to enable the traffic statistics for IPV4 and IPV6
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
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.