Class IfTableEntry
- java.lang.Object
-
- org.opennms.netmgt.snmp.AbstractSnmpStore
-
- org.opennms.netmgt.snmp.SnmpStore
-
- org.opennms.netmgt.provision.service.snmp.SnmpTableEntry
-
- org.opennms.netmgt.provision.service.snmp.IfTableEntry
-
public final class IfTableEntry extends SnmpTableEntry
This object contains a list of all the elements defined in the MIB-II interface table. An instance object is initialized by calling the constructor and passing in a variable list from an SNMP PDU. The actual data can be recovered via the base class map interface.
Once an instance is created and its data set either via the constructor or from the update method, the actual elements can be retrieved using the instance names. The names include: ifIndex,ifDescr, ifSpeed,etc al. The information can also be accessed by using the complete object identifier for the entry.
For more information on the individual fields, and to find out their respective object identifiers see RFC1213 from the IETF.
- Author:
- Sowmya , Weave , Jon Whetzel
- See Also:
- RFC1213
-
-
Field Summary
Fields Modifier and Type Field Description static String
IF_ADMIN_STATUS
ConstantIF_ADMIN_STATUS="ifAdminStatus"
static String
IF_DESCR
ConstantIF_DESCR="ifDescr"
static String
IF_IN_DISCARDS
ConstantIF_IN_DISCARDS="ifInDiscards"
static String
IF_IN_ERRORS
ConstantIF_IN_ERRORS="ifInErrors"
static String
IF_IN_NUCAST
ConstantIF_IN_NUCAST="ifInNUcastPkts"
static String
IF_IN_OCTETS
ConstantIF_IN_OCTETS="ifInOctets"
static String
IF_IN_UCAST
ConstantIF_IN_UCAST="ifInUcastPkts"
static String
IF_IN_UKNOWN_PROTOS
ConstantIF_IN_UKNOWN_PROTOS="ifInUnknownProtos"
static String
IF_INDEX
ConstantIF_INDEX="AbstractSnmpStore.IFINDEX"
static String
IF_LAST_CHANGE
ConstantIF_LAST_CHANGE="ifLastChange"
static String
IF_MTU
ConstantIF_MTU="ifMtu"
static String
IF_OPER_STATUS
ConstantIF_OPER_STATUS="ifOperStatus"
static String
IF_OUT_DISCARDS
ConstantIF_OUT_DISCARDS="ifOutDiscards"
static String
IF_OUT_ERRORS
ConstantIF_OUT_ERRORS="ifOutErrors"
static String
IF_OUT_NUCAST
ConstantIF_OUT_NUCAST="ifOutNUcastPkts"
static String
IF_OUT_OCTETS
ConstantIF_OUT_OCTETS="ifOutOctets"
static String
IF_OUT_QLEN
ConstantIF_OUT_QLEN="ifOutQLen"
static String
IF_OUT_UCAST
ConstantIF_OUT_UCAST="ifOutUcastPkts"
static String
IF_PHYS_ADDR
ConstantIF_PHYS_ADDR="ifPhysAddr"
static String
IF_SPECIFIC
ConstantIF_SPECIFIC="ifSpecific"
static String
IF_SPEED
ConstantIF_SPEED="ifSpeed"
static String
IF_TYPE
ConstantIF_TYPE="ifType"
static NamedSnmpVar[]
ms_elemList
Constantms_elemList
static String
TABLE_OID
The TABLE_OID is the object identifier that represents the root of the interface table in the MIB forest.-
Fields inherited from class org.opennms.netmgt.snmp.AbstractSnmpStore
IFINDEX
-
-
Constructor Summary
Constructors Constructor Description IfTableEntry()
The class constructor used to initialize the object to its initial state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getIfAdminStatus()
getIfAdminStatusString
getIfDescr()
getIfDescrInteger
getIfOperStatus()
getIfOperStatusLong
getIfSpeed()
getIfSpeedInteger
getIfType()
getIfTypeString
getPhysAddr()
getPhysAddr-
Methods inherited from class org.opennms.netmgt.snmp.SnmpStore
getElementListSize, getElements, storeResult
-
Methods inherited from class org.opennms.netmgt.snmp.AbstractSnmpStore
getDisplayString, getHexString, getIfIndex, getInt32, getIPAddress, getObjectID, getUInt32, getValue, isEmpty, putIfIndex, putValue, size
-
-
-
-
Field Detail
-
IF_INDEX
public static final String IF_INDEX
ConstantIF_INDEX="AbstractSnmpStore.IFINDEX"
- See Also:
- Constant Field Values
-
IF_DESCR
public static final String IF_DESCR
ConstantIF_DESCR="ifDescr"
- See Also:
- Constant Field Values
-
IF_TYPE
public static final String IF_TYPE
ConstantIF_TYPE="ifType"
- See Also:
- Constant Field Values
-
IF_MTU
public static final String IF_MTU
ConstantIF_MTU="ifMtu"
- See Also:
- Constant Field Values
-
IF_SPEED
public static final String IF_SPEED
ConstantIF_SPEED="ifSpeed"
- See Also:
- Constant Field Values
-
IF_PHYS_ADDR
public static final String IF_PHYS_ADDR
ConstantIF_PHYS_ADDR="ifPhysAddr"
- See Also:
- Constant Field Values
-
IF_ADMIN_STATUS
public static final String IF_ADMIN_STATUS
ConstantIF_ADMIN_STATUS="ifAdminStatus"
- See Also:
- Constant Field Values
-
IF_OPER_STATUS
public static final String IF_OPER_STATUS
ConstantIF_OPER_STATUS="ifOperStatus"
- See Also:
- Constant Field Values
-
IF_LAST_CHANGE
public static final String IF_LAST_CHANGE
ConstantIF_LAST_CHANGE="ifLastChange"
- See Also:
- Constant Field Values
-
IF_IN_OCTETS
public static final String IF_IN_OCTETS
ConstantIF_IN_OCTETS="ifInOctets"
- See Also:
- Constant Field Values
-
IF_IN_UCAST
public static final String IF_IN_UCAST
ConstantIF_IN_UCAST="ifInUcastPkts"
- See Also:
- Constant Field Values
-
IF_IN_NUCAST
public static final String IF_IN_NUCAST
ConstantIF_IN_NUCAST="ifInNUcastPkts"
- See Also:
- Constant Field Values
-
IF_IN_DISCARDS
public static final String IF_IN_DISCARDS
ConstantIF_IN_DISCARDS="ifInDiscards"
- See Also:
- Constant Field Values
-
IF_IN_ERRORS
public static final String IF_IN_ERRORS
ConstantIF_IN_ERRORS="ifInErrors"
- See Also:
- Constant Field Values
-
IF_IN_UKNOWN_PROTOS
public static final String IF_IN_UKNOWN_PROTOS
ConstantIF_IN_UKNOWN_PROTOS="ifInUnknownProtos"
- See Also:
- Constant Field Values
-
IF_OUT_OCTETS
public static final String IF_OUT_OCTETS
ConstantIF_OUT_OCTETS="ifOutOctets"
- See Also:
- Constant Field Values
-
IF_OUT_UCAST
public static final String IF_OUT_UCAST
ConstantIF_OUT_UCAST="ifOutUcastPkts"
- See Also:
- Constant Field Values
-
IF_OUT_NUCAST
public static final String IF_OUT_NUCAST
ConstantIF_OUT_NUCAST="ifOutNUcastPkts"
- See Also:
- Constant Field Values
-
IF_OUT_DISCARDS
public static final String IF_OUT_DISCARDS
ConstantIF_OUT_DISCARDS="ifOutDiscards"
- See Also:
- Constant Field Values
-
IF_OUT_ERRORS
public static final String IF_OUT_ERRORS
ConstantIF_OUT_ERRORS="ifOutErrors"
- See Also:
- Constant Field Values
-
IF_OUT_QLEN
public static final String IF_OUT_QLEN
ConstantIF_OUT_QLEN="ifOutQLen"
- See Also:
- Constant Field Values
-
IF_SPECIFIC
public static final String IF_SPECIFIC
ConstantIF_SPECIFIC="ifSpecific"
- See Also:
- Constant Field Values
-
ms_elemList
public static NamedSnmpVar[] ms_elemList
Constantms_elemList
-
TABLE_OID
public static final String TABLE_OID
The TABLE_OID is the object identifier that represents the root of the interface table in the MIB forest.
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IfTableEntry
public IfTableEntry()
The class constructor used to initialize the object to its initial state. Although the object's attributes and data can be changed after its created, this constructor will initialize all the variables as per their named varbind in the passed array. This array should have been collected from an SnmpPduRequest that was received from a remote host.
-
-