public class SNMPClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SNMPClient.SNMPVersion |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_COMMUNITY |
static String |
DEFAULT_HOST |
static String |
DEFAULT_PASSWORD |
static int |
DEFAULT_PORT |
static String |
DEFAULT_USERNAME |
static SNMPClient.SNMPVersion |
DEFAULT_VERSION |
static String[] |
VALID_AUTHTYPES |
| Constructor and Description |
|---|
SNMPClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static String |
getOID(String mibName) |
SNMPSession |
getSession(String host,
Integer port,
String community,
SNMPClient.SNMPVersion version,
long timeout,
int retries) |
boolean |
init(Properties props) |
public static final String DEFAULT_HOST
public static final int DEFAULT_PORT
public static final String DEFAULT_COMMUNITY
public static final String DEFAULT_USERNAME
public static final String DEFAULT_PASSWORD
public static final SNMPClient.SNMPVersion DEFAULT_VERSION
public static final String[] VALID_AUTHTYPES
public boolean init(Properties props) throws SNMPException
SNMPExceptionpublic void close()
public SNMPSession getSession(String host, Integer port, String community, SNMPClient.SNMPVersion version, long timeout, int retries) throws SNMPException
SNMPExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.