Dear IBM Support Team,
Please find below description about the scenario we have executed in IBM Tivoli Netcool/Impact 7.1
1) We executed below code in our Impact Policy and our observation from nci_jrexec.log file is, when Timeout occurs (based on configured Timeout value), it's retrying again the same operation again that is defined in the parameter/argument "Command_To_Fire".
Sample Policy Code
TimeOut = 4;
JRExecActionResult = JRExecAction(Script_To_Run, Command_To_Fire, false, TimeOut);
2) Script_To_Run is a shell script that does SSH connection to Customer HPNA Custom Linux Appliance Server. Command to execute on Customer server is passed to the script in the parameter Command_To_Fire
3) After triggering the Command_To_Fire, if Timeout occurs we are receiving below error message in Impact Policy Log
08 Sep 2021 00:26:15,240: [Ngen_Framework_Alarm_Notif_CIC][MessageProcessor-Dog#4756]!(Module: Log): 0 ms
08 Sep 2021 00:26:23,352: [Ngen_Framework_Alarm_Notif_CIC][MessageProcessor-Dog#4756]Parser log: LangException ERROR: Exception in policy: RunRemoteCommand at
line: 183.JRExecAction: Error while executing external action {/home/netcool/ssh_hpna_connect_failover.sh, deploy change plan -ip 192.168.96.112 -name "Cisco_S
ingle_Homed_Device_ReportV2" -parameters "" -variables "stc_inputhosts=RTPE1-Khu-107-3\nCoreNCS-Maa-108-1,stc_ticket_num=PR00022535653" -comment "Auto task by
netcool" -priority 1 -postsnapshot false} ExceptionMessage: com.micromuse.common.parser.PolicyException: JRExecAction: Error while executing external action {
/home/netcool/ssh_hpna_connect_failover.sh, deploy change plan -ip 192.168.96.112 -name "Cisco_Single_Homed_Device_ReportV2" -parameters "" -variables "stc_inp
uthosts=RTPE1-Khu-107-3\nCoreNCS-Maa-108-1,stc_ticket_num=PR00022535653" -comment "Auto task by netcool" -priority 1 -postsnapshot false}. getCause: java.rmi.
ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: External command did not return within 4 seconds. Edit the Timeout value in the policy to change this value.; nested exceptio
n is:
java.util.concurrent.TimeoutException
4) In nci_jrexec.log file we are receiving error message representing the Timeout behavior
09 Sep 2021 10:40:19,037 ERROR [JRExecServer] External command did not return within 4 seconds. Edit the Timeout value in the policy to change this value.
java.util.concurrent.TimeoutException: null
5) After Timeout, same command in "Command_To_Fire" gets triggered again. This is against to what we need. Requirement is stop/disable retry behavior in case of timeout.
Note: Kindly provide a configurable way to stop/disable retry behavior in case of Timeout while using JRExecAction .