Using xpathlist appends new items to existing list rather than overwriting
search cancel

Using xpathlist appends new items to existing list rather than overwriting

book

Article ID: 413458

calendar_today

Updated On:

Products

Protection Engine for Cloud Services Protection Engine for NAS

Issue/Introduction

When using xpathlist to apply customized settings during an unattended Symantec Protection Engine (SPE) deployment, a list of file extension exclusions is being added to the default list instead of of only the items in the <nameofextensionlist>.txt being added.

Environment

Symantec Protection Engine 9.x

Resolution

This is working as designed.

xpath list uses xmlmodifier to apply the policy settings.  When applying some of the policy settings, xmlmodifier uses the "-b" (Bulk copy) option.  This inserts a list of items but does not clear any existing items in the policy.

If it is a requirement to remove the existing items from the list first, use xmlmodifier with the "-r" option before adding the customized settings.

Additional Information