Jump to content


Photo

SNMP MIB that returns interface data

SNMP NG FIREWALL

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 David Larena

David Larena
  • Members
  • 2 posts

Posted 17 January 2013 - 04:45 AM

I would like to see some changes and additions to the data returned by the SNMP agent.

The SNMP MIB that returns interface data expects the following fields to be populated.

snmp_info
".1.3.6.1.2.1",# baseOID
"2.2.1.1", # ifIndex
"2.2.1.2", # ifDescr
"2.2.1.3", # ifType
"31.1.1.1.15", # ifHighSpeed
"2.2.1.8", # ifOperStatus
"31.1.1.1.6", # ifHCInOctets
"31.1.1.1.7", # ifHCInUcastPkts
"31.1.1.1.8", # ifHCInMulticastPkts
"31.1.1.1.9", # ifHCInBroadcastPkts
"2.2.1.13", # ifInDiscards
"2.2.1.14", # ifInErrors
"31.1.1.1.10", # ifHCOutOctets
"31.1.1.1.11", # ifHCOutUcastPkts
"31.1.1.1.12", # ifHCOutMulticastPkts
"31.1.1.1.13", # ifHCOutBroadcastPkts
"2.2.1.19", # ifOutDiscards
"2.2.1.20", # ifOutErrors
"2.2.1.21", # ifOutQLen
"31.1.1.1.18", # ifAlias
"2.2.1.6", # ifPhysAddress
] )

For a specific VLAN Interface I get the following information from an ACTIVE box in an HA cluster;

IF-MIB::ifIndex.8258 = INTEGER: 8258
IF-MIB::ifDescr.8258 = STRING: port2.45:CAN1
IF-MIB::ifType.8258 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifHighSpeed.8258 = Gauge32: 1000
IF-MIB::ifOperStatus.8258 = INTEGER: up(1)
IF-MIB::ifHCInOctets.8258 = Counter64: 714654633
IF-MIB::ifHCInUcastPkts.8258 = Counter64: 1966227
IF-MIB::ifHCInMulticastPkts.8258 = Counter64: 0
IF-MIB::ifHCInBroadcastPkts.8258 = Counter64: 0
IF-MIB::ifInDiscards.8258 = Counter32: 0
IF-MIB::ifInErrors.8258 = Counter32: 0
IF-MIB::ifHCOutOctets.8258 = Counter64: 584560816
IF-MIB::ifHCOutUcastPkts.8258 = Counter64: 1411065
IF-MIB::ifHCOutMulticastPkts.8258 = Counter64: 0
IF-MIB::ifHCOutBroadcastPkts.8258 = Counter64: 0
IF-MIB::ifOutDiscards.8258 = Counter32: 0
IF-MIB::ifOutErrors.8258 = Counter32: 0
IF-MIB::ifOutQLen.8258 = Gauge32: 0
IF-MIB::ifAlias.8258 = STRING:
IF-MIB::ifPhysAddress.8258 = STRING: 0:90:b:22:d0:57

For a specific VLAN Interface I get the following information from a STANDBY box in an HA cluster; (note the ifDescr change)

IF-MIB::ifIndex.8258 = INTEGER: 8258
IF-MIB::ifDescr.8258 = STRING: port2.45
IF-MIB::ifType.8258 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifHighSpeed.8258 = Gauge32: 1000
IF-MIB::ifOperStatus.8258 = INTEGER: up(1)
IF-MIB::ifHCInOctets.8258 = Counter64: 61421453
IF-MIB::ifHCInUcastPkts.8258 = Counter64: 261573
IF-MIB::ifHCInMulticastPkts.8258 = Counter64: 0
IF-MIB::ifHCInBroadcastPkts.8258 = Counter64: 0
IF-MIB::ifInDiscards.8258 = Counter32: 0
IF-MIB::ifInErrors.8258 = Counter32: 0
IF-MIB::ifHCOutOctets.8258 = Counter64: 60676785
IF-MIB::ifHCOutUcastPkts.8258 = Counter64: 129019
IF-MIB::ifHCOutMulticastPkts.8258 = Counter64: 0
IF-MIB::ifHCOutBroadcastPkts.8258 = Counter64: 0
IF-MIB::ifOutDiscards.8258 = Counter32: 0
IF-MIB::ifOutErrors.8258 = Counter32: 0
IF-MIB::ifOutQLen.8258 = Gauge32: 0
IF-MIB::ifAlias.8258 = STRING:
IF-MIB::ifPhysAddress.8258 = STRING: 0:90:b:22:d1:bc

