Interface SnmpProfileMapper

    • Method Detail

      • getAgentConfigFromProfiles

        java.util.concurrent.CompletableFuture<java.util.Optional<SnmpAgentConfig>> getAgentConfigFromProfiles​(java.net.InetAddress inetAddress,
                                                                                                               java.lang.String location,
                                                                                                               java.lang.String oid)
        Get @SnmpAgentConfig from SNMP profiles.
        Parameters:
        inetAddress - IP address for which agent config need to be retrieved.
        location - location of Ip address.
        oid - OID with which SNMP get needs to be performed.
        Returns:
        snmpAgentConfig, a @SnmpAgentConfig from the matching profile.
      • getAgentConfigFromProfiles

        java.util.concurrent.CompletableFuture<java.util.Optional<SnmpAgentConfig>> getAgentConfigFromProfiles​(java.net.InetAddress inetAddress,
                                                                                                               java.lang.String location)
        Get @SnmpAgentConfig from SNMP profiles.
        Parameters:
        inetAddress - IP address for which agent config need to be retrieved.
        location - location of IP address.
        Returns:
        snmpAgentConfig, a @SnmpAgentConfig from the matching profile.
      • fitProfile

        java.util.concurrent.CompletableFuture<java.util.Optional<SnmpAgentConfig>> fitProfile​(java.lang.String label,
                                                                                               java.net.InetAddress inetAddress,
                                                                                               java.lang.String location,
                                                                                               java.lang.String oid)
        Fit a profile with specified IP address and label. If no label is specified, it will try to find first matching profile.
        Parameters:
        label - label of profile with which SNMP profile will be retrieved.
        inetAddress - IP address that needs fitting.
        location - location of IP address.
        oid - OID with which SNMP get needs to be performed
        Returns:
        snmpAgentConfig, a @SnmpAgentConfig from the matching profile.