Cybersecurity
DevOps Cloud
IT Operations Cloud
ZENworks 23.4 or higher
Advanced Patch Management
The article provides guidelines and examples to troubleshoot Patch Scan issues based on Analyze success or failure status(return codes) on ZENworks Patch Agent (Windows).
Check the following on ZENworks Patch Agent under Technician Application:
# Debug logging is enabled for the ZENworks Agent under Logging
# Patch Management Agent Status shows Running under Status > Agent
# Discover Applicable Update (DAU) bundle version Status should be Installed or Available under Bundles
Scenario A: Patch Scan(Analyze) returns Success if the return code is 0
[ZenworksWindowsService] [113] [] [analyze] [] [(2024-10-06 16:03:35,445) (DEBUG) (10556) (analyze) () (SYSTEM) () (Starting Scan) (DEBUG) () () () (ZENworks) ] [] [] [] [ZENworks Agent] [ZenworksWindowsService] [113] [] [analyze] [] [(2024-10-06 16:03:44,884) (DEBUG) (10556) (analyze) () (SYSTEM) () (Scan complete: SUCCESS) (DEBUG) () () () (ZENworks) ] [] [] [] [ZENworks Agent] [ZenworksWindowsService] [113] [] [analyze] [] [(2024-10-06 16:03:57,541) (DEBUG) (10556) (analyze) () (SYSTEM) () (Writing scan status to the results file) (DEBUG) () () () (ZENworks) ] [] [] [] [ZENworks Agent] [ZenworksWindowsService] [113] [] [analyze] [] [(2024-10-06 16:03:57,588) (DEBUG) (10556) (analyze) () (SYSTEM) () (Analyze complete) (DEBUG) () () () (ZENworks) ] [] [] [] [ZENworks Agent]PatchAnalyze_<timestamp>.log
[analyze] [] [SYSTEM] [] [Downloading C:\Program Files (x86)\Novell\ZENworks\zpm\oem.manifest.xml from https://ZENworksServer:443/zenworks-content/patch/data/oem/microfocus/manifest/oem.manifest.xml] [DEBUG] [] [] [] [ZENworks] [analyze] [] [SYSTEM] [] [Downloaded file C:\Program Files (x86)\Novell\ZENworks\zpm\oem.manifest-638636545859355346.xml successfully] [DEBUG] [] [] [] [ZENworks] [analyze] [] [SYSTEM] [] [Successfully replaced destination C:\Program Files (x86)\Novell\ZENworks\zpm\oem.manifest.xml with temp file C:\Program Files (x86)\Novell\ZENworks\zpm\oem.manifest-638636545859355346.xml as it is latest] [DEBUG] [] [] [] [ZENworks] [analyze] [] [SYSTEM] [] [Downloading C:\Program Files (x86)\Novell\ZENworks\zpm\WindowsPatchData.zip from https://ZENworksServer:443/zenworks-content/patch/data/2.0.4.2208/WindowsPatchData.zip] [DEBUG] [analyze] [] [SYSTEM] [] [Downloaded file C:\Program Files (x86)\Novell\ZENworks\zpm\WindowsPatchData-638636545997756560.zip successfully] [DEBUG] [] [] [] [ZENworks] [analyze] [] [SYSTEM] [] [Successfully replaced destination C:\Program Files (x86)\Novell\ZENworks\zpm\WindowsPatchData.zip with temp file C:\Program Files (x86)\Novell\ZENworks\zpm\WindowsPatchData-638636545997756560.zip as it is latest [analyze] [] [SYSTEM] [] [Starting Scan] [DEBUG] [] [] [] [ZENworks] [analyze] [] [SYSTEM] [] [Building Metadata] [DEBUG] [] [] [] [ZENworks] .... [analyze] [] [SYSTEM] [] [Writing scan status to the results file] [DEBUG] [] [] [] [ZENworks] [analyze] [] [SYSTEM] [] [Analyze complete] [DEBUG] [] [] [] [ZENworks]
Scenario B: Patch Scan(Analyze) returns Failure if return code is non-zero : ANALYZE_FAILED
Possible Return Error Codes:
1 => Failure Downloading Patch catalog to %zenworks_home%\zpm from Primary
2 => Any Generic Exception, probable causes are communication errors on downloading patch contents or bad/corrupt Catalog files, etc.
3 => DownloadException when fetching oem.manifest.xml to %zenworks_home%\zpm from Primary Servers after several attempts