如何回報Intel® Ethernet Fabric Suite命令線介面中的所有節點和連結

文件

產品資訊與文件

000088353

2021 年 11 月 15 日

我要如何使用 ethreport 工具列出在Intel® Ethernet Fabric Suite(Intel® EFS)中運作的所有系統元件?

ethreport 指令提供強大的網狀架構分析與報告功能。必須在已安裝的 Intel® Ethernet Fabric Suite FastFabric Toolset 上,在連接Intel® Ethernet Fabric Suite的主機上執行。

ethreport 可產生數百份不同的報告。通常產生的報告包括下列內容:

ethreport -o comps -d 3
ethreport -o errors -o slowlinks
ethreport -o nodes -F mgmtifaddr:0x00066a00a000447b
ethreport -o nodes -F ifaddr:0x001175019800447b:port:1
ethreport -o nodes -F ifaddr:0x001175019800447b
ethreport -o nodes -F 'node:duster-eth2'
ethreport -o nodes -F 'node:duster-eth2:port:1'
ethreport -o nodes -F 'nodepat:d*'
ethreport -o nodes -F 'nodepat:d*:port:1'
ethreport -o nodes -F 'nodedetpat:compute*'
ethreport -o nodes -F 'nodedetpat:compute*:port:1'
ethreport -o nodes -F nodetype:NIC
ethreport -o nodes -F nodetype:NIC:port:1
ethreport -o nodes -F ifid:1
ethreport -o nodes -F ifid:1:node
ethreport -o nodes -F ifid:1:port:2
ethreport -o nodes -F chassisid:0x001175019800447b
ethreport -o nodes -F chassisid:0x001175019800447b:port:1
ethreport -o extlinks -F rate:100g
ethreport -o extlinks -F portstate:up
ethreport -o extlinks -F portphysstate:operational
ethreport -o extlinks -F 'portdetpat:*mgmt*'
ethreport -o links -F mtucap:2048
ethreport -o snapshot > file
ethreport -o topology > topology.xml
ethreport -o errors -X file

ethreport 可執行,沒有任何選項。在此模式下,它提供了網狀架構中的節點簡介、brnodes 報告。

小型網狀架構 ethreport 範例如下:

# ethreport
Getting All Node Records...
Done Getting All Fabric Records
Node Type Brief Summary
4 Connected NICs in Fabric:
IfAddr Type Name
 Port IfID PortId MgmtIfAddr Speed
0x00006805caa382c0 NIC coyote-ens785f0
 1 0xa86501 6805caa382c0 0x00006805caa382c0 100Gb
0x00006805caa382d0 NIC goblin-ens785f0
 1 0xa86502 6805caa382d0 0x00006805caa382d0 100Gb
0x00006805caa38370 NIC ogre-ens785f0
 1 0xa86504 6805caa38370 0x00006805caa38370 100Gb
0x00006805caa383c8 NIC duster-ens785f0
 1 0xa86503 6805caa383c8 0x00006805caa383c8 100Gb
1 Connected Switches in Fabric:
IfAddr Type Name
 Port IfID PortId MgmtIfAddr Speed
0x0000fcbd6762d279 SW edge1
 0 0x7f9f6c 0x0000fcbd6762d279 None
 1 Ethernet1/1 100Gb
 2 Ethernet2/1 100Gb
 3 Ethernet3/1 100Gb
 4 Ethernet4/1 100Gb
 5 Ethernet5/1 100Gb
 6 Ethernet6/1 100Gb
 7 Ethernet7/1 100Gb
 8 Ethernet8/1 100Gb
 67 Management1 <100Gb

每個ethreport 都能提供不同層次的細節。越來越詳細的顯示為進一步暗示其他資訊。ethreport 控制細節層級的-d 選項。預設值為 2。允許使用0-n 值。每個報告的最大細節各不相同,但大多數都不到五個細節層級。

注意

如果兩個計數器皆可用(透過使用統計資料標示或快照檔的輸入),並且使用足夠高的細節等級,則可以包括多個報告類型。通常,5 到 8 之間的詳細等級高到足以將每個埠計數器納入報告輸出中。有些報告,例如錯誤或使用旗標,例如 -F linkqual,已經代表使用 -d 8。

例如,當上一份報告以詳細等級 0 執行時,輸出如下:

# ethreport -d 0
Getting All Fabric Records...
Done Getting All Fabric Records
Node Type Brief Summary
4 Connected NICs in Fabric
1 Connected Switches in Fabric

下列範例會顯示網狀架構元件摘要。本報告與 ethfabricinfo 非常相似。在下一級的詳細資訊中,報告有更多細節:

# ethreport -d 1
Getting All Fabric Records...
Done Getting All Fabric Records
Node Type Brief Summary
4 Connected NICs in Fabric:
IfAddr Type Name
0x00006805caa38370 NIC ogre-eth2
0x00006805caa382d0 NIC goblin-eth2
0x00006805caa382c0 NIC coyote-eth2
0x00006805caa383c8 NIC duster-eth2
1 Connected Switches in Fabric:
IfAddr Type Name
0x0000fcbd6762d279 SW edge1

先前的範例全部使用單一報告執行 :brnodes (簡要節點) 報告。這只是 ethreport 能產生的眾多拓撲報告之一。

其他報告會概括網狀架構的現況。使用這些報告來分析網狀架構的配置,並確認安裝是否符合所需的設計與配置。

您可以在 Intel® Ethernet Fabric Suite FastFabric 使用者指南 中找到它們和所有其他命令列資訊。

我要如何使用 ethextractlink 工具列出在Intel® Ethernet Fabric Suite工作的所有系統連結?

ethextractlink 指令會產生 CSV 檔案,其中列出網狀架構中的所有或部分連結。ethextractlinkethreport 工具的前端。此工具的輸出可導入試算表,或由其他腳本解析。

語法:ethextractlink [ethreport options]

例子:

# List all the links in the fabric:
ethextractlink
# List all the links to a switch named "coresw1":
ethextractlink -F "node:coresw1"
# List all the links to end-nodes:
ethextractlink -F "nodetype:NIC"

 

相關主題
下載Intel® Ethernet Fabric Suite套件與使用指南 (Intel® EFS)