Skip to main content

Command Line Interface (CLI)

SEF-CLI is a versatile command line tool provided as a means of performing both SEF Unit configuration and administration and as a debugging tool. SEF-CLI requires superuser permissions to interact with and configure SEF Units.

The SEF-CLI uses a target-and-action paradigm. In other words, an action is applied to the given target. When using the command line interface, the first input is an action, and the second input is the target the action is applied to. For example, list sef applies the list action to the sef target and will list the available SEF Units.

The shortest unique prefix may be used to invoke an action on a target. For example, l se may be used to list SEF Units, since l and se each correspond to a unique action and target.

A list of all actions and targets can be printed using the --help or -h flag. The help functionality may be viewed in greater detail using the --verbose or -V flag. The detailed help function prints targets, actions, and options for each target. It also prints the default value for each option. All targets support the help action.

The SEF CLI Targets and Actions Table enumerates the built-in targets and their corresponding actions.

SEF CLI Targets and Actions

TargetActionAction Description
sef-unitlistPrint list of available SEF Units. Additional info is printed in verbose mode
infoPrints SEF Unit's information
helpPrint verbose help for the target
virtual-devicelistPrint list of created Virtual Devices. Commands to recreate same configuration is printed in verbose
drawPrint a map of created Virtual Devices
infoPrint a Virtual Device's information; Prints usage data in verbose mode
createCreate a new Virtual Device
deleteDelete Virtual Device. Virtual Device can only be deleted if it is empty
set-pslcSets the number of pSLC Super Blocks for a Virtual Device
set-suspend-configSets the suspend configuration for a Virtual Device
helpPrint verbose help for the target
qos-domainlistPrint list of available QoS Domains. Commands to recreate same configuration is printed in verbose
infoPrints QoS Domain's information
createCreate a new QoS Domain
deleteDelete QoS Domain. All storage allocated to the QoS Domain is returned to the Virtual Device
formatFormat QoS Domain. All storage allocated to the QoS Domain is returned to the Virtual Device, but the QoS Domain will not be removed
resizeChange size of existing QoS Domain
labelSet the label for an existing QoS Domain
backupBackup QoS Domain's stored data to a set of files
restoreRestore a set of backed up files to the QoS Domain
helpPrint verbose help for the target
ftlinfoPrints the SEF Block Module's information/configuration
configureConfigure the SEF Block Module
checkCheck the SEF Block Module's health, and repair if broken
helpPrint verbose help for the target
shellinteractiveAn Interactive shell to interact with the device in real time
executeExecute a Python script to interact with the device
helpPrint verbose help for the target