Using the CLI for managing gateway information
Get NVMe-oF gateway information and set log levels by using the command-line interface (CLI).
Before you begin
nvmeof-cli alias
setup. For more information about defining the alias, see step 1 of Defining an NVMe-oF subsystem.About this task
The following parameters are interchangeable:
- --level and -l
Use the commands listed here to manage your gateway information.
Getting the gateway version
nvmeof-cli --format FORMAT --server-address GATEWAY_IP --server-port SERVER_PORT gw version --output logFor
example,
[root@host01 ~]# nvmeof-cli --format json --server-address 10.172.19.01 --server port 5500 gw version --output log
Getting gateway information
nvmeof-cli --server-address GATEWAY_IP --server-port SERVER_PORT gw infoFor
example,
[root@host01 ~]# nvmeof-cli --server-address 10.172.19.01 --server port 5500 gw info
Getting the gateway log level
nvmeof-cli --server-address GATEWAY_IP --server-port SERVER_PORT gw get_log_levelFor
example,
[root@host01 ~]# nvmeof-cli --server-address 10.172.19.01 --server port 5500 gw get_log_level
Setting the gateway log level
The available log levels for input are: DEBUG, INFO, WARNING, ERROR, and CRITICAL.
nvmeof-cli --server-address GATEWAY_IP --server-port SERVER_PORT gw set_log_level --level LEVELThe
following example sets the log level to
INFO.[root@host01 ~]# nvmeof-cli --server-address 10.172.19.01 --server port 5500 gw set_log_level --level INFO