Package org.opennms.netmgt.snmp.snmp4j
Class Snmp4JUtils
- java.lang.Object
-
- org.opennms.netmgt.snmp.snmp4j.Snmp4JUtils
-
public class Snmp4JUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Snmp4JUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
convertPduToBytes(java.net.InetAddress address, int port, java.lang.String community, org.snmp4j.PDU pdu)
-
-
-
Method Detail
-
convertPduToBytes
public static byte[] convertPduToBytes(java.net.InetAddress address, int port, java.lang.String community, org.snmp4j.PDU pdu) throws java.lang.Exception
- Parameters:
address
-port
-community
-pdu
-- Returns:
- Byte array representing the
PDU
in either SNMPv1 or SNMPv2 format, depending on the type of thePDU
object. - Throws:
java.lang.Exception
-
-