The environment variable SM_MAIN_OPTIONS enables you to set default values for the standard options supported by SDK software, as described in Standard options supported by SM_MAIN_OPTIONS. You can override the values specified by SM_MAIN_OPTIONS by providing alternative values on the command line.

Table 1. Standard options supported by SM_MAIN_OPTIONS

Standard option

Definition

--accept=<hosts>

Specify a list of hosts, by name or IP address, from which SDK programs accept connections. Multiple entries should be separated by commas.

By default, SDK programs accept connections from any host. SDK programs that accept connections are dmstart, sm_server, sm_adapter, and sm_trapd. Note that sm_adapter and sm_trapd accept only connections when started with the --name option.

To limit connections to the host on which SDK software is installed, specify the name or IP address of the host instead of localhost.

--daemon

Run the SDK program as a daemon (UNIX only). Messages generated from internal logging calls are directed to the log file. Log files are written to the BASEDIR/smarts/logs directory.

--facility=<facility>

Instructs the SDK program to log any syslog messages with the specified syslog facility (UNIX/Linux only). The default is Daemon.

The <facility> setting can be one of the following:

  • Kern

  • User

  • Mail

  • Daemon

  • Auth

  • Lpr

  • News

  • Uucp

  • Cron

  • Local0

  • Local1

  • Local2

  • Local3

  • Local4

  • Local5

  • Local6

  • Local7

--errlevel=<level>

Specify the minimum level at which error events are written to the standard error output. Possible values include: none, emergency, alert, fatal, critical, error, warning, notice, informational, debug. The default is warning. (Note that fatal is equivalent to emergency, alert, or critical.)

--loglevel=<level>

Specify the minimum level at which event messages are written to the system logging facility. Possible values include: none, emergency, alert, fatal, critical, error, warning, notice, informational, debug. The default is error. (Note that fatal is equivalent to emergency, alert, or critical.)

--logname=<name>

Specify the name used to identify the SDK program in the system log. On UNIX systems, the default is the program name.

--output[=<file>]

Messages generated from internal logging calls are directed to a log file. Log files are written to the BASEDIR/smarts/logs directory. If <file> is not specified, the value of --logname is used.

If a log file with specified name already exists, it is moved to a backup file, BASEDIR/smarts/local/logs/<file>.bak. If the backup file already exists, it is deleted.

--tracelevel=<level>

Specify the minimum level at which a process stack trace is written to the standard error output. Possible values include: none, emergency, alert, fatal, critical, error, warning, notice, informational, debug. The default is fatal. (Note that fatal is equivalent to emergency, alert, or critical.)

--useif=<IP address>

Specifies the IP address that the SDK program should use as the source address for outgoing packets and the destination address for which it accepts incoming packets. <IP Address> must be a *v4* address.

--version

Print the version of the SDK program.

For example, if you set SM_MAIN_OPTIONS to --errlevel=fatal, then SDK programs will record all errors with a level of fatal or higher.