|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.netsnmp.NetSNMP
The NetSNMP class contains useful fields and methods. Similar to the java.lang.System class.
Field Summary | |
static SecurityLevel |
authNoPriv
|
static SecurityLevel |
authPriv
|
static HostLister |
defaultHostList
|
static PDU.PDU_COMMAND |
MSG_GET
Command type to construct pdu to be sent to a remote agent to perform a GET operation. |
static PDU.PDU_COMMAND |
MSG_GETBULK
Command type to construct a pdu to be sent to a remote agent to perform a GETBULK operation(i.e. |
static PDU.PDU_COMMAND |
MSG_GETNEXT
Command type to construct a pdu to be sent to a remote agent to perform a GETNEXT operation (i.e. |
static PDU.PDU_COMMAND |
MSG_INFORM
|
static PDU.PDU_COMMAND |
MSG_REPORT
|
static PDU.PDU_COMMAND |
MSG_RESPONSE
|
static PDU.PDU_COMMAND |
MSG_SET
Command type to construct a pdu to be sent to a remote agent to perform a SET operation. |
static PDU.PDU_COMMAND |
MSG_TRAP
|
static PDU.PDU_COMMAND |
MSG_TRAP2
|
static SecurityLevel |
noAuth
|
static SNMPVersion |
SNMPv1
SNMPVersion object to use to request a SNMP Version 1 session |
static SNMPVersion |
SNMPv2c
SNMPVersion object to use to request a SNMP Version 2c session |
static SNMPVersion |
SNMPv3
SNMPVersion object to use to request a SNMP Version 3 session |
static int |
STAT_TIMEOUT
Result code indicating that there was no response from the agent TDB transfer this to a type-safe enum |
static OID |
usmDESPrivOID
|
static OID |
usmMD5AuthOID
|
static OID |
usmNoAuthOID
|
static OID |
usmNoPrivOID
|
static OID |
usmSHAAuthOID
|
Method Summary | |
static void |
doDebugging(boolean flag)
Enables net-snmp stderr debugging |
static void |
enableStderrLogging(boolean flag)
Method enableStderrLogging Enables or disables the stderrlogging Equivalent to the netsnmplib calls snmp_disable_stderrlog and snmp_enable_stderrlog |
static String |
getNetSNMPVersion()
Retrieves the version of net-snmp that the native library is is using. |
static String |
getReleaseVersion()
Retrieves the netsnmpj release name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final SecurityLevel authNoPriv
public static final SecurityLevel authPriv
public static HostLister defaultHostList
public static final PDU.PDU_COMMAND MSG_GET
public static final PDU.PDU_COMMAND MSG_GETBULK
public static final PDU.PDU_COMMAND MSG_GETNEXT
public static final PDU.PDU_COMMAND MSG_INFORM
public static final PDU.PDU_COMMAND MSG_REPORT
public static final PDU.PDU_COMMAND MSG_RESPONSE
public static final PDU.PDU_COMMAND MSG_SET
PDU.PDU(PDU.PDU_COMMAND)
,
snmpd.conf
public static final PDU.PDU_COMMAND MSG_TRAP
public static final PDU.PDU_COMMAND MSG_TRAP2
public static final SecurityLevel noAuth
public static final SNMPVersion SNMPv1
NetSNMPSession sess = new NetSNMPSession() ;
sess.setSNMPVersion
(NetSNMP.SNMPv1) ;
sess.setPeerName("localhost") ;
sess.setCommunityName("public") ;
sess.open() ;
public static final SNMPVersion SNMPv2c
public static final SNMPVersion SNMPv3
public static final int STAT_TIMEOUT
public static final OID usmDESPrivOID
public static final OID usmMD5AuthOID
public static final OID usmNoAuthOID
public static final OID usmNoPrivOID
public static final OID usmSHAAuthOID
Method Detail |
public static void doDebugging(boolean flag)
public static void enableStderrLogging(boolean flag)
flag
- whether or not to enable stderr loggingpublic static String getNetSNMPVersion()
public static String getReleaseVersion()
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |