com.ibm.di.protocols
Class SNMP
java.lang.Object
com.ibm.di.protocols.SNMP
public class SNMP
- extends Object
Constructor Summary |
SNMP()
|
Method Summary |
static com.tivoli.snmp.data.BadValue |
createBadValue()
convenience methods to create SNMP object types |
static com.tivoli.snmp.data.Boolean |
createBoolean(boolean value)
|
static com.tivoli.snmp.data.Counter |
createCounter(long value)
|
static com.tivoli.snmp.data.Counter64 |
createCounter64(long value)
|
static com.tivoli.snmp.data.FixedLengthOctetString |
createFixedLengthOctetString(String value)
|
static com.tivoli.snmp.data.FullCounter64 |
createFullCounter64(BigInteger value)
|
static com.tivoli.snmp.data.Gauge |
createGauge(long value)
|
static com.tivoli.snmp.data.IPAddress |
createIPAddress(String value)
|
static com.tivoli.snmp.data.NoChange |
createNoChange()
|
static com.tivoli.snmp.data.NoSuchInstance |
createNoSuchInstance()
|
static com.tivoli.snmp.data.NoSuchObject |
createNoSuchObject()
|
static com.tivoli.snmp.data.NotSupported |
createNotSupported()
|
static com.tivoli.snmp.data.Null |
createNull()
|
static com.tivoli.snmp.data.OctetString |
createOctetString(String value)
|
static com.tivoli.snmp.data.OID |
createOID(String value)
|
static com.tivoli.snmp.data.Opaque |
createOpaque(byte[] value)
|
static com.tivoli.snmp.data.TimeTicks |
createTimeTicks(long value)
|
static void |
sendTrap(String host,
int port,
String oid,
Object value)
|
static void |
sendTrap(String host,
int port,
String community,
String enterprise,
int genericTrap,
int specificTrap,
String oid,
Object value)
|
static void |
sendTrap(String agentIP,
String host,
int port,
String community,
String enterprise,
int genericTrap,
int specificTrap,
String oid,
Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SNMP_ENTERPRISE
public static String SNMP_ENTERPRISE
SNMP_COMMUNITY
public static String SNMP_COMMUNITY
timeout
public static int timeout
retries
public static int retries
SNMP
public SNMP()
sendTrap
public static void sendTrap(String host,
int port,
String oid,
Object value)
throws Exception
- Throws:
Exception
sendTrap
public static void sendTrap(String host,
int port,
String community,
String enterprise,
int genericTrap,
int specificTrap,
String oid,
Object value)
throws Exception
- Throws:
Exception
sendTrap
public static void sendTrap(String agentIP,
String host,
int port,
String community,
String enterprise,
int genericTrap,
int specificTrap,
String oid,
Object value)
throws Exception
- Throws:
Exception
createBadValue
public static com.tivoli.snmp.data.BadValue createBadValue()
- convenience methods to create SNMP object types
createBoolean
public static com.tivoli.snmp.data.Boolean createBoolean(boolean value)
createCounter
public static com.tivoli.snmp.data.Counter createCounter(long value)
createCounter64
public static com.tivoli.snmp.data.Counter64 createCounter64(long value)
createFixedLengthOctetString
public static com.tivoli.snmp.data.FixedLengthOctetString createFixedLengthOctetString(String value)
createFullCounter64
public static com.tivoli.snmp.data.FullCounter64 createFullCounter64(BigInteger value)
createGauge
public static com.tivoli.snmp.data.Gauge createGauge(long value)
createIPAddress
public static com.tivoli.snmp.data.IPAddress createIPAddress(String value)
createNoChange
public static com.tivoli.snmp.data.NoChange createNoChange()
createNoSuchInstance
public static com.tivoli.snmp.data.NoSuchInstance createNoSuchInstance()
createNoSuchObject
public static com.tivoli.snmp.data.NoSuchObject createNoSuchObject()
createNotSupported
public static com.tivoli.snmp.data.NotSupported createNotSupported()
createNull
public static com.tivoli.snmp.data.Null createNull()
createOctetString
public static com.tivoli.snmp.data.OctetString createOctetString(String value)
createOID
public static com.tivoli.snmp.data.OID createOID(String value)
createOpaque
public static com.tivoli.snmp.data.Opaque createOpaque(byte[] value)
createTimeTicks
public static com.tivoli.snmp.data.TimeTicks createTimeTicks(long value)