Novell is now a part of Micro Focus

My Favorites

Close

Please to see your favorites.

Run Script action fails with Error 0

This document (7022418) is provided subject to the disclaimer at the end of this document.

Environment

ZENworks Configuration Management 2017

Situation

ERROR:

[Run Script Action] [] [An error occurred while executing the run script configured program. Error is: The operation completed successfully.Exit code is : 0] 
[ERROR] [ZenworksWindowsService] [56] [] [BundleManager] [ActionHandlers.RunScriptHandler.ProgramErrorWithExplaination] [An error occurred while executing the program. Error is: The operation completed successfully.

Resolution

Either:

  1. Change the script to use redirection of stderr.  Example:
    command.exe  2>null

    or

  2. To bypass all errors, set Advance options "Success Return Codes" to *

Cause

The script enforcer checks both return code against the Success Return Codes setting in the action, but also checks for output to standard error port.  If some command in the script sends success string to stderr instead of stdout, this error can happen.

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7022418
  • Creation Date:01-DEC-17
  • Modified Date:01-DEC-17
    • NovellZENworks Configuration Management

Did this document solve your problem? Provide Feedback