This utility uses the values from the <BASEDIR>/smarts/local/conf/failover.conf file as input.
Syntax:
sm_perl sm_configureFailover.pl [options... ]
Options for the utility are provided in Syntax options for the sm_configureFailover.pl utility .
Options |
Description |
---|---|
--subscribe |
Required, only creates subscriptions by using the failover.conf file in the <BASEDIR>/smarts/local/conf/failover directory. Specify this option by itself to create subscriptions for SAM, Adapter Platform and BIM. Also -s. |
--append |
Optional, creates subscriptions and appends information to the Server section in the failover.conf file. Used with the --file option. Valid for SAM, Adapter Platform, BIM, and all Domain Managers. Also -a. |
--file=<file_path>/<file_name> |
The --file option is mandatory if --append is specified. This text file contains the configuration details that need to be appended to the failover.conf file. The information in text file must be listed in this format: #DomainType DomainName portA portB hostA hostB directoryPathA directoryPathB Example: AMPM AMPM-test 4300 4300 ITOPS-QA-106 ITOPS-QA-108 <BASEDIR>/smarts <BASEDIR>/smarts Also -f <file_path>/<file_name>. |
--help |
Print help and exit. Also -h. |
Examples:
-
This command creates only subscriptions for Active and Standby SAM, Adapter Platform, and BIM:
./sm_perl sm_configureFailover.pl -s
-
This command edits the Server sections in the failover.conf file and creates the subscriptions accordingly.
./sm_perl sm_configureFailover.pl -s -a -f <file_path>/file.txt SAM INCHARGE-SA 2000 2000 wpl-019-090.lss.emc.com wpl-019-091.lss.emc.com /opt/InCharge/SAM/smarts /opt/InCharge/SAM/smarts BIM INCHARGE-MBIM 2010 2010 wpl-019-090.lss.emc.com wpl-019-091.lss.emc.com /opt/InCharge/SAM/smarts /opt/InCharge/SAM/smarts