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?
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 you get the "good" message. For example,
D:\NTR6SP2>esplmi -sxxx -uxxx -pxxxx -c"tr prod.test add" >out.log