Skip to main content
This document provides an overview of all available snctl commands, global options, and subcommands for managing SambaRack systems.

Command structure

The basic command structure is:

Global options

Global options can be used with any snctl command.

—log-level

Set the logging level for the current command execution. Example:

—snctl-dir

Override the base directory for configuration and logs. Default is ~/.snctl. Example:

—version, -v

Display the CLI version and exit. Example:

Subcommands

config

Manage SambaRack Manager configuration. config init The config init command provides an interactive wizard to:
  • Set folder location for configuration files (default: ~/.snctl)
  • Generate a new encryption key
  • Create an empty inventory file
  • Set service account for GCS access (optional)
  • Configure logs directory (optional)
This command requires an empty directory. If configuration files already exist in the target directory, initialization aborts.
config show Displays the current configuration information. Example output:
See Initial Setup for detailed instructions.

doctor

Check system dependencies and environment configuration to ensure your system is ready to use SambaRack Manager.
This command checks for required system binaries and tools. Example output (all dependencies met):

secret

Manage encrypted device credentials. See Device Credentials for detailed instructions.

rack

Manage racks and rack-level devices.
Rack IDs can range from 001 to 255.
See Rack Administration for detailed instructions.

node

Manage nodes and perform power operations.
Nodes are added automatically to SambaRack Manager when a rack is added. There is no command to add a node directly.
See Node Administration for detailed instructions.

group

Manage groups of racks for batch operations.
Group names should be alphanumeric.
See Group Administration for detailed instructions.

device

Manage device firmware and perform device-level operations. See Device Administration for detailed instructions.

Getting help

To get help for any command or subcommand: