SNMP request fail with error “Could not contact SNMP service on host <DD_hostname>: Unknown host (<DD_hostname>)”

           

   Article Number:     532272                                   Article Version: 2     Article Type:    Break Fix 
   

 


Product:

 

Data Protection Advisor 6.5

 

Issue:

 

 

The SNMP status request consistently fails on one Data Domain system and generates the following error in Gui at the History of the request:   
        
    ‘Could not contact SNMP service on host <DD_hostname>: Unknown host (<DD_hostname>)’   
        
    The data collection request is configured to use a remote agent running AIX   
        
    From dpaagent logs in debug low the error shows as following:   
        
    DBG1  6881490.2314     20190408:044410        agent.manager - agentManagerRunRequest(): Running request datadomain:status for target <DD_hostname>     
       >>     
            
      DBG1  6881490.2314     20190408:044412      com.base.runcmd - csystemreadline(): returning line:     
      getaddrinfo: <DD_hostname> Hostname and service name not provided or found     
      WARN  6881490.2314     20190408:044412     com.agent.worker - runAgentWorkerRequest(): Received unexpected output from worker: getaddrinfo: <DD_hostname> Hostname and service name not provided or found     
      DBG1  6881490.2314     20190408:044412             com.snmp - aapiSNMPOpen(): Failed to open SNMP session for host '<DD_hostname>', errno 0, snmp_error 'Unknown host (<DD_hostname>)'     
       >>>     
            
      DBG1  6881490.2314     20190408:044413       agent.reporter - agentReportSend(): successfully sent report to server https://xx.xx.xx.xx:9002/dpa-api/agent/7c905818-c22a-4a3d-a7ab-5d2e7b2b90ae/report     
      DBG1  6881490.2314     20190408:044413       agent.reqqueue - aapiReturnAgentRequest(): Request datadomain:status for target <DD_hostname>: will next run at 1554734653
   
        
    From dpaagent.log modtest:   
        
    DBG1  3539504.1        20190405:123535             com.snmp - aapiSNMPOpen(): Failed to open SNMP session for host &apos;<DD_hostname>&apos;, errno 0, snmp_error &apos;Unknown host (<DD_hostname>)&apos;     
      DBG1  3539504.1        20190405:123535         agent.mod.dd - status_snmp(): aapiSNMPOpen() failed
   
   
     
                                                           

 

 

Cause:

 

 

There was no entry for the Data Domain host name in the hosts file of the agent   
     
                                                           

 

 

Resolution:

 

 

Added the IP address and hostname for the Data Domain system as new entry in the hosts file on the agent host     
        
    Refer https://docs.microsoft.com/en-us/windows/desktop/snmp/host-names-and-ip-addresses   
        
    “SNMP uses the Windows Internet Naming Service (WINS) for host name resolution. WINS makes it possible to map NetBIOS names, or machine names, to IP addresses on TCP/IP networks. If the computer cannot access a WINS server, the SNMP service uses the host file to resolve host names to IP addresses.   
        
    The SNMP service supports the use of both host names and IP addresses. However, when you have a choice between using host names or IP addresses to identify network locations, your SNMP management applications should use host names. If you use host names, add all host name and IP address mappings of the participating systems to the host file.”   
        
        
    Contact DPA technical support team for more details