You can define separate serverConnect.conf and clientConnect.conf files on hosts where multiple servers or clients are running. This enables you to configure a system where certain users and/or servers use one file, and other users and/or servers reference a different file. Some installations can share the same BASEDIR/Smartss, but have requirements that stipulate that the servers and/or clients operate differently.
Two environment variables allow you to specify distinct configuration files:
-
SM_SERVERCONNECT
-
SM_CLIENTCONNECT
For each variable, the absolute path to the alternate security file must be specified. Because you specify the filename, you can have multiple files in the same directory.
For server programs, you can specify an alternate serverConnect.conf file, by setting the SM_SERVERCONNECT variable in the command line that starts the server.
For example, the following steps set the value of the SM_SERVERCONNECT environment variable to point to the server_Connect_IP.conf file.
-
Use the sm_service show action with the --cmdlineoption to display the existing command line for the program. You must have administrative privileges when typing the following command.
BASEDIR/Smartss /bin/sm_service show --cmdline ic-am-server BASEDIR/Smartss /bin/sm_service install --startmode=runonce ic-am-server BASEDIR/Smartss /bin/sm_server --name=INCHARGE-AM --config=icf --bootstrap=bootstrap-am.conf --port=0 --ignore-restore-errors --output
-
Use the sm_service install action with the --forceoption to add the environment variable to the command line. The --envoption specifies the environment variable.
t BASEDIR/Smartss /bin/sm_service install --force --startmode=runonce --env=SM_SERVERCONNECT= BASEDIR/Smartss /conf/ serverConnect_IP.conf ic-am-server BASEDIR/Smartss /bin/sm_server --name=INCHARGE-AM --config=icf --bootstrap=bootstrap-am.conf --port=0 --ignore-restore-errors --output s
-
Do one of the following:
-
Start the program.
-
Stop and restart the program.
For client programs, you can specify an alternate clientConnect.conf file by setting the SM_CLIENTCONNECT variable in the runcmd_env.sh file.
-
-