NetIQ AppManager 7.0.x
NTAdmin_RunDos Knowledge Script occasionally raise an Event with an Exit Value of '-1'.
If the job raises an event on an iteration reporting an Exit Value of '-1' as the cause, it means that the executable that the Knowledge Script (KS) is being told to run was successfully started by the KS, but:
- The executable itself has terminated without completing.
- The executable has experienced an error that it was not programmed to account for or deal with.
In either case, the KS was successful in starting the executable, but the executable itself failed for some reason. This is not an AppManager issue. This is an OS/Network issue, or an issue with the code in the executable itself.
An Exit Value of '-1' indicates that the executable itself failed or terminated prematurely. The Knowledge Script will generate an Event on any specific iteration of the KS if it is sent an exit value of '-1' by the Operating System. The KS will then terminate that failed iteration, but it will continue to run, and will attempt to run the executable again at the next scheduled iteration.
If the KS itself were failing to actually start the executable it is being told to run, the Event that it would generate would indicate one of the following:
- The attempt by the KS to start the executable timed out with an event message containing: "<executablename> Timeouts w/retcode= <errcode>" indicating that the AppManager Client had a lack of permissions needed to start the executable.
- The KS was unable to find the executable resulting in an event message containing: "<executablename> not found" indicating that the file wasn't where the KS was being told to go.