Connect Domain Managers to SAM or OI Domains via CLI
search cancel

Connect Domain Managers to SAM or OI Domains via CLI

book

Article ID: 417284

calendar_today

Updated On:

Products

Network Observability VMware Smart Assurance

Issue/Introduction

Steps to connect the  Domain Managers (AMPM , NPM ..etc) to SAM or OI Domains via CLI

Environment

All Supported Smarts versions

Resolution

In this example, we will learn to import INCHARGE-DOMAIN-NAME of type INCHARGE-AM-PM-SUITE. 

Note: These parameters are user-specific and one may modify these according to their requirements

  • We export the existing configuration to an XML file using the following command:
./sm_config -s <SAM/OI Domain> export -k <Domain>.xml

NOTE: The OI domain configuration is placed under the path: SAM/smarts/local/conf/icoi/ and SAM domain configuration is placed under the path: SAM/smarts/local/conf/ics
 ##Example output expected from this: XML data exported to : /<BaseDir>/smarts/local/conf/icoi/<Domain>.xml

  •  Then we add the configuration entry to this XML file at two instances: 
    • domaintype where we add our AMPM domain to existing domain type of INCHARGE-AM-PM-SUITE. You may choose to create new by adding a new entry of domain type similar to the below tags:
    <domaintype MinimumCertainty="0" SmoothingInterval="65" attachTime="6000" detachTime="1800" dxaConfFile="dxa-sysip.conf" enable="TRUE" name="INCHARGE-AM-PM-SUITE" timeOut="600" timeOutBE="-1" timeOutFE="-1" timestamp="<epoch time>">
      <description>Domain type for AM, PM or AM-PM</description>
     <!-- Pre-Existing Default Domain name INCHARGE-AM-PM-->
<domainname>INCHARGE-AM-PM</domainname>
     <!-- To add a Domain Manager to type INCHARGE-AM-PM-SUITE -->
      <!-- Start 1 -->
      <domainname>INCHARGE-DOMAIN-NAME</domainname>
       <!-- End 1 -->
   </domaintype>
    •  domain where we add our INCHARGE-DOMAIN-NAME domain definition to the type INCHARGE-AM-PM-SUITE. User may choose to map this to newly created domain type (if any defined):
     <!-- To add a Domain Manager -->
   <!-- Start 2 -->
   <domain autoTopoSyncEnabled="TRUE" domaintypename="INCHARGE-AM-PM-SUITE" enable="TRUE" name="INCHARGE-DOMAIN-NAME" timestamp="<Epoch time>">
     <description>AM, PM or AM-PM domain</description>INCHARGE-DOMAIN-NAME
   </domain>
   <!-- End 2 -->
  • Import this updated configuration back to the domain using
sm_config -s <SAM/OI Domain> import --force <Domain>.xml
  • Reconfigure the OI domain to create the drivers for this newly added domain:
dmctl -s <SAM/OI Domain> invoke DomainConfigHandler::Domain-ConfigHandler reconfigure
  • Verify the drivers created:
dmctl -s <SAM/OI Domain> geti GA_DaemonDriver | grep -i “INCHARGE-DOMAIN-NAME”
INCHARGE-DOMAIN-NAME_Event-Driver
INCHARGE-DOMAIN-NAME_Topo-Driver

Additional Information

To load the configuration on domain start-up instead of export / import functions, the default XML files to modify are :

  • SAM Domain:   <Base-SAM-Dir>/smarts/conf/ics/ics-default.xml
  • OI Domain:      <Base-SAM-Dir>/smarts/conf/ics/icoi-default.xml

Note: Please use sm_edit to modify the files accordingly.