> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# runbooks

**Deprecated.** Avoid new adoption. Read the module's deprecation guidance.

Deprecated because it bundles infrastructure-specific diagnostics and recovery with their execution dependencies. Retained as an implementation reference for future replacement modules. No removal release is scheduled.

### Prerequisites

* Configured [command](https://github.com/dsx-ai-factory/remediation-orchestrator/blob/1785e695a8bff76c910115b3c96398a5a59a7183/fern/pages/reference/starlark/catalog.mdx#command) module.
* Operator-supplied diagnostic tools, assets and access for the selected procedures.

### Setup

* For existing installations, enable the module:

```toml
[modules.runbooks]
```

* Follow the [existing-installation guide](https://github.com/dsx-ai-factory/remediation-orchestrator/blob/1785e695a8bff76c910115b3c96398a5a59a7183/modules/runbooks/README.md#existing-installation-configuration) for procedure configuration.

> **Note**
>
> This module must be enabled in your Remediation Orchestrator config before it is available to scripts.

Host remediation and diagnostic suites using operator-installed tools. Functions accept a cluster_config describing the selected operation and return its diagnostic or remediation results.

## Members

* [bmc_reset](#bmc_reset)
* [cluster_config](#cluster_config)
* [collect_node_diagnostics](#collect_node_diagnostics)
* [dcgm_validation](#dcgm_validation)
* [enhanced_power_cycle](#enhanced_power_cycle)
* [ensure_boot](#ensure_boot)
* [get_post_code](#get_post_code)
* [get_power_state](#get_power_state)
* [gpu_reset](#gpu_reset)
* [graceful_shutdown](#graceful_shutdown)
* [health_check](#health_check)
* [image_config](#image_config)
* [make_test_output](#make_test_output)
* [mnst_iperf](#mnst_iperf)
* [mnst_megatron](#mnst_megatron)
* [mnst_nvlink](#mnst_nvlink)
* [power_cycle_node](#power_cycle_node)
* [power_reset_node](#power_reset_node)
* [set_power_state](#set_power_state)
* [single_node_validation](#single_node_validation)
* [test_suite_field_diags](#test_suite_field_diags)
* [test_suite_gb200](#test_suite_gb200)
* [test_suite_health_validation](#test_suite_health_validation)
* [test_suite_nccl_eud](#test_suite_nccl_eud)
* [triage_attempt_healthcheck](#triage_attempt_healthcheck)
* [triage_attempt_power_cycle](#triage_attempt_power_cycle)
* [triage_bmc_reset](#triage_bmc_reset)
* [triage_default](#triage_default)
* [triage_gpu_temp_history](#triage_gpu_temp_history)
* [triage_ib_interface](#triage_ib_interface)
* [triage_kill_task](#triage_kill_task)
* [triage_mlx_fw_reset](#triage_mlx_fw_reset)
* [validate_host_present](#validate_host_present)
* [verify_bmc_offline](#verify_bmc_offline)
* [verify_bmc_online](#verify_bmc_online)
* [wait_boot](#wait_boot)

## bmc_reset

Reset BMC on a node.

The cluster configuration.

The ID of the node whose BMC to reset.

The operation result.

## cluster_config

Construct a cluster configuration.

The cluster ID.

The legacy Artifactory user.

The current Artifactory user.

The BMC Redfish user.

The BMC network.

The BMC route.

The hardware model.

The datacenter name.

DCGM EUD test restrictions for cloud/virtualized environments (e.g., 'run_tests=compute,high_vf,memory,misc').

The Mellanox visible devices.

The WFRUN artifact name.

The WFRUN artifact version.

The WFRUN output path.

The WFRUN image download timeout.

The feature flags.

The provider log URL.

The log output base path.

The safe host Slurm reservations.

The safe host Slurm states.

The safe host Slurm partitions.

The DCA host Slurm reservations.

The control hostnames.

The NVSSVT profile to use.

List of NVSSVT tests to run (e.g., \['nccl', 'fma']). If empty, runs all tests.

The IST tarball name.

The source path for field diagnostics.

The number of GPUs per node.

Time to wait after BMC reset for devices to come online (e.g., '10m').

Time to wait between BMC operations like power off/on (e.g., '5m').

Time to wait between GPU driver unload attempts (e.g., '100ms').

Time to wait between reboot polling attempts (e.g., '1m').

Number of polling attempts before timing out (default: 60).

Time to wait after EUD cleanup and GPU stabilization (default: '120s').

The health image.

The screen test image.

The DCGM validation image.

The SNST NCCL loopback test image (overrides screen_test_image).

The SNST NCCL test image (overrides screen_test_image).

The SNST Nemotron test image (overrides screen_test_image).

The SNST configuration file.

The DCGM validation run level (default: 4).

Maximum retry attempts for infra errors (default: 3).

Initial delay between retries e.g. '15m', '30s' (default: '15m').

Backoff multiplier for exponential delay (default: 2.0).

Datacenter node ID of the scontrol node for hobbits-based SNST tests (required when a hobbits SNST feature flag is in feature_flags).

SDL test duration in seconds (default: 900).

Path to hobbits repo on scontrol node (required when a hobbits SNST feature flag is in feature_flags).

Slurm reservation for hobbits SNST tests (passed as --slurm-reservation).

Path to healthcheck.py on the node; empty uses the configured module default.

Slurm account for hobbits SNST tests (passed as --slurm-account when set).

The cluster configuration.

## collect_node_diagnostics

Collect diagnostic logs from a node, written to return nodes to OCI.

Dictionary of cluster configuration values including feature_flags.

The hostname of the node to collect diagnostics from.

A prefix for the object store path to which the results were written

## dcgm_validation

Run DCGM validation on a node. Calls dcgmi diag directly without any wrapper test suites.

The cluster configuration. Replayed legacy workflows require dcgm_image.

The ID of the node to validate.

DCGM diagnostic run level (1=quick, 2=medium, 3=extended, 4=full). Defaults to cluster config value or 4.

The DCGM validation results report.

## enhanced_power_cycle

Perform a complete power cycle with comprehensive status reporting. Returns detailed outcome for agent decision-making.

The cluster configuration.

The ID of the node to power cycle.

Whether to wait for SSH login availability after boot.

Comprehensive result with outcome, failure_reason, and observable state.

## ensure_boot

Ensure a node boots successfully, retrying with ForceRestart if stuck.

The cluster configuration.

The ID of the node to boot.

The result containing boot status and attempt count.

## get_post_code

Get the current BIOS POST code of a node.

The cluster configuration.

The ID of the node to query.

The POST code result. Code 'e3' indicates OS is loading.

## get_power_state

Get the current chassis power state of a node.

The cluster configuration.

The ID of the node to query.

The power state result containing the current state (On/Off).

## gpu_reset

Reset GPUs on a node after safely quiescing GPU services. Example: result = runbooks.gpu_reset(config, node_id, fail_on_error=False, additional_services=\['provider-collector']).

The cluster configuration.

The ID of the node whose GPUs to reset.

Whether to treat underlying errors as fatal (default true). When false, returns success=false with message and category.

Provider-specific services to quiesce in addition to the default GPU services.

The result of the GPU reset operation.

## graceful_shutdown

Attempt a graceful OS-level shutdown on a node.

The cluster configuration.

The ID of the node to shut down.

The result indicating if shutdown was initiated.

## health_check

Run health check on a node.

The cluster configuration.

The ID of the node to health check.

Deprecated: Whether to use the direct ssh connection to run the health check. Healthcheck always runs via SSH.

The health check results report.

## image_config

Construct an image configuration.

The container registry host.

The organization in the container registry.

The team in the container registry.

The name of the container image.

The tag of the container image.

The image configuration.

## make_test_output

Create a test output for testing purposes. This is a helper function for creating fake test outputs.

The type of test output (e.g., 'health_check').

The result data as a JSON string.

The created test output.

## mnst_iperf

Multi-node screen test for N/S IP network throughput via iperf

The cluster configuration.

List of DatacenterNodes participating in the test.

The hostname of the orchestrator node.

The image URI containing multiperf.

The image URI containing an iperf binary.

The tests to run.

Timeout for Wfrun.

The results of the test.

## mnst_megatron

Generic wrapper around arbitrary megatron-lm pretrain_gpt.py tests.

The cluster configuration.

List of DatacenterNodes participating in the test.

The hostname of the orchestrator node.

The image URI containing multimegatron.

The image URI containing the necessary CUDA drivers to run megatron-lm.

Arguments to pass to `pretrain_gpt.py`.

Path to pretrain_gpt.py, inclusive, from megatron-lm within a shared filesystem accessible to all nodes.

Average TFLOP/s that must be reached by each GPU to be considered passing. This is checked for every evaluation interval.

Slurm reservation to run the tests within.

Timeout for Slurm.

Timeout for Wfrun.

The results of the test.

## mnst_nvlink

Multi-node network test for NVLink connectivity via nccl-tests.

The cluster configuration.

List of DatacenterNodes participating in the test.

The hostname of the orchestrator node.

The image URI containing multiperf.

The image URI containing an iperf binary.

The NCCL tests to run.

Arguments for the NCCL tests.

Constraints for the tests.

Slurm reservation to run the tests within.

Timeout for Slurm.

Timeout for Wfrun.

The results of the test.

## power_cycle_node

Power cycle a node.

The cluster configuration.

The ID of the node to power cycle.

Whether to treat underlying errors as fatal (default true). When false, returns Success=false and message.

Whether the node was successfully power cycled.

## power_reset_node

Power reset a node.

The cluster configuration.

The ID of the node to power reset.

Whether to treat underlying errors as fatal (default true). When false, returns Success=false and message.

Whether the node was successfully power reset.

## set_power_state

Set the chassis power state of a node.

The cluster configuration.

The ID of the node to control.

The desired power state: On, Off, ForceOff, GracefulShutdown, or ForceRestart.

The result indicating if the state was set.

## single_node_validation

Run validation tests on a single node.

The cluster configuration.

The ID of the node to validate.

Whether to fail on the first failure.

Whether to run SNST tests (when feature flag enabled).

Require a durable direct-SSH EUD report for artifact-based reporting. Allows at most one eud feature per invocation. Requires objectstore; publication failures return an infrastructure error even when fail_fast is false. Legacy wfrun execution is unchanged.

Single node validation results.

## test_suite_field_diags

Run field diagnostics on a node.

The cluster configuration.

The ID of the node to run diagnostics on.

Whether to fail on the first failure.

Whether the node is healthy.

## test_suite_gb200

Run the GB200 test suite on a node. Deprecated: Use test_suite_nccl_eud instead for consistent return type.

The cluster configuration.

The ID of the node to run the GB200 test suite on.

Whether to fail on the first failure. To do a screen test, set this to false.

Whether the node is healthy.

## test_suite_health_validation

Validate health of test suite for a node.

The cluster configuration.

The ID of the node to validate.

## test_suite_nccl_eud

Run the GB200 test suite on a node.

The cluster configuration.

The ID of the node to run the GB200 test suite on.

Whether to fail on the first failure. To do a screen test, set this to false.

Single node validation results.

## triage_attempt_healthcheck

Attempt to run a healthcheck for triage on a node.

The cluster configuration.

The ID of the node to run healthcheck on.

Triage results.

## triage_attempt_power_cycle

Attempt to power cycle a node as part of triage.

The cluster configuration.

The ID of the node to power cycle.

Triage results.

## triage_bmc_reset

Reset the BMC of a node as part of triage.

The cluster configuration.

The ID of the node whose BMC to reset.

Triage results.

## triage_default

Run default triage operations on a node.

The cluster configuration.

The ID of the node to run default triage on.

Triage results.

## triage_gpu_temp_history

Check GPU temperature history on a node as part of triage.

The cluster configuration.

The ID of the node to check GPU temperature history on.

Triage results.

## triage_ib_interface

Run IB interface triage on a node.

The cluster configuration.

The ID of the node to run IB interface triage on.

Triage results.

## triage_kill_task

Check whether a node drained with 'Kill task failed' is safe to return, without changing it.

The cluster configuration.

The ID of the node to run kill task triage on.

Triage results. Success means the node has no stuck processes, no GPU holders, enough disk space and a passing health check.

## triage_mlx_fw_reset

Reset Mellanox firmware on a node as part of triage.

The cluster configuration.

The ID of the node to reset MLX firmware on.

Triage results.

## validate_host_present

Validate that a host is present.

The cluster configuration.

The ID of the node to validate.

Whether to fail on error.

The result of the validation.

## verify_bmc_offline

Verify that a node's BMC is offline (not responding).

The cluster configuration.

The ID of the node to check.

The result indicating if BMC is offline.

## verify_bmc_online

Verify that a node's BMC is online (responding).

The cluster configuration.

The ID of the node to check.

The result indicating if BMC is online.

## wait_boot

Wait for a node to boot by monitoring POST codes.

The cluster configuration.

The ID of the node to monitor.

The result containing boot status and POST code.