Package org.opennms.netmgt.snmp.snmp4j
Class Snmp4JUtils
- java.lang.Object
-
- org.opennms.netmgt.snmp.snmp4j.Snmp4JUtils
-
public class Snmp4JUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description Snmp4JUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
convertPduToBytes(InetAddress address, int port, String community, org.snmp4j.PDU pdu)
-
-
-
Method Detail
-
convertPduToBytes
public static byte[] convertPduToBytes(InetAddress address, int port, String community, org.snmp4j.PDU pdu) throws 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:
Exception
-
-