You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Slurm login node (or single-node head node running slurmctld)
Schedules short srun worker steps across GPU nodes and queries the Slurm controller. Running from a compute node triggers a host role warning because it executes inside a job allocation.
Auditing a Slurm cluster, including Slurm on Kubernetes login pods.
cmax audit / cmax audit security (--k8s)
Any machine with kubectl access (workstation, bastion, or pod with RBAC)
Queries the Kubernetes API and schedules probe pods on GPU worker nodes. Running standalone on a single worker node or pod skips cluster-level checks.
Auditing a Kubernetes cluster (set KUBECONFIG if needed).
Directly on the target GPU host, VM, container, or local machine
Inspects only the local host (GPU, kernel, driver, container runtime) and skips scheduler and scale-out fabric checks. Triggers a host role warning on Slurm or Kubernetes nodes (override with --run-here, -y, or a target flag).
Auditing a single bare-metal server, VM, container, or workstation, or inspecting one node in isolation.
cmax audit review [PATH]
Any machine with saved audit artifacts (audit.values.json or audit.out)
Reads saved files offline without running checks or connecting to a cluster.
Reviewing past results locally or in CI (--no-interactive / --command).
Supported orchestrators and targets
Orchestrator / target
Flag
Auto-detected
Detection signal
Slurm
--slurm
✅
SLURM_JOB_ID, or sbatch in PATH
Kubernetes
--k8s
✅
KUBERNETES_SERVICE_HOST, or kubectl cluster-info succeeds
Slurm on Kubernetes (e.g. Slinky)
--slurm or --k8s
✅
Login pods with sbatch and reachable scontrol ping default to Slurm; when both Slurm and kubectl are reachable, the CLI prompts to choose unless --slurm, --k8s, or -y is passed
Standalone bare-metal host
--standalone
✅
Fallback on Linux when no orchestrator, VM, or container is detected
Virtual machine
--vm
✅
Linux VM hypervisor markers when no orchestrator is detected
Container
--container
✅
/.dockerenv, /run/.containerenv, or container cgroup markers when no orchestrator is detected
Local machine (macOS)
--local
✅
Darwin when no orchestrator is detected (Linux GPU checks report unavailable)
Directory structure
cmax/ CLI entry points, target selection, report formatting, minimum-version sync
cmax/scripts/1-audit/ Audit collectors (k8s, slurm, standalone), grading scripts, bundled minimum-versions.json
cmax/scripts/1-audit/checks/ Modular fabric, GPU, and system checks
docs/ Technical notes and policies
tests/ Automated test suite and fixtures
tools/ Public-data check script
Dependencies
Python >= 3.10
prompt-toolkit>=3.0.52,<4
PyYAML>=6
Dev extras (dev): build>=1, jsonschema>=4, pytest>=8, pytest-xdist>=3
CLI options
Top-level (cmax)
Option
Description
-h, --help
Show help and exit.
-v, -V, --version
Show installed version and exit.
Commands
Command
Description
cmax audit
Run the full cluster configuration, health, and security audit.
cmax audit security
Run the read-only security audit (versions and isolation). Exits with code 2 on critical findings.
cmax audit <profile>
Run one profile: versions, isolation, hardware, software, containers, orchestration, networking, storage, health, or access.
cmax audit review [PATH]
Review a saved audit directory, audit.values.json, or audit.out (defaults to the newest saved audit).
At launch, every live cmax audit run fetches the latest machine-readable table from minimum-versions.json and caches it in ~/.cache/clustermax/ (or $XDG_CACHE_HOME/clustermax/). When offline or when --no-fetch-minimums is passed, the CLI grades against the cached or bundled table. A CLI release that predates the table's schema version keeps its bundled table and asks you to update clustermax.