When collecting info from Eth-trunk interface we found that counters are displayed incorrect.
Interface to collect statistic:
IF-MIB::ifDescr.1030 = STRING: Eth-Trunk2
IF-MIB::ifDescr.2310 = STRING: Eth-Trunk2.1009
IF-MIB::ifDescr.2438 = STRING: Eth-Trunk2.1010
IF-MIB::ifHCInOctets.1030 = Counter64: 67998580772
IF-MIB::ifHCInOctets.2310 = Counter64: 63181334
IF-MIB::ifHCInOctets.2438 = Counter64: 3115985
IF-MIB::ifHCInOctets.1030 - is the total value and it differs from total value of .2310 and .2438
Type: "Statistic enable" on sub Eth-trunk interface:
vlan-type dot1q 1009
vlan-type dot1q 1010
Then sub Eth-trunk interfaces will also count transferring traffic.
Eth-trunk interface has "statistic enable" feature by default,so all traffic will be counted.
But on the sub Eth-trunk interface "statistic enable" command is not enabled by default. It will only count protocol packet which will be sent to NP.So, the transfer traffic will not be counted.
That`s why value of counters from Eth-trunk interface is more than total value of counters from all sub Eth-trunk interface.