Using xmlmodifier to remove and/or import RPC clients
search cancel

Using xmlmodifier to remove and/or import RPC clients

book

Article ID: 272225

calendar_today

Updated On:

Products

Protection Engine for Cloud Services Protection Engine for NAS

Issue/Introduction

Steps for removing clients from the RPC Client list or importing a list of IP addresses for RPC Clients are needed for managing SPE in core server only mode.

 

Resolution

  1. List the current items in the RPCClient list
  2. (OPTIONAL) Delete all current items in the RPCClient list
  3. Import a flat file containing IPs to the RPC Client list.
  4. Restart the Symantec Protection Engine service to make changes effective

 

To list the current items in the RPCCLient list

  1. At the cmd prompt, navigate to the default installation folder of SPE by typing:
    cd C:\Program Files\Symantec\Scan Engine
  2. Do one of the following:
    - Type:
    find "<item value=" configuration.xml 

    Expected output shows each IP address in the RPC Client list (if any):
    ---------- CONFIGURATION.XML
                                  <item value="127.0.0.1"/>
                                  <item value="192..2.2"/>
    - Type:
    xmlmodifier -l //configuration/ProtocolSettings/RPC/ClientList/items/item/@value configuration.xml
    Expected output from XMLmodifier should show each IP in the RPC Client list, if any, similar to the following:
    127.0.0.1
    192.0.2.2

     

 

To delete current contents of the RPC Client list

  1. Type:
    xmlmodifier -r //configuration/ProtocolSettings/RPC/ClientList/items configuration.xml
  2. List the contents of the RPC Client as above.

 

To import a flat file of IP addresses into the RPC client list

  1. Create a .txt file with one IP address per line. Contents should look similar to:
    192.0.2.2
    127.0.0.1
  2. At the cmd prompt, type:
    xmlmodifier -b //configuration/ProtocolSettings/RPC/ClientList/items RPCimporttest.txt configuration.xml
  3. After import, list the contents of the RPC client list as above