This environment variable specifies the default location of the Broker. When you install SDK software, you are prompted for the host location of the Broker and its port number. The Broker’s location can be specified in any one of the following formats: “host:port”, “host” or “:port”. When the host or port values are omitted, the default value is used. The default host value is “smarts-broker” or “localhost”. The default port value is 426. If the location of the Broker changes, you must edit the runcmd_env.sh file on all systems where SDK software is installed. In addition, you may have to edit the Broker startup script.

SDK software follows these steps to determine the Broker’s location:

  1. Verifies whether the Broker’s location was specified as an option at startup. When this option is specified, no other options are checked.

  2. It checks the value of the SM_BROKER_DEFAULT environment variable. If this variable is set, no other options are checked.

  3. It checks if the Broker is running on the host smarts-broker and listening on TCP port 426.

  4. If smarts-broker is not defined, the program checks port 426 on localhost.

    Note:

    The hostname smarts-broker is usually an alias, such as a DNS CNAME.