1
2ethgentopology(8) EFSFFCLIRG (Man Page) ethgentopology(8)
3
4
5
7 ethgentopology
8
9
10
11 Provides a simple sample of how to generate the topology XML file used
12 for topology verification. Customers who wish to integrate topology XML
13 file generation into their cluster design process can create their own
14 script to take information available in other formats and tools and
15 produce the topology XML file directly. The alternative is to use
16 ethxlattopology and have tools generate the input files it expects.
17
18 This tool uses CSV input files ethtopology_links.txt, ethtopol‐
19 ogy_NICs.txt, and ethtopology_SWs.txt to generate LinkSummary, Node
20 NICs, and Node SWs information, respectively. These files are samples
21 of what might be produced as part of translating a user custom file
22 format into temporary intermediate CSV files.
23
24 LinkSummary information includes Link, Cable, and Port information.
25 Note that ethgentopology (not ethxmlgenerate) generates the XML version
26 string as well as the <Report> and <LinkSummary> lines. Also note that
27 the indent level is at the default value of zero (0). The portions of
28 the script that call ethxmlgenerate follow:
29
30 ethxmlgenerate -X /usr/share/eth-tools/samples/ethtopology_1.txt -d \;
31 -h Link \
32
33 -g Rate -g MTU -g Internal -g LinkDetails -h Cable -g CableLength -g
34 CableLabel \
35
36 -g CableDetails -e Cable -h Port -g IfAddr -g PortNum -g PortId -g Nod‐
37 eDesc
38 \ -g MgmtIfAddr -g NodeType -g PortDetails -e Port -h Port -g IfAddr
39 -g PortNum \ -g PortId -g NodeDesc
40 -g MgmtIfAddr -g NodeType -g PortDetails -e Port -e Link
41
42
43
44 ethxmlgenerate -X /usr/share/eth-tools/samples/ethtopology_2.txt -d \;
45 \
46
47 -h Node -g IfAddr -g NodeDesc -g NodeDetails -e Node
48
49
51 /usr/share/eth-tools/samples/ethgentopology [--help] [plane]
52
53 NOTE: You must use the full path to access this command.
54
55
56
58 No option
59
60 Produces sample output. See Example
61
62 --help
63
64 Produces full help text.
65
66 plane
67
68 Plane name. Default is 'plane'.
69
70
72 This file can be found in /usr/share/eth-tools/samples/. For brevity,
73 this sample shows only two links. The second link shows an example of
74 omitting some information. In the second line, the MTU, LinkDetails,
75 and other fields are not present, which is indicated by an empty value
76 for the field (no entry between the semicolon delimiters).
77
78 NOTE: The following example exceeds the available width of the page.
79 For readability, a blank line is shown between lines to make it clear
80 where the line ends. In an actual link file, no blank lines are used.
81
82
83 25g;2048;0;IO Server Link;11m;S4567;cable
84 model 456;0x0002c9020020e004;1;20e004,bender-
85 eth2;0x0002c9020020e004;NIC;
86 Some info about port;0x0011750007000df6;7;Eth7;Switch 1234 Leaf 4;;SW;
87
88
89
90
91 25g;;0;;;;;0x0002c9020025a678;1;25a678;mindy2-eth2;;NIC;;
92 0x0011750007000e6d;4;Eth4;Switch 2345 Leaf 5;;SW;
93
94
96 This file can be found in /usr/share/eth-tools/samples/. For brevity,
97 this sample shows only two nodes.
98
99 0x0002c9020020e004;bender-eth2;More details about node
100
101 0x0002c9020025a678;mindy2-eth2;Node details
102
103
104
105
107 This file can be found in /usr/share/eth-tools/samples/. For brevity,
108 this sample shows only two nodes.
109
110 0x0011750007000df6;Switch 1234 Leaf 4;
111
112 0x0011750007000e6d;Switch
113 2345 Leaf 5;
114
115
116
117
119 When run against the supplied topology input files, /usr/share/eth-
120 tools/samples/ethgentopology produces:
121
122 <?xml version="1.0" encoding="utf-8" ?>
123
124 <Report plane="plane">
125
126 <LinkSummary>
127
128 <Link>
129
130 <Rate>25g</Rate>
131
132 <MTU>2048</MTU>
133
134 <Internal>0</Internal>
135
136 <LinkDetails>IO Server Link</LinkDetails>
137
138 <Cable>
139
140 <CableLength>11m</CableLength>
141
142 <CableLabel>S4567</CableLabel>
143
144 <CableDetails>cable model 456</CableDetails>
145
146 </Cable>
147
148 <Port>
149
150 <IfAddr>0x001175010020e004</IfAddr>
151
152 <PortNum>1</PortNum>
153
154 <PortId>20e004</PortId> <NodeDesc>bender-eth2</NodeDesc>
155
156 <MgmtIfAddr>0x001175010020e004</MgmtIfAddr>
157
158 <NodeType>NIC</NodeType>
159
160 <PortDetails>Some info about port</PortDetails>
161
162 </Port>
163
164 <Port>
165
166 <IfAddr>0x0011750107000df6</IfAddr>
167
168 <PortNum>7</PortNum>
169
170 <PortId>Eth7</PortId> <NodeDesc>Switch 1234 Leaf 4</NodeDesc>
171
172 <NodeType>SW</NodeType>
173
174 </Port>
175
176 </Link>
177
178 <Link>
179
180 <Rate>25g</Rate>
181
182 <Internal>0</Internal>
183
184 <Cable>
185
186 </Cable>
187
188 <Port>
189
190 <IfAddr>0x001175010025a678</IfAddr>
191
192 <PortNum>1</PortNum>
193
194 <PortId>25a678</PortId> <NodeDesc>mindy2-eth2</NodeDesc>
195
196 <NodeType>NIC</NodeType>
197
198 </Port>
199
200 <Port>
201
202 <IfAddr>0x0011750107000e6d</IfAddr>
203
204 <PortNum>4</PortNum>
205
206 <PortId>Eth4</PortId> <NodeDesc>Switch 2345 Leaf 5</NodeDesc>
207
208 <NodeType>SW</NodeType>
209
210 </Port>
211
212 </Link>
213
214 </LinkSummary>
215
216 <Nodes>
217
218 <NICs>
219
220 <Node>
221
222 <IfAddr>0x0002c9020020e004</IfAddr>
223
224 <NodeDesc>bender-eth2</NodeDesc>
225
226 <NodeDetails>More details about node</NodeDetails>
227
228 </Node>
229
230 <Node>
231
232 <IfAddr>0x0002c9020025a678</IfAddr>
233
234 <NodeDesc>mindy2-eth2</NodeDesc>
235
236 <NodeDetails>Node details</NodeDetails>
237
238 </Node>
239
240 </NICs>
241
242 <Switches>
243
244 <Node>
245
246 <IfAddr>0x0011750107000df6</IfAddr>
247
248 <NodeDesc>Switch 1234 Leaf 4</NodeDesc>
249
250 </Node>
251
252 <Node>
253
254 <IfAddr>0x0011750107000e6d</IfAddr>
255
256 <NodeDesc>Switch 2345 Leaf 5</NodeDesc>
257
258 </Node>
259
260 </Switches>
261
262 </Nodes>
263
264 </Report>
265
266
267
268
269Copyright(C) 2020-2022 Intel Corporation ethgentopology(8)