Search code examples
snmpcalculation

IfIndex calculation Huawei


I'm trying to interface to a Huawei device (MA5608T) via Python through SNMP.I learned that there is a correspondence between the index value and the port.

But I still don't understand how it translates

for example: 4194445056.0(index) = 0/17/7(port)

does anyone know what are the steps to do?


Solution

  • try this way:

    4194304000 + (slot * (256 * 32)) + pon * 256) + '.' + onu_id