Details process for bypassing the Smarts Global Console interface, and inserting a underlying domain, into Smarts SAM using command line.
Smarts 10.X / 2.X
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
<?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>
<BASEDIR>/SAM/smarts/bin/sm_config -s <SAM domain> import insertAM.xml --force
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.