Direct links to fixes
ITNMIP_Patch_V3.8.0.89_Win32
3.8.0-TIV-ITNMIP-Solaris-REF-FP0007
3.8.0-TIV-ITNMIP-Linux-REF-FP0007
ITNMIP_Patch_V3.8.0.89_AIXPPC32
IBM Tivoli Network Manager IP 3.9.0 Fix Pack 3, 3.9.0-TIV-ITNMIP-FP0003
IBM Tivoli Network Manager IP 3.9.0 Fix Pack 4, 3.9.0-TIV-ITNMIP-FP0004
IBM Tivoli Network Manager IP Edition 3.9.0 Fix Pack 5, 3.9.0-TIV-ITNMIP-FP0005
APAR status
Closed as program error.
Error description
Product: Tivoli Network Manager Version: 3.8, 3.9 Component: itnm_control_functions.sh Symptoms: The pattern in itnm_control_functions.sh allows for multiple process IDs to be matched where one of the processes is less than 5 digits in length. For example, the ps command below returns PID 2480 and 24802 ps -eo "pid args"|grep -v grep |grep "2480"|grep v "\.2480 " 2480 /opt/IBM/ITM/sol286/np/bin/knpagent 24802 /var/itlm/tlmagent.bin
Local fix
ITNM 3.8 Alter line 432 of the $NCHOME/precision/bin/itnm_control_functions.sh file so that it reads ps_line=`${ps_dir}/ps "${ps_pid_info_args}" | grep -v grep | grep -E "^\s*$pid\s+" | grep -v "\.$pid "` ITNM 3.9, the same applies only the line to alter is 439 in the itnm_control_functions.sh script.
Problem summary
**************************************************************** * USERS AFFECTED: * * All ITNM Unix users * **************************************************************** * PROBLEM DESCRIPTION: * * itnm_control_functions.sh which may cause itnm_start, * * itnm_stop and itnm_status to fail if there is a pid in the * * list that is less than 5 digits and the pattern matches * * multiple processes. * * For example, search from the ps command on pid 2480 can have * * multiple returns, like 2480 and 24802. * **************************************************************** * RECOMMENDATION: * * In itnm_control_functions.sh, replace the following line: * * ps_line=`${ps_dir}/ps "${ps_pid_info_args}" | grep -v grep | * * grep "$pid" | grep -v "\.$pid"` * * * * with * * * * ps_line=`${ps_dir}/ps "${ps_pid_info_args}" | grep -v grep | * * grep " $pid " | grep -v "\.$pid"` * * * * * * The following fixpacks will contain the fix: * * | fix pack | 3.8.0-ITNMIP-FP0007 * * | fix pack | 3.9.0-ITNMIP-FP0001 * ****************************************************************
Problem conclusion
In itnm_control_functions.sh, according to the pre-defined format in ps_pid_info_args for ps output statement, there is a white space before and after the pid. To ensure exact process id match, including one white space before and after the pid into the 'grep' search. ps_line=`${ps_dir}/ps "${ps_pid_info_args}" | grep -v grep | grep " $pid " | grep -v "\.$pid"`
Temporary fix
Comments
APAR Information
APAR number
IV02995
Reported component name
NC/PREC DISCOVY
Reported component ID
5724O52DS
Reported release
390
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2011-07-06
Closed date
2011-07-25
Last modified date
2011-07-25
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
NC/PREC DISCOVY
Fixed component ID
5724O52DS
Applicable component levels
R390 PSY
UP
[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSSHRK","label":"Tivoli Network Manager IP Edition"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.9"}]
Document Information
Modified date:
27 September 2021