|
Packit |
13e616 |
.TH OSMTEST 8 "March 9, 2013" "OpenIB" "OpenIB Management"
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
.SH NAME
|
|
Packit |
13e616 |
osmtest \- InfiniBand subnet manager and administration (SM/SA) test program
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
.SH SYNOPSIS
|
|
Packit |
13e616 |
.B osmtest
|
|
Packit |
13e616 |
[\-f(low) <c|a|v|s|e|f|m|q|t>] [\-w(ait) <trap_wait_time>] [\-d(ebug) <number>]
|
|
Packit |
13e616 |
[\-m(ax_lid) <LID in hex>] [\-g(uid)[=]<GUID in hex>] [-p(ort)]
|
|
Packit |
13e616 |
[\-i(nventory) <filename>] [\-s(tress)] [\-M(ulticast_Mode)]
|
|
Packit |
13e616 |
[\-t(imeout) <milliseconds>] [\-l | \-\-log_file] [\-v] [\-vf <flags>]
|
|
Packit |
13e616 |
[\-h(elp)]
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
.SH DESCRIPTION
|
|
Packit |
13e616 |
.PP
|
|
Packit |
13e616 |
osmtest is a test program to validate InfiniBand subnet manager and
|
|
Packit |
13e616 |
administration (SM/SA).
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
Default is to run all flows with the exception of the QoS flow.
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
osmtest provides a test suite for opensm.
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
osmtest has the following capabilities and testing flows:
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
It creates an inventory file of all available Nodes, Ports, and PathRecords,
|
|
Packit |
13e616 |
including all their fields.
|
|
Packit |
13e616 |
It verifies the existing inventory, with all the object fields, and matches it
|
|
Packit |
13e616 |
to a pre-saved one.
|
|
Packit |
13e616 |
A Multicast Compliancy test.
|
|
Packit |
13e616 |
An Event Forwarding test.
|
|
Packit |
13e616 |
A Service Record registration test.
|
|
Packit |
13e616 |
An RMPP stress test.
|
|
Packit |
13e616 |
A Small SA Queries stress test.
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
It is recommended that after installing opensm, the user should run
|
|
Packit |
13e616 |
"osmtest -f c" to generate the inventory file, and
|
|
Packit |
13e616 |
immediately afterwards run "osmtest -f a" to test OpenSM.
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
Another recommendation for osmtest usage is to create the inventory when the
|
|
Packit |
13e616 |
IB fabric is stable, and occasionally
|
|
Packit |
13e616 |
run "osmtest -v" to verify that nothing has changed.
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
.SH OPTIONS
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
.PP
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-f\fR, \fB\-\-flow\fR
|
|
Packit |
13e616 |
This option directs osmtest to run a specific flow:
|
|
Packit |
13e616 |
FLOW DESCRIPTION
|
|
Packit |
13e616 |
c = create an inventory file with all nodes, ports and paths
|
|
Packit |
13e616 |
a = run all validation tests (expecting an input inventory)
|
|
Packit |
13e616 |
v = only validate the given inventory file
|
|
Packit |
13e616 |
s = run service registration, deregistration, and lease test
|
|
Packit |
13e616 |
e = run event forwarding test
|
|
Packit |
13e616 |
f = flood the SA with queries according to the stress mode
|
|
Packit |
13e616 |
m = multicast flow
|
|
Packit |
13e616 |
q = QoS info: dump VLArb and SLtoVL tables
|
|
Packit |
13e616 |
t = run trap 64/65 flow (this flow requires running of external tool)
|
|
Packit |
13e616 |
(default is all flows except QoS)
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-w\fR, \fB\-\-wait\fR
|
|
Packit |
13e616 |
This option specifies the wait time for trap 64/65 in seconds
|
|
Packit |
13e616 |
It is used only when running -f t - the trap 64/65 flow
|
|
Packit |
13e616 |
(default to 10 sec)
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-d\fR, \fB\-\-debug\fR
|
|
Packit |
13e616 |
This option specifies a debug option.
|
|
Packit |
13e616 |
These options are not normally needed.
|
|
Packit |
13e616 |
The number following -d selects the debug
|
|
Packit |
13e616 |
option to enable as follows:
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
OPT Description
|
|
Packit |
13e616 |
--- -----------------
|
|
Packit |
13e616 |
-d0 - Ignore other SM nodes
|
|
Packit |
13e616 |
-d1 - Force single threaded dispatching
|
|
Packit |
13e616 |
-d2 - Force log flushing after each log message
|
|
Packit |
13e616 |
-d3 - Disable multicast support
|
|
Packit |
13e616 |
-d4 - Use full world path record queries
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-m\fR, \fB\-\-max_lid\fR
|
|
Packit |
13e616 |
This option specifies the maximal LID number to be searched
|
|
Packit |
13e616 |
for during inventory file build (default to 100)
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-g\fR, \fB\-\-guid\fR
|
|
Packit |
13e616 |
This option specifies the local port GUID value
|
|
Packit |
13e616 |
with which OpenSM should bind. OpenSM may be
|
|
Packit |
13e616 |
bound to 1 port at a time.
|
|
Packit |
13e616 |
If GUID given is 0, OpenSM displays a list
|
|
Packit |
13e616 |
of possible port GUIDs and waits for user input.
|
|
Packit |
13e616 |
Without -g, OpenSM trys to use the default port.
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-p\fR, \fB\-\-port\fR
|
|
Packit |
13e616 |
This option displays a menu of possible local port GUID values
|
|
Packit |
13e616 |
with which osmtest could bind
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-i\fR, \fB\-\-inventory\fR
|
|
Packit |
13e616 |
This option specifies the name of the inventory file.
|
|
Packit |
13e616 |
Normally, osmtest expects to find an inventory file,
|
|
Packit |
13e616 |
which osmtest uses to validate real-time information
|
|
Packit |
13e616 |
received from the SA during testing
|
|
Packit |
13e616 |
If -i is not specified, osmtest defaults to the file
|
|
Packit |
13e616 |
\'osmtest.dat\'
|
|
Packit |
13e616 |
See -f c option for related information
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-s\fR, \fB\-\-stress\fR
|
|
Packit |
13e616 |
This option runs the specified stress test instead
|
|
Packit |
13e616 |
of the normal test suite
|
|
Packit |
13e616 |
Stress test options are as follows:
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
OPT Description
|
|
Packit |
13e616 |
--- -----------------
|
|
Packit |
13e616 |
-s1 - Single-MAD (RMPP) response SA queries
|
|
Packit |
13e616 |
-s2 - Multi-MAD (RMPP) response SA queries
|
|
Packit |
13e616 |
-s3 - Multi-MAD (RMPP) Path Record SA queries
|
|
Packit |
13e616 |
-s4 - Single-MAD (non RMPP) get Path Record SA queries
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
Without -s, stress testing is not performed
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-M\fR, \fB\-\-Multicast_Mode\fR
|
|
Packit |
13e616 |
This option specify length of Multicast test:
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
OPT Description
|
|
Packit |
13e616 |
--- -----------------
|
|
Packit |
13e616 |
-M1 - Short Multicast Flow (default) - single mode
|
|
Packit |
13e616 |
-M2 - Short Multicast Flow - multiple mode
|
|
Packit |
13e616 |
-M3 - Long Multicast Flow - single mode
|
|
Packit |
13e616 |
-M4 - Long Multicast Flow - multiple mode
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
Single mode - Osmtest is tested alone, with no other
|
|
Packit |
13e616 |
apps that interact with OpenSM MC
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
Multiple mode - Could be run with other apps using MC with
|
|
Packit |
13e616 |
OpenSM. Without -M, default flow testing is performed
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-t\fR, \fB\-\-timeout\fR
|
|
Packit |
13e616 |
This option specifies the time in milliseconds
|
|
Packit |
13e616 |
used for transaction timeouts.
|
|
Packit |
13e616 |
Specifying -t 0 disables timeouts.
|
|
Packit |
13e616 |
Without -t, OpenSM defaults to a timeout value of
|
|
Packit |
13e616 |
200 milliseconds.
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-l\fR, \fB\-\-log_file\fR
|
|
Packit |
13e616 |
This option defines the log to be the given file.
|
|
Packit |
13e616 |
By default the log goes to stdout.
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-v\fR, \fB\-\-verbose\fR
|
|
Packit |
13e616 |
This option increases the log verbosity level.
|
|
Packit |
13e616 |
The -v option may be specified multiple times
|
|
Packit |
13e616 |
to further increase the verbosity level.
|
|
Packit |
13e616 |
See the -vf option for more information about.
|
|
Packit |
13e616 |
log verbosity.
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-V\fR
|
|
Packit |
13e616 |
This option sets the maximum verbosity level and
|
|
Packit |
13e616 |
forces log flushing.
|
|
Packit |
13e616 |
The -V is equivalent to '-vf 0xFF -d 2'.
|
|
Packit |
13e616 |
See the -vf option for more information about.
|
|
Packit |
13e616 |
log verbosity.
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-vf\fR
|
|
Packit |
13e616 |
This option sets the log verbosity level.
|
|
Packit |
13e616 |
A flags field must follow the -D option.
|
|
Packit |
13e616 |
A bit set/clear in the flags enables/disables a
|
|
Packit |
13e616 |
specific log level as follows:
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
BIT LOG LEVEL ENABLED
|
|
Packit |
13e616 |
---- -----------------
|
|
Packit |
13e616 |
0x01 - ERROR (error messages)
|
|
Packit |
13e616 |
0x02 - INFO (basic messages, low volume)
|
|
Packit |
13e616 |
0x04 - VERBOSE (interesting stuff, moderate volume)
|
|
Packit |
13e616 |
0x08 - DEBUG (diagnostic, high volume)
|
|
Packit |
13e616 |
0x10 - FUNCS (function entry/exit, very high volume)
|
|
Packit |
13e616 |
0x20 - FRAMES (dumps all SMP and GMP frames)
|
|
Packit |
13e616 |
0x40 - ROUTING (dump FDB routing information)
|
|
Packit |
13e616 |
0x80 - currently unused.
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
Without -vf, osmtest defaults to ERROR + INFO (0x3)
|
|
Packit |
13e616 |
Specifying -vf 0 disables all messages
|
|
Packit |
13e616 |
Specifying -vf 0xFF enables all messages (see -V)
|
|
Packit |
13e616 |
High verbosity levels may require increasing
|
|
Packit |
13e616 |
the transaction timeout with the -t option
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
\fB\-h\fR, \fB\-\-help\fR
|
|
Packit |
13e616 |
Display this usage info then exit.
|
|
Packit |
13e616 |
|
|
Packit |
13e616 |
.SH AUTHORS
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
Hal Rosenstock
|
|
Packit |
13e616 |
.RI < hal.rosenstock@gmail.com >
|
|
Packit |
13e616 |
.TP
|
|
Packit |
13e616 |
Eitan Zahavi
|
|
Packit |
13e616 |
.RI < eitan@mellanox.co.il >
|