Watch
1
0
Fork
You've already forked nvmetcli
0
No description
  • Python 93.1%
  • Makefile 4.8%
  • Go Template 1.6%
  • Shell 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Baumann 5eb41d78b9
Tidying depends for debhelper 14.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-09-02 09:03:20 +02:00
.github Merging upstream version 0.9. 2026-08-20 14:33:27 +02:00
debian Tidying depends for debhelper 14. 2026-09-02 09:03:20 +02:00
Documentation Adding upstream version 0.8+20260713. 2026-07-31 15:22:08 +02:00
examples Adding upstream version 0.8+20260713. 2026-07-31 15:22:08 +02:00
nvmet Merging upstream version 0.9. 2026-08-20 14:33:27 +02:00
rpm Merging upstream version 0.9. 2026-08-20 14:33:27 +02:00
.gitignore Merging upstream version 0.9. 2026-08-20 14:33:27 +02:00
bump-ver.sh Merging upstream version 0.9. 2026-08-20 14:33:27 +02:00
COPYING Adding upstream version 0.8+20260713. 2026-07-31 15:22:08 +02:00
fc.json Adding upstream version 0.8+20260713. 2026-07-31 15:22:08 +02:00
loop.json Adding upstream version 0.8+20260713. 2026-07-31 15:22:08 +02:00
Makefile Merging upstream version 0.9. 2026-08-20 14:33:27 +02:00
nvmet.service Adding upstream version 0.8+20260713. 2026-07-31 15:22:08 +02:00
nvmetcli Merging upstream version 0.9. 2026-08-20 14:33:27 +02:00
pyproject.toml Merging upstream version 0.9. 2026-08-20 14:33:27 +02:00
rdma.json Adding upstream version 0.8+20260713. 2026-07-31 15:22:08 +02:00
README Merging upstream version 0.9. 2026-08-20 14:33:27 +02:00
setup.cfg Adding upstream version 0.8+20260713. 2026-07-31 15:22:08 +02:00
tcp.json Adding upstream version 0.8+20260713. 2026-07-31 15:22:08 +02:00

nvmetcli
========
This contains the NVMe target admin tool "nvmetcli".  It can either be
used interactively by invoking it without arguments, or it can be used
to save, restore or clear the current NVMe target configuration.

Installation
------------
Please install the configshell-fb package from
https://github.com/open-iscsi/configshell-fb first.

nvmetcli can be run directly from the source directory or installed
using pip install .

Common Package Dependencies and Problems
-----------------------------------------
Python3 is supported.

nvmetcli uses the 'pyparsing' package -- running nvmetcli without this
package may produce hard-to-decipher errors.

Usage
-----
Look at Documentation/nvmetcli.txt for details.

Example NVMe Target .json files
--------------------------------------
To load the loop + explicit host version above do the following:

  ./nvmetcli restore loop.json

Or to load the rdma + no host authentication version do the following
after you've ensured that the IP address in rdma.json fits your setup:

  ./nvmetcli restore rdma.json

Or to load the fc + no host authentication version do the following
after you've ensured that the port traddr FC address information in
fc.json fits your setup:

  ./nvmetcli restore fc.json

Or to load the tcp + no host authentication version do the following
after you've ensured that the IP address in tcp.json fits your setup:

  ./nvmetcli restore tcp.json

These files can also be edited directly using your favorite editor.

Testing
-------
nvmetcli comes with a testsuite that tests itself and the kernel configfs
interface for the NVMe target.  To run it make sure you have nose2 and
coverage installed and simple run 'make test'.  To run all
the tests you also need some test block devices or files.  Default is to
use /dev/ram0 and /dev/ram1.  You can override default with environmental
variable eg. NVMET_TEST_DEVICES="/dev/sdk,/dev/sdj" make test .

Development
-----------------
Please send patches and bug reports to linux-nvme@lists.infradead.org for
review and acceptance.