Mstconfig Commands; Mstconfig Backup Command; Generating An Xml Template For The Configurations - Nvidia MSTFLINT Manual

Burning and diagnostics tools
Hide thumbs Also See for MSTFLINT:
Table of Contents

Advertisement

mstconfig Commands

mstconfig Backup Command

The backup command is used to save the current non-volatile configurations (TLV) in the device into a
file in raw TLV syntax so it can be restored anytime using the set_raw command.
mstconfig backup command allows backing up the all of the configurations which are related only to
the PCI Physical Function associated with the given MST device. To back up all of the device
configurations, perform the operation from every PCI Physical Function the device exposes. Restoring
the configurations must be made from the matching PCI Physical Function.
In a MultiHost environment, these operations are required to be executed per host.
# mstconfig -d
41:00.0
Collecting...
Saving output...
Done!
# cat /tmp/backup.conf
MLNX_RAW_TLV_FILE
% TLV Type: 0x00000400, Writer ID: ICMD mstCONFIG(0x09), Writer Host ID:
0x00000014 0x00000400 0x00000000 0x00000000 0x000e0000 0x001000f6 0x20160526
0x11250000
# mstconfig -d
41:00.0
Raw TLV
#1
Info:
Length:
0x14
Version:
0
OverrideEn:
0
Type:
0x00000400
Data:
0x00000000 0x000e0000 0x001000f6 0x20160526 0x11250000
Operation intended
Are you sure you want to apply raw TLV file? ? (y/n) [n] : y
Applying... Done!
-I- Please reboot machine to load

Generating an XML Template for the Configurations

Users can generate an XML file that contains a template for the configurations. The template describes
the configurations and their parameters. No values are included in the template.
To generate such a template, run the gen_tlvs_file command. This command will generate a
file containing a list of all supported configurations by mstconfig, with a zero appearing in the end
of each configuration. To choose a configuration, change the 0 to 1, then save the file and run
the gen_xml_template command. An XML file containing the required configurations will be generated.
Example:
# mstconfig gen_tlvs_file /tmp/confs.txt
Saving output...
Done!
# cat /tmp/confs.txt
nv_host_to_bmc
nv_kdnet_data
nv_fpga_data
nv_packet_pacing
nv_debug_mode
nv_global_pci_conf
-f /tmp/backup.conf backup
-f /tmp/backup.conf set_raw
for
advanced users.
new
0
0
0
0
0
0
configurations.
0x00
29

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mellanox mstflint

Table of Contents