Scroll to navigation

ethextractperf(8) EFSFFCLIRG (Man Page) ethextractperf(8)

NAME

ethextractperf

Provides a report of all the per port performance counters in a CSV format suitable for importing into a spreadsheet or parsed by other scripts for further analysis. It does this by generating a detailed ethreport component summary report and piping the result to ethxmlextract, extracting element values for NodeDesc, Chassis ID, PortNum, and all the performance counters. Extraction is performed only from the Systems portion of the report, which does not contain Neighbor information (the Neighbor portions are suppressed). This script can be used as a sample for creating custom per port reports.

Syntax

ethextractperf [ethreport options]

Options

Produces full help text.

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.

-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.

-p plane Specifies the 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

value is numeric ifid.

value is numeric ifid, selects node with given ifid.

value is numeric ifid of node, value2 is port number.

value is numeric ifid of node, value2 is port id.

value is numeric port mgmtifaddr.

value is numeric node ifaddr.

value1 is numeric node ifaddr, value2 is port number.

value1 is numeric node ifaddr, value2 is port id.

value is numeric chassisid.

value1 is numeric chassisid, value2 is port number.

value1 is numeric chassisid, value2 is port id.

value is node description (node name).

value1 is node description (node name), value2 is port number.

value1 is node description (node name), value2 is port id.

value is glob pattern for node description (node name).

value1 is the glob pattern for the node description (node name), value2 is port number.

value1 is the glob pattern for the node description (node name), value2 is port id.

value is glob pattern for node details.

value1 is the glob pattern for the node details, value2 is port number.

value1 is the glob pattern for the node details, value2 is port id.

value is node type (SW or NIC).

value1 is node type (SW or NIC), value2 is port number.

value1 is node type (SW or NIC), value2 is port id.

value is string for rate (25g, 50g, 75g, 100g), omits switch mgmt port 0.

value is a string for state (up, down, testing, unknown, dormant, notactive).

value is a string for PHYs state (other, unknown, operational, standby, shutdown, reset).

value is MTU size (maximum size 65535), omits switch mgmt port 0.

value is glob pattern for link details.

value is glob pattern for port details.

Specifies the name of file with the list of nodepats or node descriptions.

Specifies the name of file with the list of node pairs, separated by a colon.

Specifies the ports with a non-zero link down reason or neighbor link down reason.

Specifies the ports with a link down reason or neighbor link down reason equal to value.

The portion of the script that calls ethreport and ethxmlextract follows:

ethreport -o comps -x -d 10 "$@" | /usr/sbin/ethxmlextract -d \; \

-e NodeDesc -e ChassisID -e PortNum -e PortId -e LinkSpeedActive \

-e IfHCOutOctetsMB -e IfHCOutOctets -e IfHCOutUcastPkts \

-e IfHCOutMulticastPkts -e IfHCInOctetsMB -e IfHCInOctets \

-e IfHCInUcastPkts -e IfHCInMulticastPkts \

-e Dot3HCStatsInternalMacTransmitErrors \

-e Dot3HCStatsInternalMacReceiveErrors -e Dot3HCStatsSymbolErrors \

-e IfOutErrors -e IfInErrors -e IfInUnknownProtos \

-e Dot3HCStatsAlignmentErrors -e Dot3HCStatsFCSErrors \

-e Dot3HCStatsFrameTooLongs -e IfOutDiscards -e IfInDiscards \

-e Dot3StatsCarrierSenseErrors -e Dot3StatsSingleCollisionFrames \

-e Dot3StatsMultipleCollisionFrames -e Dot3StatsSQETestErrors \

-e Dot3StatsDeferredTransmissions -e Dot3StatsLateCollisions \

-e Dot3StatsExcessiveCollisions -s Neighbor

Example

ethextractperf

Intel Corporation Copyright(C) 2020-2024