User Manual
OpenSM – Subnet ManagerRev 2.1-1.0.6
Mellanox Technologies
146
8.2.2 Environment Variables
The following environment variables control opensm behavior:
• OSM_TMP_DIR
Controls the directory in which the temporary files generated by opensm are created. These files are:
opensm-subnet.lst, opensm.fdbs, and opensm.mcfdbs. By default, this directory is /var/
log.
• OSM_CACHE_DIR
This option sets the log verbosity level.
A flags field must follow the -D option.
A bit set/clear in the flags enables/disables a
specific log level as follows:
BIT LOG LEVEL ENABLED
---- -----------------
0x01 - ERROR (error messages)
0x02 - INFO (basic messages, low volume)
0x04 - VERBOSE (interesting stuff, moderate volume)
0x08 - DEBUG (diagnostic, high volume)
0x10 - FUNCS (function entry/exit, very high volume)
0x20 - FRAMES (dumps all SMP and GMP frames)
0x40 - ROUTING (dump FDB routing information)
0x80 - currently unused.
Without -D, OpenSM defaults to ERROR + INFO (0x3).
Specifying -D 0 disables all messages.
Specifying -D 0xFF enables all messages (see -V).
High verbosity levels may require increasing
the transaction timeout with the -t option.
--debug, -d <number>
This option specifies a debug option.
These options are not normally needed.
The number following -d selects the debug
option to enable as follows:
OPT Description
--- -----------------
-d0 - Ignore other SM nodes
-d1 - Force single threaded dispatching
-d2 - Force log flushing after each log message
-d3 - Disable multicast support
-d10 - Put OpenSM in testability mode
Without -d, no debug options are enabled
--help, -h, -?
Display this usage info then exit.