Hi Roman,
As long as your device and version have support for the IP-MIB you would most likely be after OID's in the ipIfStatsTable. (In case you are not aware, you can check for device/version support by checking out the Cisco IOS MIB Locator here: http://www.cisco.com/go/mibs .
From my understanding of your issue, you would likely be after the following, depending if you are after the 32-bit or 64-bit counters:
ipIfStatsInOctets - 1.3.6.1.2.1.4.31.3.1.5
ipIfStatsHCInOctets - 1.3.6.1.2.1.4.31.3.1.6
ipIfStatsOutOctets - 1.3.6.1.2.1.4.31.3.1.32
ipIfStatsHCOutOctets - 1.3.6.1.2.1.4.31.3.1.33
The two indexes for the ipIfStatsTable (1.3.6.1.2.1.4.31.3) are:
(i) .1 - ipIfStatsIPVersion (whether the interface statistic applies to either IPv4 or IPv6).
(ii) .2 - ipIfStatsIfIndex (which corresponds to the ifIndex).
If you can let me know if I understood your requirement correctly, or if not, if you can clarify that would be great.
Regards,
Ben