Class SnmpAgentConfiguration

java.lang.Object
org.netxms.client.snmp.SnmpAgentConfiguration

public class SnmpAgentConfiguration extends Object
Configuration of additional SNMP agent on a node - alternative SNMP endpoint with its own port, credentials, and optionally IP address, referenced by name from data collection items.
  • Constructor Details

    • SnmpAgentConfiguration

      public SnmpAgentConfiguration()
      Default constructor.
    • SnmpAgentConfiguration

      public SnmpAgentConfiguration(SnmpAgentConfiguration src)
      Copy constructor.
      Parameters:
      src - source object
    • SnmpAgentConfiguration

      public SnmpAgentConfiguration(NXCPMessage msg, long baseId)
      Create agent configuration from data in NXCP message.
      Parameters:
      msg - NXCP message
      baseId - base field ID
  • Method Details

    • fillMessage

      public void fillMessage(NXCPMessage msg, long baseId)
      Fill NXCP message with agent configuration data.
      Parameters:
      msg - NXCP message
      baseId - base field ID
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getAddress

      public InetAddress getAddress()
      Get IP address of the agent. Null means node's primary IP address.
      Returns:
      IP address of the agent or null
    • setAddress

      public void setAddress(InetAddress address)
      Set IP address of the agent. Null means node's primary IP address.
      Parameters:
      address - IP address of the agent or null
    • getPort

      public int getPort()
      Returns:
      the port
    • setPort

      public void setPort(int port)
      Parameters:
      port - the port to set
    • getVersion

      public SnmpVersion getVersion()
      Returns:
      the version
    • setVersion

      public void setVersion(SnmpVersion version)
      Parameters:
      version - the version to set
    • getAuthName

      public String getAuthName()
      Get authentication object (community string for SNMP v1/v2c or user name for SNMP v3).
      Returns:
      the authName
    • setAuthName

      public void setAuthName(String authName)
      Parameters:
      authName - the authName to set
    • getAuthPassword

      public String getAuthPassword()
      Returns:
      the authPassword
    • setAuthPassword

      public void setAuthPassword(String authPassword)
      Parameters:
      authPassword - the authPassword to set
    • getPrivPassword

      public String getPrivPassword()
      Returns:
      the privPassword
    • setPrivPassword

      public void setPrivPassword(String privPassword)
      Parameters:
      privPassword - the privPassword to set
    • getAuthMethod

      public int getAuthMethod()
      Returns:
      the authMethod
    • setAuthMethod

      public void setAuthMethod(int authMethod)
      Parameters:
      authMethod - the authMethod to set
    • getPrivMethod

      public int getPrivMethod()
      Returns:
      the privMethod
    • setPrivMethod

      public void setPrivMethod(int privMethod)
      Parameters:
      privMethod - the privMethod to set
    • getContextName

      public String getContextName()
      Returns:
      the contextName
    • setContextName

      public void setContextName(String contextName)
      Parameters:
      contextName - the contextName to set