Skip to content

Add nemoclaw debug command for collecting diagnostic information #500

Description

@cv

Summary

Add a nemoclaw debug CLI command that collects system and environment diagnostic information to help triage bug reports. The output should go to stdout and also be packaged as a tarball that users can attach to GitHub issues.

Motivation

When users open GitHub issues, we often lack the system context needed to diagnose problems. This leads to back-and-forth requests for debug info, slowing down triage. A single command that captures everything we need will reduce observability gaps and speed up issue resolution.

Requirements

CLI command

  • Add nemoclaw debug as a new CLI command (similar pattern to nemoclaw uninstall)
  • Also create a standalone bash script in scripts/ so users can run it via curl or from a cloned repo
  • Output should go to stdout and also be saved as a tarball

Diagnostic information to collect

System basics:

date
uname -a
uptime
free -m
df -h

Process info:

ps -ef
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head -30
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head -30
top -b -n 1 | head -50

GPU:

nvidia-smi
nvidia-smi dmon -s pucvmet -c 10
nvidia-smi --query-gpu=name,utilization.gpu,utilization.memory,memory.total,memory.used,temperature.gpu,power.draw --format=csv

Docker:

docker ps -a
docker stats --no-stream
docker info
docker system df
docker logs --tail 200 <container_name>
docker inspect <container_name>

OpenShell:

openshell status
openshell gateway info
openshell sandbox list
openshell sandbox get <sandbox_name>
openshell sandbox logs <sandbox_name>

Network:

ss -ltnp
ip addr
ip route
cat /etc/resolv.conf
nslookup integrate.api.nvidia.com
curl -I -s https://integrate.api.nvidia.com/v1/models
lsof -i -P -n
lsof -i :18789

Kernel/IO:

vmstat 1 5
iostat -xz 1 5
dmesg | tail -100

Sandbox internals (if accessible):

openshell sandbox connect <sandbox_name>
ps -ef
free -m
top -b -n 1 | head -50
tail -200 /tmp/gateway.log

Minimal diagnostic set

For a quick support ask, collect at minimum:

free -m
uptime
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head -30
docker ps -a
docker stats --no-stream
docker logs --tail 200 <container_name>
openshell status
openshell sandbox list
openshell sandbox get <sandbox_name>
openshell sandbox logs <sandbox_name>
nvidia-smi
dmesg | tail -100

Consider supporting nemoclaw debug --quick for this subset.

Additional work

  • Update the bug/issue template to reference nemoclaw debug and ask users to attach the tarball
  • Handle commands that aren't available gracefully (e.g., no GPU, no Docker) — skip and note in output
  • Redact or warn about potentially sensitive information (IPs, hostnames, etc.)

Participants

  • @ahunnargikar (proposed the diagnostics list)
  • @kjw3 (suggested CLI command + script + tarball approach)
  • @wscurran (suggested integration into issue template)
  • @ericksoa (approved nemoclaw debug naming)
  • @cv (assigned)

Activity

  1. wscurran commented on Mar 20, 2026

    @wscurran
    Contributor

    Thanks for suggesting the addition of a nemoclaw debug command to collect system and environment diagnostic information, which would be really helpful for triaging bug reports.

  2. added
    area: cli
    area: observability
    enhancement
    and removed on Jun 3, 2026
  3. removed
    enhancement
    on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: cliarea: observability

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions