I'm trying to make a general template for all our switches.
I've found that I can query 1.3.6.1.2.1.2.1.0 and get the number of interfaces on the switch. What I'm struggling to find is that if that returns say 48 how do I create items for 1 to 48.
Using Port 1 I'd like to take the name from 1.3.6.1.2.1.2.2.1.2.1 and use it in descriptions, 1.3.6.1.2.1.2.2.1.5.1 for its link speed, 1.3.6.1.2.1.2.2.1.8.1 for its link state and so on.
I'd love to get it working with a dynamic number of interfaces so it can track VLAN interfaces etc...
I've found that I can query 1.3.6.1.2.1.2.1.0 and get the number of interfaces on the switch. What I'm struggling to find is that if that returns say 48 how do I create items for 1 to 48.
Using Port 1 I'd like to take the name from 1.3.6.1.2.1.2.2.1.2.1 and use it in descriptions, 1.3.6.1.2.1.2.2.1.5.1 for its link speed, 1.3.6.1.2.1.2.2.1.8.1 for its link state and so on.
I'd love to get it working with a dynamic number of interfaces so it can track VLAN interfaces etc...
Comment