Had been using ENFSNMPM previously with no problem. Today the ENFSNMPM startup fails with RC=0004. The only indication of a problem are the following messages in the CAW1LOG sysout:
Product: Common Components and Services for z/OS
Release: ANY
This is generally a problem trying to resolve the hostname of the system.
Basically, the current level of the code is issuing a standard gethostname() function and it is returning the HOSTNAME of the system, NODEA. This is then passed on a getaddrinfo() request, which results in a DNS call. Based on the failure, there was a DNS problem resolving the name.
Many times we see this simply due to a timing issue where ENFSNMPM starts prior to your TCP/IP network or RESOLVER task fully being initialized. If you are able to restart the ENFSNMPM task to get past the problem than this is the likely concern. Try to delay the start of ENFSNMPM until TCP/IP and RESOLVER are fully initialized.
If it is not a timing problem, check with your network administrator to verify the system hostname, and that it is properly defined to DNS.
Take a look at your TCP/IP task to see whether it is picking up it's Host name from the TCPIP.DATA file. Look for the following message:
EZZ0162I HOST NAME FOR tcpstackname IS host_name
This message displays the host name for a TCP/IP stack. The host name is determined in the following way: