org.rhq.plugins.www.snmp
Class SNMPClient

java.lang.Object
  extended by org.rhq.plugins.www.snmp.SNMPClient

public class SNMPClient
extends Object


Nested Class Summary
static class SNMPClient.SNMPVersion
           
 
Field Summary
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 Summary
SNMPClient()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HOST

public static final String DEFAULT_HOST
See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_COMMUNITY

public static final String DEFAULT_COMMUNITY
See Also:
Constant Field Values

DEFAULT_USERNAME

public static final String DEFAULT_USERNAME
See Also:
Constant Field Values

DEFAULT_PASSWORD

public static final String DEFAULT_PASSWORD
See Also:
Constant Field Values

DEFAULT_VERSION

public static final SNMPClient.SNMPVersion DEFAULT_VERSION

VALID_AUTHTYPES

public static final String[] VALID_AUTHTYPES
Constructor Detail

SNMPClient

public SNMPClient()
Method Detail

getOID

public static String getOID(String mibName)

init

public boolean init(Properties props)
             throws SNMPException
Throws:
SNMPException

close

public void close()

getSession

public SNMPSession getSession(String host,
                              Integer port,
                              String community,
                              SNMPClient.SNMPVersion version,
                              long timeout,
                              int retries)
                       throws SNMPException
Throws:
SNMPException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.