Confusion in logs mns200b how to find a ifindex number

Hi all,

i had an issue recently with a port on the switch but in the logs it tells me

Action ID 10784: param: interface ifindex: “117”

yet there seems to be no way to find the ifindex number tied to the ports on switch

thanks

Mat

Hi, it traces back to this snmp table:

snmptable -v 2c -c public 10.240.10.52 1.3.6.1.2.1.2.2 | awk ‘{print $1" " $2}’

Depending on the switch software version the mapping may be different.

Table output is like this:

ifIndex ifDescr

1 lo

2 mgmt0

3 mgmt1

4 ib0

65 /SX/9

67 /SX/12

69 /SX/11

70 /SX/14

72 /SX/13

74 /SX/16

etc…

Whereas: /SX/number means the ib port 1/number

Usually though, any log entry referencing an interface index number has surrounding log messages with the same timestamp that reference the associated port number. For example:

Nov 20 02:03:28 sw123 cli[27777]: [cli.NOTICE]: user admin: Executing command: interface ethernet 1/1 clear counters

Nov 20 02:03:28 sw123 mgmtd[2024]: [mgmtd.NOTICE]: Action ID 614: requested by: user admin (System Administrator) via CLI

Nov 20 02:03:28 sw123 mgmtd[2024]: [mgmtd.NOTICE]: Action ID 614: descr: Clears the port counters

Nov 20 02:03:28 sw123 mgmtd[2024]: [mgmtd.NOTICE]: Action ID 614: status: completed with success

Nov 20 02:03:28 sw123 mgmtd[2024]: [mgmtd.NOTICE]: Action ID 615: param: interface ifindex: “114”

********Here ifindex 114 mayches port 1

Another example:

Jan 11 01:57:11 sn2700-2 ifd[4029]: TID 140295984342848: [ifd.NOTICE]: handling vlan oper state change, vlan: 4001, ifindex: 55001, state: up

Jan 11 01:57:11 sn2700-2 ufma[3687]: TID 140065668282112: [ufma.NOTICE]: Received event: /net/interface/events/link_up

Jan 11 01:57:11 sn2700-2 mlagd[4042]: TID 140035449181952: [mlagd.NOTICE]: got event ‘/iss/events/mlag_or_ipl_state_change’

Jan 11 01:57:11 sn2700-2 mlagd[4042]: TID 140035449181952: [mlagd.NOTICE]: processing op ipl1 oper U

Jan 11 01:57:11 sn2700-2 mlagd[4042]: TID 140035449181952: [mlagd.NOTICE]: ipl1 Po16 changed its oper state to up

*******Above shows that ifindex 55001 is P016 (port channel 16)