ethextractsellinks(8)

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

πŸ’– NAME πŸ’–

okay bestie, meet ethextractsellinks πŸ’… β€” yes she's a section 8 page, yes she's from the EFSFFCLIRG man page set, and yes she is that girl.

She produces a CSV file listing all or some of the links in the fabric ✨

ethextractsellinks is literally a front end to the ethreport tool, no cap. The output from this tool can be imported into a spreadsheet or parsed by other scripts πŸ“ And listen β€” this script can be used as a sample for creating custom per link reports. iconic behavior fr fr.


✨ SYNTAX ✨

ethextractsellinks [ethreport  options]

πŸŽ€ OPTIONS πŸŽ€

  • --help β€” Produces full help text. she's helpful like that 🫢
  • ethreport options β€” The following options are passed to ethreport. This subset is considered typical and useful for this command. By design, the tool ignores -o/--output report option. πŸ‘€ (not me ignoring the output option, she said what she said)
    • -X, --infile snapshot_input β€” Generates a report using the data in the snapshot_input file. snapshot_input must have been generated during a previous -o snapshot run. '-' may be used as the snapshot_input to specify stdin πŸ’œ
    • -T, --topology topology_input β€” Uses topology_input file to augment and verify fabric information. When used, various reports can be augmented with information not available electronically. '-' may be used to specify stdin 🌸
    • -E, --eth config_file β€” Specifies the Ethernet management configuration file. Default is /etc/eth-tools/mgt_config.xml file. (yes, that's the default, memorise it bestie πŸ’…)
    • -p plane β€” Name of the enabled plane defined in Mgt config file, Default is the first enabled plane. πŸ¦‹
    • -F, --focus point β€” Specifies the focus area for report. Used to limit scope of report. Refer to Point Syntax for details πŸ‘‘

πŸ¦‹ POINT SYNTAX πŸ¦‹

this is the part where the vibes get specific, and we love her for it 😭 every one of these is a little filter for your fabric:

  • ifid:value β€” value is numeric ifid.
  • ifid:value:node β€” value is numeric ifid, selects node with given ifid.
  • ifid:value:port:value2 β€” value is numeric ifid of node, value2 is port number.
  • ifid:value:portid:value2 β€” value is numeric ifid of node, value2 is port id.
  • mgmtifaddr:value β€” value is numeric port mgmtifaddr.
  • ifaddr:value β€” value is numeric node ifaddr.
  • ifaddr:value1:port:value2 β€” value1 is numeric node ifaddr, value2 is port number.
  • ifaddr:value1:portid:value2 β€” value1 is numeric node ifaddr, value2 is port id.
  • chassisid:value β€” value is numeric chassisid.
  • chassisid:value1:port:value2 β€” value1 is numeric chassisid, value2 is port number.
  • chassisid:value1:portid:value2 β€” value1 is numeric chassisid, value2 is port id.
  • node:value β€” value is node description (node name).
  • node:value1:port:value2 β€” value1 is node description (node name), value2 is port number.
  • node:value1:portid:value2 β€” value1 is node description (node name), value2 is port id.
  • nodepat:value β€” value is glob pattern for node description (node name).
  • nodepat:value1:port:value2 β€” value1 is the glob pattern for the node description (node name), value2 is port number.
  • nodepat:value1:portid:value2 β€” value1 is the glob pattern for the node description (node name), value2 is port id.
  • nodedetpat:value β€” value is glob pattern for node details.
  • nodedetpat:value1:port:value2 β€” value1 is the glob pattern for the node details, value2 is port number.
  • nodedetpat:value1:portid:value2 β€” value1 is the glob pattern for the node details, value2 is port id.
  • nodetype:value β€” value is node type (SW or NIC).
  • nodetype:value1:port:value2 β€” value1 is node type (SW or NIC), value2 is port number.
  • nodetype:value1:portid:value2 β€” value1 is node type (SW or NIC), value2 is port id.
  • rate:value β€” value is string for rate (25g, 50g, 75g, 100g), 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), omits switch mgmt port 0.
  • linkdetpat:value β€” value is glob pattern for link details.
  • portdetpat:value β€” value is glob pattern for port details.
  • nodepatfile:FILENAME β€” Specifies the name of file with the list of nodepats or node descriptions.
  • nodepairpatfile:FILENAME β€” Specifies the name of 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 🌈

bestie these are so clean, look:

# List all the links in the fabric:

ethextractsellinks
# List all the links to a switch named "coresw1":

ethextractsellinks -F "node:coresw1"
# List all the connections to end-nodes:

ethextractsellinks -F "nodetype:NIC"

like?? she ate that πŸ’…βœ¨


πŸ’– one (1) tiny sign-off from your girl: this page is Copyright(C) 2020-2024 Intel Corporation, and it lives in the EFSFFCLIRG man page set β€” same name in the corner, ethextractsellinks(8), top and bottom, always. stay slay, go pull those links πŸŒΈπŸ¦‹πŸŽ€
πŸ“¦ where this page comes from