/** * <p>getDot1dStpPortEnable</p> * * @return a int. */ public Integer getDot1dStpPortEnable() { return getValue(DOT1D_STP_PORT_ENABLE).toInt(); }
/** * <p>getIpNetToMediatype</p> * * @return a int. */ public Integer getIpNetToMediatype(){ SnmpValue value = getValue(IPNETTOMEDIA_TABLE_TYPE); if (value == null) { return null; } return value.toInt(); }
/** * <p>getBaseBridgePort</p> * * @return a Integer. */ public Integer getBaseBridgePort() { return getValue(DOT1D_BASE_PORT).toInt(); }
private String getEntPhysicalClass() { SnmpValue v = getValue(entPhysicalClass); if (v != null) { int index = v.toInt(); if (index < CLASSES.length) { return CLASSES[index]; } } return CLASSES[2]; // Assuming unknown to avoid ArrayIndexOutOfBoundsException } }
/** * <p>getCdpCacheAddressType</p> * * @return a int. */ public Integer getCdpCacheAddressType() { return getValue(CDP_CACHE_ADDRESS_TYPE).toInt(); }
public Integer getIfIndex() { final SnmpValue value = getValue(IP_ADDRESS_IF_INDEX); return value.toInt(); }
public Integer getIfIndex() { SnmpValue value = getValue(IP_ADDR_IF_INDEX); return value == null ? null : value.toInt(); }
private Integer getIfAdminStatus() { final SnmpValue value = getValue(IF_ADMIN_STATUS); return value == null ? null : value.toInt(); }
/** * <p>getDot1dStpPort</p> * * @return a int. */ public Integer getDot1dStpPort() { return getValue(DOT1D_STP_PORT).toInt(); }
/** * <p>getDot1dStpPortState</p> * * @return a int. */ public Integer getDot1dStpPortState() { return getValue(DOT1D_STP_PORT_STATE).toInt(); }
public Integer getIpNetToMediaIfIndex() { SnmpValue value = getValue(IPNETTOMEDIA_TABLE_IFINDEX); if (value == null) { return null; } return value.toInt(); }
/** * <p>getBaseBridgePortIfindex</p> * * @return a Integer. */ public Integer getBaseBridgePortIfindex() { return getValue(DOT1D_BASE_IFINDEX).toInt(); }
private Integer getIfOperStatus() { final SnmpValue value = getValue(IF_OPER_STATUS); return value == null ? null : value.toInt(); }
public Integer getDot1dStpPortPriority() { return getValue(DOT1D_STP_PORT_PRIORITY).toInt(); } /**
public Integer getInt32(String key) { SnmpValue val = getValue(key); return (val == null ? null : Integer.valueOf(val.toInt())); }
/** * <p>getDot1dTpFdbPort</p> * * @return a int. */ public Integer getDot1dTpFdbPort() { if (getValue(DOT1D_TP_FDB_PORT) != null) return getValue(DOT1D_TP_FDB_PORT).toInt(); return null; }
/** * <p> * getDot1qTpFdbPort * </p> * * @return a int. */ public Integer getDot1qTpFdbPort() { if (getValue(DOT1Q_TP_FDB_PORT) != null) return getValue(DOT1Q_TP_FDB_PORT).toInt(); return null; }
/** * <p> * getDot1qTpFdbStatus * </p> * * @return a int. */ public Integer getDot1qTpFdbStatus() { if (getValue(DOT1Q_TP_FDB_STATUS) != null) return getValue(DOT1Q_TP_FDB_STATUS).toInt(); return null; }
/** * <p>getDot1dTpFdbStatus</p> * * @return a int. */ public Integer getDot1dTpFdbStatus() { if (getValue(DOT1D_TP_FDB_STATUS) != null) return getValue(DOT1D_TP_FDB_STATUS).toInt(); return null; }
private void cleanupCurrentEntry(CiscoPingEntry pingEntry, InetAddress proxyIpAddr, SnmpAgentConfig agentConfig) { pingEntry.setCiscoPingEntryStatus(ROWSTATUS_DESTROY); SnmpValue[] destroyValues = SnmpUtils.set(agentConfig, pingEntry.generateRowStatusOids(), pingEntry.generateRowStatusValues()); if (destroyValues == null) LOG.warn("SNMP SET failed to delete just-used ciscoPingEntry on proxy interface {} with instance ID {}", proxyIpAddr, pingEntry.getCiscoPingSerialNumber()); if (destroyValues[0].toInt() != ROWSTATUS_DESTROY) LOG.warn("SNMP SET to delete just-used ciscoPingEntry indicated row not deleted on proxy interface {} with instance ID {}", proxyIpAddr, pingEntry.getCiscoPingSerialNumber()); }