cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
325
Views
0
Helpful
1
Replies

Problem with SNMP Table

David Fernandez
Level 1
Level 1
Hello,
 
We have a problem related with the SNMPv3 table of interfaces.
Our system is compounded by 2 pairs of 2 switches in stack mode both of power supply as data. And we have a software which control the interfaces using SNMPv3.
 
In one pair, the SNMP table that shows with the following command, 
 
  • snmptable -v3 -a SHA -A 'password' -l authNoPriv -u 'password'  IP_Switch_1/IP_Switch_2:161 IF-MIB::ifTable
 
The result table is good in the "normal" order that always appears, but in the second pair, using the same command the elements in the table are not the correct one.
Vlan 1 row appear in different index, so we need that always stay in the same order because in the software we access to the interface control by index. 
 
I attach you, the content of both SNMP tables:
 
table-1-NormalOrder.txt -> it is the order that we need to be in both stacks
table-2-Disorder.txt -> The bad order of SNMP table
 
How can we make the correct order in the tables?
 
Thanks you in advice,
1 Reply 1

pieterh
VIP
VIP

I cannot find the tables you say you attached ?

the two stacks are completely separate ? but for the rest identical ? do they have the same IOS version ?
-> you may need to reboot the switch so SNMP process on the switch can re-enumerate /re-index the interfaces

also read this document Interface Index (ifIndex) Persistence - Cisco
(there may be a newer version, but I did not searched for that)