Posted on March 29, 2019 10:58 pm
 |  Asked by plundgren
 |  98 views
RESOLVED
0
0
Print Friendly, PDF & Email

With sFlow we get information about which interface that each sample originates from, but the value for the interface name is hard makes sense of. The input_interface field for decoded sflow records have values such as:
10, 1000040 and 51001.

Is there a way to map these values to the interface names?

1
Posted by Jaimeen Parmar
Answered on March 29, 2019 11:13 pm

Hi,

Depending on the platform that you are using, the interface mapping to sflow-numbered interfaces could be found in the snmp mibs.

For e.g. show snmp mib ifmib ifindex
This will give you an output which contains interface names (e.g. Ethernet 1) and sflow-numbered interfaces (e.g. 1).

Thanks,

1
Posted by Himanshu Singh
Answered on April 1, 2019 3:54 pm

Hi,

You can map the interface value seen in sflow output with the actual interface number via snmp on the switch.

switch#show snmp mib ifmib ifindex
Ethernet1: Ifindex = 1
Ethernet2: Ifindex = 2

Ethernet52/4: Ifindex = 52004
Management1: Ifindex = 999001
Port-Channel1010: Ifindex = 1001010
Vlan10: Ifindex = 2000010

Hope this helps.

Regards,
Himanshu

0
Posted by plundgren
Answered on April 3, 2019 6:42 am

Thanks!

Post your Answer

You must be logged in to post an answer.