1IBROUTE(8) Open IB Diagnostics IBROUTE(8)
2
3
4
6 IBROUTE -
7
9 SYNOPSIS
10 ibroute [options] [<dest dr_path|lid|guid> [<startlid> [<endlid>]]]
11
12 DESCRIPTION
13 ibroute uses SMPs to display the forwarding tables (unicast (LinearFor‐
14 wardingTable or LFT) or multicast (MulticastForwardingTable or MFT))
15 for the specified switch LID and the optional lid (mlid) range. The
16 default range is all valid entries in the range 1...FDBTop.
17
18 OPTIONS
19 -a, --all
20 show all lids in range, even invalid entries
21
22 -n, --no_dests
23 do not try to resolve destinations
24
25 -M, --Multicast
26 show multicast forwarding tables In this case, the range parame‐
27 ters are specifying the mlid range.
28
29 Addressing Flags
30 -D, --Direct The address specified is a directed route
31
32 Examples:
33 [options] -D [options] "0" # self port
34 [options] -D [options] "0,1,2,1,4" # out via port 1, then 2, ...
35
36 (Note the second number in the path specified must match the port being
37 used. This can be specified using the port selection flag '-P' or the
38 port found through the automatic selection process.)
39
40 -G, --Guid The address specified is a Port GUID
41
42 -L, --Lid The address specified is a LID
43
44 -s, --sm_port <smlid> use 'smlid' as the target lid for SA queries.
45
46 Port Selection flags
47 -C, --Ca <ca_name> use the specified ca_name.
48
49 -P, --Port <ca_port> use the specified ca_port.
50
51 Local port Selection
52 Multiple port/Multiple CA support: when no IB device or port is speci‐
53 fied (see the "local umad parameters" below), the libibumad library
54 selects the port to use by the following criteria:
55
56 1. the first port that is ACTIVE.
57
58 2. if not found, the first port that is UP (physical link up).
59
60 If a port and/or CA name is specified, the libibumad library
61 attempts to fulfill the user request, and will fail if it is not
62 possible.
63
64 For example:
65
66 ibaddr # use the first port (criteria #1 above)
67 ibaddr -C mthca1 # pick the best port from "mthca1" only.
68 ibaddr -P 2 # use the second (active/up) port from the first available IB device.
69 ibaddr -C mthca0 -P 2 # use the specified port only.
70
71 Debugging flags
72 -d raise the IB debugging level. May be used several times (-ddd
73 or -d -d -d).
74
75 -e show send and receive errors (timeouts and others)
76
77 -h, --help show the usage message
78
79 -v, --verbose
80 increase the application verbosity level. May be used several
81 times (-vv or -v -v -v)
82
83 -V, --version show the version info.
84
85 Configuration flags
86 -t, --timeout <timeout_ms> override the default timeout for the
87 solicited mads.
88
89 -y, --m_key <key>
90 use the specified M_key for requests. If non-numeric value (like
91 'x') is specified then a value will be prompted for.
92
93 --node-name-map <node-name-map> Specify a node name map.
94 This file maps GUIDs to more user friendly names. See FILES sec‐
95 tion.
96
97 --config, -z <config_file> Specify alternate config file.
98 Default: /etc/infiniband-diags/ibdiag.conf
99
100 FILES
101 CONFIG FILE
102 /etc/infiniband-diags/ibdiag.conf
103
104 A global config file is provided to set some of the common options for
105 all tools. See supplied config file for details.
106
107 NODE NAME MAP FILE FORMAT
108 The node name map is used to specify user friendly names for nodes in
109 the output. GUIDs are used to perform the lookup.
110
111 This functionality is provided by the opensm-libs package. See
112 opensm(8) for the file location for your installation.
113
114 Generically:
115
116 # comment
117 <guid> "<name>"
118
119 Example:
120
121 # IB1
122 # Line cards
123 0x0008f104003f125c "IB1 (Rack 11 slot 1 ) ISR9288/ISR9096 Voltaire sLB-24D"
124 0x0008f104003f125d "IB1 (Rack 11 slot 1 ) ISR9288/ISR9096 Voltaire sLB-24D"
125 0x0008f104003f10d2 "IB1 (Rack 11 slot 2 ) ISR9288/ISR9096 Voltaire sLB-24D"
126 0x0008f104003f10d3 "IB1 (Rack 11 slot 2 ) ISR9288/ISR9096 Voltaire sLB-24D"
127 0x0008f104003f10bf "IB1 (Rack 11 slot 12 ) ISR9288/ISR9096 Voltaire sLB-24D"
128
129 # Spines
130 0x0008f10400400e2d "IB1 (Rack 11 spine 1 ) ISR9288 Voltaire sFB-12D"
131 0x0008f10400400e2e "IB1 (Rack 11 spine 1 ) ISR9288 Voltaire sFB-12D"
132 0x0008f10400400e2f "IB1 (Rack 11 spine 1 ) ISR9288 Voltaire sFB-12D"
133 0x0008f10400400e31 "IB1 (Rack 11 spine 2 ) ISR9288 Voltaire sFB-12D"
134 0x0008f10400400e32 "IB1 (Rack 11 spine 2 ) ISR9288 Voltaire sFB-12D"
135
136 # GUID Node Name
137 0x0008f10400411a08 "SW1 (Rack 3) ISR9024 Voltaire 9024D"
138 0x0008f10400411a28 "SW2 (Rack 3) ISR9024 Voltaire 9024D"
139 0x0008f10400411a34 "SW3 (Rack 3) ISR9024 Voltaire 9024D"
140 0x0008f104004119d0 "SW4 (Rack 3) ISR9024 Voltaire 9024D"
141
142 EXAMPLES
143 Unicast examples
144
145 :: ibroute 4 # dump all lids with valid out ports of
146 switch with lid 4 ibroute -a 4 # same, but dump all
147 lids, even with invalid out ports ibroute -n 4 # sim‐
148 ple dump format - no destination resolution ibroute 4 10
149 # dump lids starting from 10 (up to FDBTop) ibroute 4 0x10 0x20
150 # dump lid range ibroute -G 0x08f1040023 # resolve switch by
151 GUID ibroute -D 0,1 # resolve switch by direct path
152
153 Multicast examples
154
155 :: ibroute -M 4 # dump all non empty mlids of switch
156 with lid 4 ibroute -M 4 0xc010 0xc020 # same, but with range
157 ibroute -M -n 4 # simple dump format
158
159 SEE ALSO
160 ibtracert (8)
161
162 AUTHOR
163 Hal Rosenstock
164 < halr@voltaire.com >
165
166
167
168
169 IBROUTE(8)