stafctl

nvme-stas
Mr Martin Belanger
Dell, Inc.
stafctl 1
stafctl STorage Appliance Finder (STAF) utility program
`stafctl` OPTIONS COMMAND OPTIONS

## Description

`stafctl` is a tool that can be used to communicate with the stafd 8 daemon to retrieve operational data.

## Commands

The following commands are understood:

`ls`

  Show the list of discovery controllers. This will list all the controllers configured in stafd.conf 5 as well as those discovered with mDNS service discovery.

`dlp`

  Show discovery log pages.

`adlp`

  Show all discovery log pages.

## Options

The following options are understood:

## Values

## Exit status

On success, 0 is returned; otherwise, a non-zero failure code is returned.

## Examples

List all the discovery controllers

    $ stafctl ls
    [{'device':      'nvme0',
      'host-iface':  '',
      'host-traddr': '',
      'subsysnqn':   'nqn.2014-08.org.nvmexpress.discovery',
      'traddr':      '::1',
      'transport':   'tcp',
      'trsvcid':     '8009'}]

Enable tracing

    $ stafctl tron

Show discovery log pages from a specific discovery controller

    $ stafctl dlp --transport tcp --traddr ::1 --trsvcid 8009
    [{'adrfam':  'ipv6',
      'asqsz':   '32',
      'cntlid':  '65535',
      'portid':  '1',
      'subnqn':  'nqn.1988-11.com.dell:PowerSANxxx:01:20210225100113-454f73093ceb4847a7bdfc6e34ae8e28',
      'subtype': 'nvme',
      'traddr':  '::1',
      'treq':    'disable sqflow',
      'trsvcid': '8009',
      'trtype':  'tcp'},
     {'adrfam':  'ipv6',
      'asqsz':   '32',
      'cntlid':  '65535',
      'portid':  '1',
      'subnqn':  'nqn.1988-11.com.dell:PowerSANxxx:01:20210225100113-454f73093ceb4847a7bdfc6e34aedead',
      'subtype': 'nvme',
      'traddr':  '::1',
      'treq':    'disable sqflow',
      'trsvcid': '8009',
      'trtype':  'tcp'},
     {'adrfam':  'ipv6',
      'asqsz':   '32',
      'cntlid':  '65535',
      'portid':  '1',
      'subnqn':  'nqn.1988-11.com.dell:PowerSANxxx:01:20210225100113-454f73093ceb4847a7bdfc6e34aebeef',
      'subtype': 'nvme',
      'traddr':  '::1',
      'treq':    'disable sqflow',
      'trsvcid': '8009',
      'trtype':  'tcp'}]

## See Also

stafd.conf 5 , stafd 8