org.opennms.netmgt.snmp.snmp4j
Class SnmpHelpers
java.lang.Object
org.opennms.netmgt.snmp.snmp4j.SnmpHelpers
public class SnmpHelpers
- extends java.lang.Object
- Author:
- david
|
Method Summary |
static org.snmp4j.PDU |
createPDU()
Creates an SNMP4J PDU using the OpenNMS default version constant |
static org.snmp4j.PDU |
createPDU(int version)
Creates an SNMP4J PDU based on the SNMP4J version constants. |
static org.snmp4j.Snmp |
createSnmpSession()
|
static org.snmp4j.Snmp |
createSnmpSession(Snmp4JAgentConfig agentConfig)
|
static java.lang.String |
versionString(int version)
Returns a string representation of the SNMP4J version constants |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnmpHelpers
public SnmpHelpers()
createPDU
public static org.snmp4j.PDU createPDU()
- Creates an SNMP4J PDU using the OpenNMS default version constant
- Returns:
createPDU
public static org.snmp4j.PDU createPDU(int version)
- Creates an SNMP4J PDU based on the SNMP4J version constants.
A v3 request requires a ScopedPDU.
- Parameters:
version -
- Returns:
createSnmpSession
public static org.snmp4j.Snmp createSnmpSession()
throws java.io.IOException
- Throws:
java.io.IOException
createSnmpSession
public static org.snmp4j.Snmp createSnmpSession(Snmp4JAgentConfig agentConfig)
throws java.io.IOException
- Throws:
java.io.IOException
versionString
public static java.lang.String versionString(int version)
- Returns a string representation of the SNMP4J version constants
- Parameters:
version -
- Returns:
Copyright © 2007. All Rights Reserved.