NCM automatic repair actions

Document ID : KB000039068
Last Modified Date : 14/02/2018
Show Technical Document Details

Problem:

Several customers are interested in automatic NCM repair actions, if a NCM policy is violated. 

Regarding the CA Spectrum documentation a tool for that purpose is available. 

(https://docops.ca.com/display/CASP101/Network+Configuration+Manager+Policies#NetworkConfigurationManagerPolicies-RepairNon-CompliantDevices: 

You can automate and minimize the above process by running a Jar executable through AlarmNotifier. Contact CA Spectrum support team to get the executable file and the steps to use it) 

Resolution:

The ncmautorepair functionality is only supported with 9.4.2.1 and above. To enable it, all you need to do is set this section in the SetScript to TRUE and make sure that they set the SPECTRUM_USER to the install owner: 

 

# Below NCMAUTOREPAIR must set to TRUE to call auto remediation for NCM 

# SPECTRUM_USER must be user which spectrum is installed 

 

NCMAUTOREPAIR=FALSE 

SPECTRUM_USER="spectrum" 

 

if [ "$NCMAUTOREPAIR" = "TRUE" ] 

then 

if [ "$MTYPE" = "NCM_Policy" ] && [ "$MTHANDLE" = "0x82000b" ] 

then 

echo "NCM Auto Repair Policy Model Handle" $MHANDLE 

./ncmautorepair.sh -s $SERVER -u $SPECTRUM_USER -m $MHANDLE 

fi 

fi