Skip to main content

Command Reference

Complete reference of available S9S commands for efficient cluster management.

Command Mode

Press : to enter command mode (vim-style). Commands support tab completion for both command names and arguments.

Using Tab Completion

  • Command completion: Type :req and press Tab to complete to :requeue
  • Argument completion: Type :cancel and press Tab to see available job IDs
  • Smart suggestions: Completions are context-aware based on cached view data

Examples:

:req<Tab>           → :requeue
:requeue <Tab>      → Shows: 12345, 12346, 12347...
:drain nod<Tab>     → Shows: node01, node02, node03...
:q<Tab>             → Shows: q, qos, quit

Available Commands

CommandDescriptionShortcut
:jobsSwitch to jobs view1
:nodesSwitch to nodes view2
:partitionsSwitch to partitions view3
:reservationsSwitch to reservations view4
:qosSwitch to QoS view5
:accountsSwitch to accounts view6
:usersSwitch to users view7
:dashboardSwitch to dashboard8
:healthSwitch to health view9
:performanceSwitch to performance view0
:help or :hShow help?
:quit or :qExit S9Sq

View Management Commands

CommandDescriptionExample
:refresh or :rRefresh current view:refresh
:prefs or :preferencesShow preferences:prefs
:layout or :layoutsShow layout switcher:layout
:config or :configuration or :settingsShow configuration:config

Job Management Commands

CommandDescriptionExampleAutocomplete
:cancel JOBIDCancel a specific job:cancel 12345Job IDs from active jobs
:hold JOBIDHold a specific job:hold 12345Job IDs from active jobs
:release JOBIDRelease a held job:release 12345Job IDs from active jobs
:requeue JOBIDRequeue a failed/completed job:requeue 12345Job IDs from active jobs

Tab Completion: After typing the command and pressing space, press Tab to see available job IDs from the currently loaded jobs view.

Note: These commands operate on specific job IDs. For batch operations on selected jobs in the UI, use the keyboard shortcuts (c, h, r) described in the Interactive Operations section.

Node Management Commands

CommandDescriptionExampleAutocomplete
:drain NODE [REASON]Drain a node (make unavailable for new jobs):drain node01 maintenanceNode names from active nodes
:resume NODEResume a drained node:resume node01Node names from active nodes

Tab Completion: After typing the command and pressing space, press Tab to see available node names from the currently loaded nodes view.

Note: The reason for draining is optional. If not provided, defaults to "Drained via s9s command".

Template Management Commands

Manage job submission templates from the command line. Templates can originate from three sources: builtin (shipped with s9s), config (defined in your configuration file), and saved (user-exported templates stored on disk).

CommandDescriptionExample
s9s templates listList all templates with sources9s templates list
s9s templates exportExport templates to ~/.s9s/templates/s9s templates export
s9s templates export NAMEExport a specific templates9s templates export "GPU Job"
s9s templates export --forceOverwrite existing filess9s templates export --force
s9s templates export --dir PATHExport to custom directorys9s templates export --dir /tmp/templates

Example output of s9s templates list:

NAME                   SOURCE    DESCRIPTION
Basic Batch Job        builtin   Simple batch job for serial computations
GPU Training Job       config    PyTorch training on GPU partition
My Custom Job          saved     Custom template from user

See Job Submission Configuration for details on defining templates in your configuration file.

Filtering

KeyAction
/Quick filter (type to filter current view)
EscClear filter

Interactive Operations

S9S provides interactive keyboard shortcuts for common operations within each view:

Jobs View:

KeyAction
cCancel selected job
HHold selected job
rRelease selected job
dShow job dependencies
oShow job output
EnterShow job details
SpaceToggle selection
vVisual selection mode

Nodes View:

KeyAction
sSSH to selected node
dDrain selected node
rResume drained node
iToggle idle state filter
EnterShow node details
SpaceToggle group expansion

Batch Operations:

  • Select multiple items using Space or v (visual mode)
  • Use keyboard shortcuts on selections for batch operations
  • See Batch Operations Guide for details

Export Commands

Export functionality is available through the interactive UI:

Available Formats:

  • CSV (.csv)
  • JSON (.json)
  • Markdown (.md)
  • Text (.txt)
  • HTML (.html)

Access Export:

  • Press e in any view to open export dialog
  • Select format and destination
  • Configure export options interactively

Keyboard Shortcuts

Global Shortcuts

KeyAction
q / QQuit
?Help
Ctrl+CQuit
Ctrl+KCluster switcher
EscClear/Cancel
F1Help
F5Refresh
KeyAction
1Jobs view
2Nodes view
3Partitions view
4Reservations view
5QoS view
6Accounts view
7Users view
8Dashboard view
9Health view
0Performance view
hPrevious view
lNext view
TabNext view
Shift+TabPrevious view

View-Specific Shortcuts

Jobs View:

KeyAction
cCancel job
HHold job
rRelease job
dShow dependencies
oShow output
EnterShow details

Nodes View:

KeyAction
sSSH to node
dDrain node
iToggle idle filter
EnterNode details

Selection Shortcuts:

KeyAction
SpaceToggle selection
v / VToggle multi-select mode

Filtering Shortcuts

KeyAction
/Quick filter
EscClear filter

Export Shortcuts

KeyAction
eExport dialog (all data views)

Advanced Features

Visual Selection Mode

Select multiple items for batch operations:

# Enter visual mode
Press v

# Select range with arrow keys
Use ↑/↓ to expand selection

# Apply operation to selection
Press c to cancel selected jobs
Press h to hold selected jobs
Press r to release selected jobs

Filter Syntax

Press / for plain text search across all columns. Press Ctrl+F in any data view to open global search across all entity types. The advanced filter bar supports field-specific expressions:

# Advanced filter examples (Ctrl+F)
# Filter by user
user=alice

# Filter by state
state=RUNNING

# Filter by partition
partition=gpu

# Combine filters
user=alice state=RUNNING partition=gpu

# Numeric comparisons
nodes>4 priority>=1000

See the Filtering Guide for comprehensive filter documentation.

SSH to Nodes

SSH functionality is available in the Nodes view:

# Navigate to Nodes view
:nodes

# Select a node with arrow keys
# Press 's' to open SSH session

# SSH terminal opens in the UI
# Exit SSH session to return to S9S

Getting Help

Command-Specific Help

:help                    # General help
?                        # Quick help

Documentation Resources

Next Steps