nvme-config-validate1
Validate an nvme-of ini connection configuration file
Usage
nvme config
validate
[{--config=<file> | -J
<file>}]
[{--verbose | -v}]
Overview
Parses and validates the NVMe-oF INI connection configuration file used by nvme connect-all and nvme discover. The INI format is documented at https://github.com/linux-nvme/nvme-cli/blob/master/libnvme/design/CONFIG.md
By default, the file at /usr/local/etc/nvme/nvme-fabrics.conf is validated. Use --config to validate a file at a different path instead, for example before installing it as the system configuration.
On success, <file>: OK is printed and the command exits with status 0. If the file is malformed, <file>: invalid configuration is printed along with diagnostic details, and the command exits with a non-zero status. A missing file is also reported as an error, not treated as an empty, valid configuration.
Options
-
-J <file>, --config=<file> -
Validate this INI file instead of the default /usr/local/etc/nvme/nvme-fabrics.conf.
-
-v, --verbose -
Increase the level of detail in the output.
Examples
• Validate the system’s configuration:
# nvme config validate
• Validate a configuration file before installing it as the system configuration:
$ nvme config validate --config /tmp/nvme-fabrics.conf
Nvme
Part of the nvme-user suite