Technote (troubleshooting)
Problem(Abstract)
itnm_status takes a long time to return when the DNS server not available.
Diagnosing the problem
Alter the itnm_status script debug by changing '#!/bin/sh' to '#!/bin/sh -x' from $NCHOME/precision/bin/itnm_status.
The following trace will show on the screen:
....
| + comp_host=<ConfiguredHostName> + '[' -z <ConfiguredHostName> ']' + COMPONENT_HOST=<ConfiguredHostName> + '[' -z <ConfiguredHostName>']' + '[' <ConfiguredHostName>'!=' localhost ']' ++ hostname + this_host=<ConfiguredHostName> ++ nslookup <ConfiguredHostName> .... Note the delay on '++ nslookup <ConfiguredHostName>'. |
Resolving the problem
Make a backup of the script and then alter the following line:
From
this_ip=`nslookup $this_host | tail -2 | grep Address: | awk '{print $2}'`
To
this_ip=`nslookup -timeout=1 retry=0 $this_host | tail -2 | grep Address: |
awk '{print $2}'`
If the ObjectServer and ITNM installed on the same server, a fixed IP address could be used as below, for the script will be used to check status for nco and ncp processes.
Change from
this_ip=`nslookup $this_host | tail -2 | grep Address: | awk '{print $2}'`
to
this_ip="<fixed_IP_address>"
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.