"show ip interfaces brief" and SNMP

Hi Everyone,

This is my first post on this group but I'm sure it won't be my last.

Question: Has anyone been able to find some OIDs that will produce a "show ip interfaces brief" table?

Any help will be greatly appreciated.

From,

pizzy

Reply to
pizzy
Loading thread data ...

pizzy,

ipAdEntIfIndex = 1.3.6.1.2.1.4.20.1.2 Will show an IP to ifIndex mapping for each IP existing on the device. Is that what you mean? If you wanted the rest of the `sh ip int brief`` output, you will need multiple OID's.

Reply to
karateD

Good stuff, now I need the Vlan id associated with each ip interface. Got any ideas?

Reply to
pizzy

pizzy,

For CatOS you will need a combo of ipAdEntIfindex, ifName and then vlanPortVlan (CISCO-STACK mib).

For IOS you will need a combo of ipAdEntIfIndex and then vmVlan (CISCO-VLAN-MEMBERSHIP-MIB ).

For CatOS: 1 - pull back ipAdEntIfIndex. This shows the ifIndex to IP interface mappings. 2) - pull back ifName. This will show you the ifIndex to module/port mappings. The output should be ifName. = 3) - pull back vlanPortVlan. The output should be like "vlanPortVlan.mod#.port# = VLAN #". Use the mod # / port # found from step 2 to find the VLAN for your ip interface.

For IOS: 1) pull back ipAdEntIfIndex. Shows ifIndex to IP interface mappings. 2) pull back vmVlan. This output should be like "vmVlan.ifIndex# = VLAN #". Use the ifIndex for your IP interface(s) found in step 1 to find the VLAN.

And these are writable, too - if you have READ-WRITE enabled. Example, change a VLAN in CatOS: "snmpset 10.10.10.1 commStringHere vlanPortVlan.5.8 int 6" - will make module 5 / port 8 go into VLAN # 6.

Example, change a VLAN in IOS: "snmpset 10.10.10.10 commStringHere vmVlan.100 int 6" - will put whatever port (or VLAN!!!) that maps to ifIndex # 100 into VLAN # 6.

Use extreme caution while setting VLAN's this way! Use the wrong ifIndex and you could change a lot more than one port's VLAN : )

Reply to
karateD

pizzy,

For CatOS you will need a combo of ipAdEntIfindex, ifName and then vlanPortVlan (CISCO-STACK mib).

For IOS you will need a combo of ipAdEntIfIndex and then vmVlan (CISCO-VLAN-MEMBERSHIP-MIB ).

For CatOS: 1 - pull back ipAdEntIfIndex. This shows the ifIndex to IP interface mappings. 2) - pull back ifName. This will show you the ifIndex to module/port mappings. The output should be ifName. = 3) - pull back vlanPortVlan. The output should be like "vlanPortVlan.mod#.port# = VLAN #". Use the mod # / port # found from step 2 to find the VLAN for your ip interface.

For IOS: 1) pull back ipAdEntIfIndex. Shows ifIndex to IP interface mappings. 2) pull back vmVlan. This output should be like "vmVlan.ifIndex# = VLAN #". Use the ifIndex for your IP interface(s) found in step 1 to find the VLAN.

And these are writable, too - if you have READ-WRITE enabled. Example, change a VLAN in CatOS: "snmpset 10.10.10.1 commStringHere vlanPortVlan.5.8 int 6" - will make module 5 / port 8 go into VLAN # 6.

Example, change a VLAN in IOS: "snmpset 10.10.10.10 commStringHere vmVlan.100 int 6" - will put whatever port (or VLAN!!!) that maps to ifIndex # 100 into VLAN # 6.

Use extreme caution while setting VLAN's this way! Use the wrong ifIndex and you could change a lot more than one port's VLAN : )

Reply to
karateD

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.