Networking NVIDIA UFM Cable Validation Tool

CVT CLI Reference

The CLI is optional. All operations are available through the web interface, which is the recommended way to use CVT. Use the CVT CLI (bringupcli) for scripting, troubleshooting with support, or batch operations.

Prerequisites: shell access to the collector container (docker exec) and an admin role. The CVT service must be stopped before starting the CLI (see below).

Starting the CLI

The CLI and the CVT service cannot run at the same time. First stop the CVT service — from the web interface or with supervisorctl stop cvt-service (Control the CVT service) — then start the CLI:

Bash
docker exec -it cables_bringup bringupcli

When you are done, exit the CLI and start the service again (web interface or supervisorctl start cvt-service).

CLI options: -h/--help (usage), -V/--version (CVT version), -k/--kill-other-sessions (terminate other CLI sessions first), -d/--daemon (run as daemon — internal; use the service instead, see Control the CVT service).

Interactive/debug use of the service itself (not this CLI) is covered in Run CVT as a service.

For help inside the CLI, run help or help <command>; exit leaves the shell; version prints the application version.

Load a Topology

Safe first steps — these load data into CVT and change what is validated:

load_topo <filename> [dns=<true|false>]

Loads a topo file (InfiniBand) or dot file (Ethernet). dns (default true) assumes device names resolve in DNS; set false when using an IP file.

load_ptp <filename> format=unified_topo dns=<true|false>
         sheets=<sheet1,sheet2>

Loads a P2P Excel file. Use format=unified_topo — it supports IB, ETH, XDR, and NVLink. The legacy_ib and legacy_eth formats are deprecated and not recommended. sheets limits loading to the named sheets. For legacy formats only, dc_layout=<file> and hca_mapping=<file> attach the optional companion CSV files; see Optional Files.

load_ip <filename>

Loads an IP↔︎hostname mapping file (pairs per line, # comments allowed) for fabrics without DNS, used together with a topo file. Not needed when device names resolve in DNS, or when the unified PTP file already carries device IPs in its Nodes IP column.

load <topo filename> <ip filename>

Loads a topo file and an IP file together.

Configure Credentials

For the full credential model and precedence, see Run Validation > Step 2.

show_creds [format=json|report]              # display credentials for all nodes
set_default_creds user=<user> pwd=<pwd> [type=<switch|host>] [save=<true|false>]
set_node_creds <device> user=<user> pwd=<pwd> [save=<true|false>]
remove_node_creds <device>
set_credential_profile <profile_name> user=<user> pwd=<pwd> [save=<true|false>]
remove_credential_profile <profile_name>

Notes: default type is switch; with save=true (default) credentials are stored encrypted. Credential profiles correspond to the CredentialProfile column in the unified PTP Nodes sheet.

Deploy and Remove Agents

deploy_agents all
deploy_agents <ip1> <ip2> ...
remove_agents all
remove_agents <ip1> <ip2> ...

Deploy requires devices to pass pre-checks (or use the web interface’s Force deploy); see Run Validation > Step 4.

Deprecated: deploy_all_agents, deploy_single_agent, remove_all_agents, remove_single_agent — use deploy_agents / remove_agents instead; the old commands will be removed in a coming release. load ... file1 file2 ... multi-file loading will also be deprecated — merge the files instead.

Control Validation

start_validation [timeout=<n>]
stop_validation

timeout uses s/m/h/d suffixes (for example timeout=20m, timeout=2h); without it, run stop_validation to stop. These are the CLI equivalents of the UI Start/Stop Validation actions (Run Validation > Step 5).

Inspect the Fabric and Results

show_switches                                 # loaded switches and their links
check_switch_status                           # Ping / JSON API / agent connectivity
show_statistics                               # issue summary for the loaded topology
show_switch_history [switch ...] [past=1w] [start_time=.. end_time=..] [prev=..]
amber_show_latest                             # latest collected Amber data
show_incoming_reports [show=true|false]

Example outputs (neutral names):

Cable Bringup: check_switch_status
Host                IP             Ping  JSONAPI  Agent
------------------  -------------  ----  -------  -----
sw-ib-01            192.168.10.11  True  True     True
sw-ib-02            192.168.10.12  True  True     True
Cable Bringup: show_statistics
Status                               Number of occurrences  Nodes affected
-----------------------------------  ---------------------  --------------
Wrong-neighbor                       0                      0
Anomalous-port (Signal, Temperature) 0                      0
...
Correctly-wired                      ...

Manage Web Users (Standalone Deployments)

For the full role model and safeguards see Users Management; the web interface is the primary place to manage users.

add_web_login user=<user> pwd=<pwd> account_type=<type>
update_web_user user=<user> [pwd=<pwd>] [account_type=<type>]
delete_web_user user=<user>
show_web_users

Account types: cabler, admin, nvidia, developer — the same set as User Management in the web interface; capabilities are defined there.

Certificates

add_certificate <crt file> <key_file>

Updates the TLS certificate of the web interface; the previous certificate is backed up. Supported in 2.1.0 as a CLI fallback — stopping the CVT service is mandatory before running this command (see Starting the CLI). Otherwise the web interface is the recommended path (Configure TLS certificates).

Last updated: