Class Snmp4JUtils


  • public class Snmp4JUtils
    extends Object
    • Constructor Detail

      • Snmp4JUtils

        public Snmp4JUtils()
    • 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 the PDU object.
        Throws:
        Exception