ethextracterror(8)

πŸ“¦ version 12.1.0.1, in centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

✨ 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/--infile snapshot_input β€” makes a report using the data inside the snapshot_input file. That file has to have been generated during a previous -o snapshot run, no shortcuts. You can pass '-' as the snapshot_input to mean stdin. πŸ“
  • -T/--topology topology_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/--eth config_file β€” specifies the Ethernet management configuration file. Default is the /etc/eth-tools/mgt_config.xml file.
  • -p plane β€” specifies the name of the enabled plane defined in the Mgt config file. Default is the first enabled plane.
  • -F/--focus point β€” 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 (SW or NIC).
  • nodetype:value1:port:value2 β€” value1 is a node type (SW or NIC), value2 is a port number.
  • nodetype:value1:portid:value2 β€” value1 is a node type (SW or NIC), value2 is a port id.
  • rate:value β€” value is a string for rate (25g, 50g, 75g, 100g), and it omits switch mgmt port 0.
  • 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 size 65535), and it omits switch mgmt port 0.
  • 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