In the first scenario, you must edit the Broker host and/or port value in two places.
-
First, change the SM_BROKER_DEFAULT environment variable in the runcmd_env.sh file, which is located in the BASEDIR/smarts/local/conf directory:
SM_BROKER_DEFAULT=<host>:<value>
-
Additionally, you must change the --port value in the sm_service install Broker command line to match the port value you set in the SM_BROKER_DEFAULT environment variable.
Use the sm_service show action with the --cmdline option to display the existing install Broker command line.
BASEDIR/smarts /bin/sm_service show --cmdline ic-broker BASEDIR/smarts /bin/sm_service install --startmode=runonce --env=SM_CLIENTCONNECT=brokerConnect.conf ic-broker BASEDIR/smarts /bin/brstart --port=<PORT> --output --restore= BASEDIR/smarts /local/repos/broker/broker.rps t BASEDIR/smarts /bin/sm_service install --force --startmode=runonce --env=SM_CLIENTCONNECT=brokerConnect.conf ic-broker BASEDIR/smarts /bin/brstart --port=<NEW VALUE> --output --restore= BASEDIR/smarts /local/repos/broker/broker.rps s