Smarts SAM: How can I disable/enable a domain subscription using the command line?; Is there a DMCTL command to do this?
search cancel

Smarts SAM: How can I disable/enable a domain subscription using the command line?; Is there a DMCTL command to do this?

book

Article ID: 327751

calendar_today

Updated On:

Products

VMware

Environment

VMware Smart Assurance - SMARTS

Resolution

How can I disable a Smarts SAM domain subscription using the command line?
How can I enable a Smarts SAM domain subscription using theDMAC User interface.?

1: Load the  GMAC  for SAM, and select the  SAM Domain .
2: Select the IP server from the domains subscribed to SAM for which you want to disconnect.
3: Then disable that IP domain. 
4: After 10 minutes enable that domain.
5: Reconfigure the SAM server.

Is there a Smarts DMCTL command that can be used to enable or disable an underlying Smarts SAM domain subscription?

 

A domain subscription in Smarts SAM can be enabled or disabled through the command line or a script using the enableConfig or disableConfig DMCTL command (see Note statement). The following is the syntax for the DMCTL command to do this (entered all on one line):

<BASEDIR>/SAM/smarts/bin/dmctl -s <SAM domainName>  invoke DomainConfigHandler::Domain-ConfigHandler [enableConfig|disableConfig] <Underlying domainName> <config_subtype>

config_subType should be one of the following types:

domainGroupConfigName = "DomainGroup";
domainConfigName = "Domain";
domainTagConfigName = "DomainTag";
domainTypeConfigName = "DomainType";

Example:

./dmctl -s INCHARGE-SA invoke DomainConfigHandler::Domain-ConfigHandler disableConfig INCHARGE-AM-PM Domain
./dmctl -s INCHARGE-SA invoke DomainConfigHandler::Domain-ConfigHandler enableConfig INCHARGE-AM-PM Domain

./dmctl -s INCHARGE-SA invoke DomainConfigHandler::Domain-ConfigHandler disableConfig INCHARGE-MBIM Domain
./dmctl -s INCHARGE-SA invoke DomainConfigHandler::Domain-ConfigHandler enableConfig INCHARGE-MBIM Domain

IMPORTANT! After executing the above enable or disable command, you must run a reconfigure command on your Smarts SAM domain to apply the change in your environment. You can do this using the following command:

<BASEDIR>/SAM/smarts/bin/dmctl -s <SAM domainName>  invoke DomainConfigHandler::Domain-ConfigHandler reconfigure

 



Additional Information

This is not a way to set up a domain subsctiption.  The above solution assumes that you already have a domain configured in Smarts SAM and you just want to enable or disable the domain.  Domain subscriptions are setup using the Smarts Global Manager Admin Console. Instructions on how to set up a domain subscription are detailed in the Smarts SAM Configuration Guide.