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