For a specific PHYSICAL Interface I get the following information from an ACTIVE box in a HA cluster;

IF-MIB::ifIndex.62558 = INTEGER: 62558
IF-MIB::ifDescr.62558 = STRING: Intel Corporation 82574L Gigabit Network Connection
IF-MIB::ifType.62558 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifHighSpeed.62558 = Gauge32: 1000
IF-MIB::ifOperStatus.62558 = INTEGER: up(1)
IF-MIB::ifHCInOctets.62558 = Counter64: 1449086099076
IF-MIB::ifHCInUcastPkts.62558 = Counter64: 1674721259
IF-MIB::ifHCInMulticastPkts.62558 = Counter64: 0
IF-MIB::ifHCInBroadcastPkts.62558 = Counter64: 0
IF-MIB::ifInDiscards.62558 = Counter32: 0
IF-MIB::ifInErrors.62558 = Counter32: 10
IF-MIB::ifHCOutOctets.62558 = Counter64: 1618136107720
IF-MIB::ifHCOutUcastPkts.62558 = Counter64: 1723256877
IF-MIB::ifHCOutMulticastPkts.62558 = Counter64: 0
IF-MIB::ifHCOutBroadcastPkts.62558 = Counter64: 0
IF-MIB::ifOutDiscards.62558 = Counter32: 0
IF-MIB::ifOutErrors.62558 = Counter32: 0
IF-MIB::ifOutQLen.62558 = Gauge32: 0
IF-MIB::ifAlias.62558 = STRING:
IF-MIB::ifPhysAddress.62558 = STRING: 0:90:b:22:d0:57

For a specific PHYSICAL Interface I get the following information from a STANDBY box in a HA cluster; (note the ifDescr did not change)

IF-MIB::ifIndex.62558 = INTEGER: 62558
IF-MIB::ifDescr.62558 = STRING: Intel Corporation 82574L Gigabit Network Connection
IF-MIB::ifType.62558 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifHighSpeed.62558 = Gauge32: 1000
IF-MIB::ifOperStatus.62558 = INTEGER: up(1)
IF-MIB::ifHCInOctets.62558 = Counter64: 25740419031
IF-MIB::ifHCInUcastPkts.62558 = Counter64: 45897343
IF-MIB::ifHCInMulticastPkts.62558 = Counter64: 0
IF-MIB::ifHCInBroadcastPkts.62558 = Counter64: 0
IF-MIB::ifInDiscards.62558 = Counter32: 0
IF-MIB::ifInErrors.62558 = Counter32: 0
IF-MIB::ifHCOutOctets.62558 = Counter64: 31975160772
IF-MIB::ifHCOutUcastPkts.62558 = Counter64: 40753236
IF-MIB::ifHCOutMulticastPkts.62558 = Counter64: 0
IF-MIB::ifHCOutBroadcastPkts.62558 = Counter64: 0
IF-MIB::ifOutDiscards.62558 = Counter32: 0
IF-MIB::ifOutErrors.62558 = Counter32: 0
IF-MIB::ifOutQLen.62558 = Gauge32: 0
IF-MIB::ifAlias.62558 = STRING:
IF-MIB::ifPhysAddress.62558 = STRING: 0:90:b:22:d1:bc

My requests are;
  • Do not change description (ifDescr) between active and standby interfaces.
  • Change the description (ifDescr) on Physical interfaces to something more accurate for the port, like "port6".
  • For VLAN interfaces populate the alias (ifAlias) with VLAN description or VLAN number, do not change value between active/standby hosts.
  • For Physical interfaces populate the alias (ifAlias) with Port number, do not change value between active/standby hosts.
In a longer term approach, allow me to set a port description for physical interfaces just like I am able to set a vlan description for vlan interfaces. Use that in the SNMP output.

The use of ifDescr/ifAlias could be reversed to be a more accurate representation of standard SNMP output.