Networking NVIDIA UFM Cable Validation Tool

Run CVT as a Service

By default, the CVT container runs the collector as a persistent background service. In this mode CVT can:

  • stay up across logins and reboots of your shell session,

  • reload a topology and resume validation automatically at startup,

  • restart itself if it exits unexpectedly, and

  • rotate its own logs.

No extra steps are needed to enable service mode — the standard container startup (see Install CVT) starts it. The sections below cover the operations you may need day to day.

Automatic Startup Options

Configure these in cvt_env.conf (see CVT configuration reference > Startup behavior); they take effect at service start.

Setting

Effect

STARTUP_TOPOLOGY=last

Reloads the most recently used topology (all formats: .topo, .dot, .xlsx, .json)

STARTUP_TOPOLOGY=<path>

Loads a specific topology file at startup

STARTUP_CREDENTIALS_FILE=<path>

Loads a device-credentials file (.json/.ini/.cfg) at startup

AUTO_START_VALIDATION=true

Starts validation automatically after a topology loads successfully (uses the validation settings from history)

Typical unattended-restart configuration:

[application]
STARTUP_TOPOLOGY = last
AUTO_START_VALIDATION = true

With this, a container or host restart brings CVT back to validating without manual steps. Verify afterwards in the web interface that validation is running (see Start and stop validation).

Service Controls

The web interface is the primary way to control the service; see Start and stop validation and Collector Management. From inside the container, the equivalent supported commands are:

Task

Command

Start the CVT service

supervisorctl start cvt-service

Stop the CVT service

supervisorctl stop cvt-service

Restart (apply configuration changes)

supervisorctl restart cvt-service

Check status

supervisorctl status cvt-service

View live service log

supervisorctl tail cvt-service

The service also supports these command-line options (interactive/debug use):

Command

Description

cvt-service (no --daemon)

Runs in interactive mode — useful for debugging

cvt-service --kill-other-sessions

Terminates other running CVT sessions before starting

cvt-service --version

Prints the CVT service version

The service shuts down gracefully on stop signals; in interactive mode Ctrl-C once cancels the current operation, twice exits.

Service Logs

Logs live under /cable_bringup_root/log/ (persistent if you mapped a data volume — see Install CVT):

Log

Contents

cvt-service.log

CVT service output (startup, topology loading, validation, agent management)

bringup_collector.log

Collector operations log

bringup_agents.log

Agent-management activity on the collector

agents/<hostname>/

Per-agent logs, including deployment logs

cv_controller_service.log

Service-control (/cv_controller) log

apache2/access.log, apache2/error.log

Web access and web-server errors

postgres.log

Database (PostgreSQL) output

supervisor/supervisord.log

Process supervisor that starts and restarts the CVT services

apache2_wrapper.log

Web-server startup and performance-profile messages (request and error logs are in apache2/)

cv-data-archivist.log

Scheduled job that compresses and deletes old data directories

Rotation depends on the log class:

  • cvt-service.log, cv_controller_service.log, postgres.log, and apache2_wrapper.log rotate at 10 MB with 7 backups.

  • bringup_collector.log, bringup_agents.log, the per-agent logs, and cv-data-archivist.log rotate at 10 MB with 3 backups, and the backups are gzip-compressed.

  • The web-server access and error logs rotate at 50 MB with 10 backups.

The paths above are the same in both deployment modes. In UFM plugin mode, the same files can also be opened at /log/ inside the plugin container, and on the UFM host in /opt/ufm/files/log/, alongside UFM’s own logs. For retention of collected data (not logs), see CVT configuration reference > Data retention. Log retrieval from the web interface and API is documented in Collector Management and Logs APIs.

Useful searches:

Bash
grep -i error /cable_bringup_root/log/cvt-service.log
grep -Ei "topology|load" /cable_bringup_root/log/cvt-service.log
grep -i "validation" /cable_bringup_root/log/cvt-service.log

Troubleshooting

Service will not start

  1. Check status: supervisorctl status cvt-service

  2. Read the log: tail -f /cable_bringup_root/log/cvt-service.log

  3. If you recently changed configuration, re-check the values you edited in cvt_env.conf (a bad value can prevent startup).

Port conflicts — the CVT HTTPS port and internal service ports must be free on the host. Check with netstat -tlnp | grep -E ':(443|8251|8252)' and change the ports if needed (see Service and web ports).

Topology fails to load at startup — confirm the path (visible from inside the container) and format of the file named in STARTUP_TOPOLOGY, and check grep "Loading topology" /cable_bringup_root/log/cvt-service.log.

Slow or memory-constrained collector — reduce worker limits per Cluster sizing and tuning instead of editing process internals.

Running Interactively for Debugging

For focused debugging you can run the collector in the foreground:

  1. Stop the service: supervisorctl stop cvt-service

  2. Run interactively: /usr/local/bin/cvt-service (prefix with PYTHONUNBUFFERED=1 to see log output immediately)

  3. When done, exit and restart the service: supervisorctl start cvt-service

Note that while the service is stopped, automatic features (topology loading and validation start) are disabled; the web interface remains accessible for starting/stopping the service. For the full interactive command shell (topology load, agent deployment, validation commands), see CVT CLI reference.

Last updated: