Unexpected results when running a bundle that uses scripting

  • 7008841
  • 17-Jun-2011
  • 27-Apr-2012

Environment

Novell ZENworks 11 Configuration Management Bundles
Novell ZENworks 10 Configuration Management Bundles

Situation

Bundles containing scripts with variables containing single percent signs, e.g.,
echo %0 > c:\log.txt

ERRORS such as  RunScriptHandler.FileNotFound:The file ${comspec}.exe does not exist. (${comspec}.exe)

Other unexpected results (this will vary depending on the script, so it's not possible to list them all)

Resolution

For ZCM 11: This is fixed in version 11.1 - see KB 7008746 "ZENworks Configuration Management 11.1 - update information and list of fixes" which can be found at https://www.novell.com/support

Workaround: if it is not possible to upgrade to 11.1 at this time, in the interim, Novell has made a Patch available for testing, in the form of a Field Test File (FTF): it can be obtained at https://download.novell.com/Download?buildid=p22rPbrZtlk~ as part of "ZCM 11.0 - Cumulative Agent Patch 2a". This Patch should only be applied if the symptoms above are being experienced, and are causing problems.

This Patch has had limited testing, and should not be used in a production system without first being checked in a test environment. Some Patches have specific requirements for deployment, it is very important to follow any instructions in the readme at the download site. Please report any problems encountered when using this Patch, by using the feedback link on this TID.

For ZCM 10.3: This is fixed in version 10.3.4 - see KB 7008244 "ZENworks Configuration Management 10.3.4 - update information and list of fixes" which can be found at https://www.novell.com/support

Additional Information

The problem arose because ZCM was seeing a variable such as "%0" and interpreting the "%" as the first percent sign in an environment variable, such as "%PATH%"