search cancel

NCM Block Policies throwing "internal error" message since Spectrum update 21.2.8

book

Article ID: 241755

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

Since Spectrum update to 21.2.8, we are seeing the following error message, related to NCM policies (block policy).
 
 
 
Inside the NCM error logs we see the following entry:
 
error text :
May 05, 2022 10:26:57.343 - ScmServiceImpl::parseScriptOutputXml(): Got JDOMException exceptionpolicy /appl/spectrum/NCM/cache/blockScOutput_27614663_3150755933162512331.xml : Error on line 1 of document file:/appl/spectrum/NCM/cache/blockScOutput_27614663_3150755933162512331.xml: Premature end of file.
May 05, 2022 10:26:57.345 - ScmServiceImpl::verifyScriptBlock(): Got violated the policy policyMh: 27614663
type: SCRIPT_BLOCK
scriptContent: "#!/bin/bash\n\n# Version: 1.0.0 Author: xxx xxxxx  \n#\n# Script will return STDOUT has TRUE OR FALSE ( case insensitive)\n#\n# FALSE ->  Policy is NOT Violated\n# TRUE  ->  Policy is Violated\n#\n# First Argument is Temporary File name that contains BLOCK of configuration for validation\n# Remaining Argument are Dynamic Params configured during  on policy  definition.\n#\n# First Line is Block Start matched Tag in the BLOCK.\n# LAST  Line is Block End matched Tag in the BLOCK\n\nblockTextFile=$1\n\nstartTag=`head -n 1 $blockTextFile`\nendTag=`tail -n 1 $blockTextFile`\n\n#conditions to be validated on Block\ngrep -F \"local-user \" <$blockTextFile|grep -vF \"undo local-user admin\"|grep -vE \"local-user\\s(Passwordmanager)\" 1>/dev/null 2>&1\n\nif [ $?  = 0 ]\nthen\n echo true\n exit\nfi\n\necho false\nexit"
output text

Environment

Release : 21.2.8

Component : Spectrum Applications NCM

Cause

Software bug that outputs messages to NCMSERV.OUT that is unnecessary

Resolution

We will fix the unnecessary messages that are getting printed continuously to NCMSERV.OUT for block_policy in Spectrum version 21.2.12

This is already identified and as this is not creating any functionality impact and can be safely ignored.