Next Topic

Previous Topic

Book Contents

SetExitStatus

SetExitStatus(string sString,bool bSuccess)

Parameters

  • sString - An string describing the result for the script.
  • bSuccess - If non-zero (boolean true) the script is considered to been executed successfully by the framework. If this value is set to zero (boolean false) the function SetErrorString should be called as well, with a string describing the error status.

Remarks

This function must be called when a script is exiting, the function tells Network Monitor if the script was successfully or not, the text supplied with the function will be used by Network Monitor to set last status text in the interface if the script is executed in the context of an agent.