ethextracterror(8)
β¨ NAME β¨
ethextracterror β bestie, it makes a CSV file listing all (or just some) of the per port errors chillin' in your current fabric. π
It's a front end to the ethreport tool, so like, it's not doing the heavy lifting itself, it's just the cute face. The output can be imported into a spreadsheet or parsed by other scripts β whatever your heart desires. And hey, it also works as a sample for building your own custom per port reports. DIY queen energy. π
π« Syntax π«
ethextracterror [ethreport options]
π Options π
--helpβ spills the full help text, all of it, no gatekeeping.
π¦ ethreport options π¦
These get passed through to ethreport. The set below is the "typical and useful" subset for this command, iykyk. And heads up: by design, this tool just ignores the -o/--output report option. It said no thank you, not today. π
-X/--infilesnapshot_input β makes a report using the data inside the snapshot_input file. That file has to have been generated during a previous-o snapshotrun, no shortcuts. You can pass'-'as the snapshot_input to mean stdin. π-T/--topologytopology_input β uses the topology_input file to augment and verify fabric info. When you use it, various reports can get augmented with info that just isn't available electronically.'-'may be used to specify stdin. β¨-E/--ethconfig_file β specifies the Ethernet management configuration file. Default is the/etc/eth-tools/mgt_config.xmlfile.-pplane β specifies the name of the enabled plane defined in the Mgt config file. Default is the first enabled plane.-F/--focuspoint β specifies the focus area for the report. Used to limit the scope of the report. Refer to Point Syntax for details. π
πΈ Point Syntax πΈ
Okay so this is the part where you tell it exactly where to look. Slay.
ifid:valueβ value is a numeric ifid.ifid:value:nodeβ value is a numeric ifid; selects the node with the given ifid.ifid:value:port:value2β value is the numeric ifid of a node, value2 is a port number.ifid:value:portid:value2β value is the numeric ifid of a node, value2 is a port id.mgmtifaddr:valueβ value is a numeric port mgmtifaddr.ifaddr:valueβ value is a numeric node ifaddr.ifaddr:value1:port:value2β value1 is a numeric node ifaddr, value2 is a port number.ifaddr:value1:portid:value2β value1 is a numeric node ifaddr, value2 is a port id.chassisid:valueβ value is a numeric chassisid.chassisid:value1:port:value2β value1 is a numeric chassisid, value2 is a port number.chassisid:value1:portid:value2β value1 is a numeric chassisid, value2 is a port id.node:valueβ value is a node description (node name).node:value1:port:value2β value1 is a node description (node name), value2 is a port number.node:value1:portid:value2β value1 is a node description (node name), value2 is a port id.nodepat:valueβ value is a glob pattern for node description (node name).nodepat:value1:port:value2β value1 is the glob pattern for the node description (node name), value2 is a port number.nodepat:value1:portid:value2β value1 is the glob pattern for the node description (node name), value2 is a port id.nodedetpat:valueβ value is a glob pattern for node details.nodedetpat:value1:port:value2β value1 is the glob pattern for the node details, value2 is a port number.nodedetpat:value1:portid:value2β value1 is the glob pattern for the node details, value2 is a port id.nodetype:valueβ value is a node type (SWorNIC).nodetype:value1:port:value2β value1 is a node type (SWorNIC), value2 is a port number.nodetype:value1:portid:value2β value1 is a node type (SWorNIC), value2 is a port id.rate:valueβ value is a string for rate (25g,50g,75g,100g), and it omits switch mgmt port0.portstate:valueβ value is a string for state (up,down,testing,unknown,dormant,notactive).portphysstate:valueβ value is a string for PHYs state (other,unknown,operational,standby,shutdown,reset).mtucap:valueβ value is MTU size (maximum size65535), and it omits switch mgmt port0.linkdetpat:valueβ value is a glob pattern for link details.portdetpat:valueβ value is a glob pattern for port details.nodepatfile:FILENAMEβ specifies the name of the file with the list of nodepats or node descriptions.nodepairpatfile:FILENAMEβ specifies the name of the file with the list of node pairs, separated by a colon.ldrβ specifies the ports with a non-zero link down reason or neighbor link down reason.ldr:valueβ specifies the ports with a link down reason or neighbor link down reason equal to value.
π₯ Examples π₯
List all the link errors in the fabric:
ethextracterror
List all the link errors related to a switch named "coresw1":
ethextracterror -F "node:coresw1"
List all the link errors for end-nodes:
ethextracterror -F "nodetype:NIC"
Copyright(C) 2020-2024 Intel Corporation
EFSFFCLIRG (Man Page) β that's the manual name btw, and that copyright is Intel's, 2020 through 2024, so give credit where it's due. π«Ά Go read the errors, bestie. π
π¦ where this page comes from
- centos-stream 9: eth-tools-fastfabric 1:12.1.0.0-4.el9 Β· BSD
- fedora 43: eth-tools-fastfabric 1:12.1.0.0-151.fc43 Β· BSD-3-Clause
- fedora 44: eth-tools-fastfabric 1:12.1.0.1-6.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: eth-fastfabric 11.7.0.0-160000.2.2 Β· BSD-3-Clause OR GPL-2.0-only
- Copyright 2020-2024, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms