We found that ESPLMI returns RC=0 even when the command fails. Is there a way to verify if the command issued through ESPLMI is successful?
Release: ALL
Component: ESP Workload Automation Workstation & Workload Automation Agent
Return code of ESPLMI can be:
RC=4 There is a connection problem to the ESP Workstation Server.
RC=0 All other conditions except the above case, even when the command fails.
As a workaround, you can write the output of the ESPLMI command to a file, then check it to see if it shows the "good" message. For example:
D:\path>esplmi -sxxx -uxxx -pxxxx -c"tr prod.test add" >out.log
If the event is triggered, then the following "good" message is in the out.log:-->tr prod.encore add
ESPWSS2502I EVENT TRIGGERED
If the event is not triggered, you will see related error message or no message (if logon has problem):-->tr cyblz01.test add|
ESPWSS145E EVENT PROD.TEST NOT DEFINED