ethxmlgenerate(8)
π ethxmlgenerate(8) π
okay bestie, welcome to the EFSFFCLIRG man page for ethxmlgenerate, and honestly? she's a whole mood. β¨
πΈ NAME πΈ
ethxmlgenerate β takes comma-separated-values (CSV) as input and generates sequences of XML containing user-specified element names and element values within start and end tag specifications. Use this tool to create an XML representation of fabric data from its CSV form. π¦
π Syntax π
ethxmlgenerate [-v] [-d delimiter] [-i number] [-g element]
[-h element] [-e element] [-X input_file] [-P param_file]
β¨ Options β¨
--helpβ Produces full help text. she's helpful like that π-g/--generateelement β Generates an XML element with given name, using value in next field from the input file. Can be used multiple times on the command line. Values are assigned to elements in order. it's giving template energy π₯-h/--headerelement β Specifies the name of the XML element that is the enclosing header start tag. π-e/--endelement β Specifies the name of the XML element that is the enclosing header end tag. the closer, the finale, the periodt π-d/--delimitdelimiter β Specifies the delimiter character that separates values in the input file. Default is semicolon. ngl a semicolon default is lowkey unhinged but okay π«Ά-i/--indentnumber β Specifies the number of spaces to indent each level of XML output. Default is0. pretty-printing? we love to see it β¨-X/--infileinput_file β Generates XML from CSV in input_file. One record per line with fields in each record separated by the specified delimiter. π-P/--pfileparam_file β Uses input command line options (parameters) from param_file. ποΈ-v/--verboseβ Produces verbose output. Includes output progress reports during extraction. she's telling you everything bestie π
π Details π
ethxmlgenerate takes the CSV data from an input file. It generates fragments of XML, and in combination with a script, can be used to generate complete XML sequences. ethxmlgenerate does not use nor require a connection to an Intel(R) Ethernet Fabric. no fabric? no problem, she works solo π§
ethxmlgenerate reads CSV element values and applies element (tag) names to those values. The element names are supplied as command line options to the tool and constitute a template that is applied to the input. it's literally a template era π
Element names on the command line are of three types, distinguished by their command line option: Generate, Header, and Header_End. The Header and Header_End types together constitute enclosing element types. Enclosing elements do not contain a value, but serve to separate and organize Generate elements. π
Generate elements, along with a value from the CSV input file, cause XML in the form of <element_name> value</element_name> to be generated. Generate elements are normally the majority of the XML output since they specify elements containing the input values. Header elements cause an XML header start tag of the form <element_name> to be generated. Header_End elements cause an XML header end tag of the form </element_name> to be generated. Output of enclosing elements is controlled entirely by the placement of those element types on the command line.
π¨ not me warning you: ethxmlgenerate does not check for matching start and end tags or proper nesting of tags. she trusts you. fully. maybe too much. π
Options (parameters) to ethxmlgenerate can be specified on the command line, with a parameter file, or both. A parameter file is specified with -P param_file. When a parameter file specification is encountered on the command line, option processing on the command line is suspended, the parameter file is read and processed entirely, and then command line processing is resumed. Option syntax within a parameter file is the same as on the command line. Multiple parameter file specifications can be made on the command line or within other parameter files. At each point that a parameter file is specified, current option processing is suspended while the parameter file is processed, then resumed. Options are processed in the order they are encountered on the command line or in parameter files.
π the limits, bestie: a parameter file can be up to8192bytes in size and may contain up to512parameters.
π Using ethxmlgenerate to Create Topology Input Files π
ethxmlgenerate can be used to create scripts to translate from user-specific format into the ethreport topology_input file format. ethxmlgenerate itself works against a CSV style file with one line per record. Given such a file, it can produce hierarchical XML output of arbitrary complexity and depth. iconic behaviour, no cap π
The typical flow for a script that translates from a user-specific format into ethreport topology_input would be:
- As needed, reorganize the data into link and node data CSV files, in a sequencing similar to that used by
ethreporttopology_input. One link record per line in one temporary file and one node record per line in another temporary file. π¦ - The script must directly output the boilerplate for XML version, etc. β¨
ethxmlgeneratecan be used to output the Link section of thetopology_input, using the link record temporary file. πethxmlgeneratecan be used to output the Node sections of thetopology_inputusing the node record temporary file. If desired, there could be separate node record temporary files for NIC s and Switches. π₯οΈ- The script must directly output the closing XML tags to complete the
topology_inputfile. π
okay that's the whole page, you ate that bestie π«Άπ this gem is from EFSFFCLIRG (Man Page), copyright Copyright(C) 2020-2024, Intel Corporation β and yeah, ethxmlgenerate(8) is that girl. go generate some XML, periodt β¨ππ
π¦ 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