Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Snmp4JUtils

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