1 .TH IBPORTSTATE 8 "October 19, 2006" "OpenIB" "OpenIB Diagnostics"
4 ibportstate \- handle port (physical) state and link speed of an InfiniBand port
8 [\-d(ebug)] [\-e(rr_show)] [\-v(erbose)] [\-D(irect)] [\-G(uid)] [\-s smlid] [\-V(ersion)] [\-C ca_name] [\-P ca_port] [\-t(imeout) timeout_ms] [\-h(elp)] <dest dr_path|lid|guid> <portnum> [<op>]
12 ibportstate allows the port state and port physical state of an IB port
13 to be queried (in addition to link width and speed being validated
14 relative to the peer port when the port queried is a switch port),
15 or a switch port to be disabled, enabled, or reset. It
16 also allows the link speed enabled on any IB port to be adjusted.
23 Port operations allowed
24 supported ops: enable, disable, reset, speed, query
27 ops enable, disable, and reset are only allowed on switch ports
28 (An error is indicated if attempted on CA or router ports)
29 speed op is allowed on any port
30 speed values are legal values for PortInfo:LinkSpeedEnabled
31 (An error is indicated if PortInfo:LinkSpeedSupported does not support
33 (NOTE: Speed changes are not effected until the port goes through
35 query also validates port characteristics (link width and speed)
36 based on the peer port. This checking is done when the port
37 queried is a switch port as it relies on combined routing
38 (an initial LID route with directed routing to the peer) which
39 can only be done on a switch. This peer port validation feature
40 of query op requires LID routing to be functioning in the subnet.
45 Most OpenIB diagnostics take the following common flags. The exact list of
46 supported flags per utility can be found in the usage message and can be shown
47 using the util_name -h syntax.
51 \-d raise the IB debugging level.
52 May be used several times (-ddd or -d -d -d).
54 \-e show send and receive errors (timeouts and others)
56 \-h show the usage message
58 \-v increase the application verbosity level.
59 May be used several times (-vv or -v -v -v)
61 \-V show the version info.
65 \-D use directed path address arguments. The path
66 is a comma separated list of out ports.
69 "0,1,2,1,4" # out via port 1, then 2, ...
71 \-G use GUID address argument. In most cases, it is the Port GUID.
75 \-s <smlid> use 'smlid' as the target lid for SM/SA queries.
79 \-C <ca_name> use the specified ca_name.
81 \-P <ca_port> use the specified ca_port.
83 \-t <timeout_ms> override the default timeout for the solicited mads.
85 Multiple CA/Multiple Port Support
87 When no IB device or port is specified, the port to use is selected
88 by the following criteria:
90 1. the first port that is ACTIVE.
92 2. if not found, the first port that is UP (physical link up).
94 If a port and/or CA name is specified, the user request is
95 attempted to be fulfilled, and will fail if it is not possible.
100 ibportstate 3 1 disable # by lid
102 ibportstate -G 0x2C9000100D051 1 enable # by guid
104 ibportstate -D 0 1 # (query) by direct route
106 ibportstate 3 1 reset # by lid
108 ibportstate 3 1 speed 1 # by lid
113 .RI < halr@voltaire.com >