Adding an underlying domain into Smarts SAM from the command line using XML
search cancel

Adding an underlying domain into Smarts SAM from the command line using XML

book

Article ID: 315767

calendar_today

Updated On:

Products

VMware Smart Assurance VMware Telco Cloud Service Assurance

Issue/Introduction

Details process for bypassing the Smarts Global Console interface, and inserting a underlying domain, into Smarts SAM using command line. 

Environment

Smarts 10.X / 2.X

Resolution


The following instructions assume an INCHARGE-AM-SUITE domain type already exists. If you need to create a new domain type, see the sample code in the ics-default.xml found here:

<BASEDIR>/SAM/smarts/conf/ics/ics-default.xml

To add an underlying domain into Smarts SAM from the command line using XML, do the following: 

Create an XML file called insertAM.xml in the following location:

local/conf/ics/insertAM.xml
  • This file should have the following XML contents:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE ics_config SYSTEM "ics-config.dtd" >
<ics_config version="2">
    <domainconfig>

         <domain
            name="INCHARGE-AM-2"
            domaintypename="INCHARGE-AM-SUITE"
            enable="True">
            <description>AM analysis domain</description>
         </domain>

    </domainconfig>

</ics_config>
  •  Load the XML file as follows (see Note statement):
    <BASEDIR>/SAM/smarts/bin/sm_config -s <SAM domain> import insertAM.xml --force



Additional Information

It is not necessary to run a configure operation after adding the new domain through XML as described in the above Fix statement, because the Smarts SAM domain will automatically synchronize with the new domain.