🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Nomad Backup

by @macdesire

Query HashiCorp Nomad clusters. List jobs, nodes, allocations, evaluations, and services. Read-only operations for monitoring and troubleshooting.

Versionv1.0.0
Downloads663
TERMINAL
clawhub install nomad-backup

πŸ“– About This Skill


name: nomad version: 1.0.0 description: Query HashiCorp Nomad clusters. List jobs, nodes, allocations, evaluations, and services. Read-only operations for monitoring and troubleshooting. homepage: https://github.com/danfedick/nomad-skill metadata: {"clawdbot":{"emoji":"πŸ“¦","requires":{"bins":["nomad"]}}}

Nomad Skill

Query HashiCorp Nomad clusters using the nomad CLI. Read-only operations for monitoring and troubleshooting.

Requirements

  • nomad CLI installed
  • NOMAD_ADDR environment variable set (or defaults to http://127.0.0.1:4646)
  • NOMAD_TOKEN if ACLs are enabled
  • Commands

    Jobs

    List all jobs:

    nomad job status
    

    Get job details:

    nomad job status 
    

    Job history:

    nomad job history 
    

    Job deployments:

    nomad job deployments 
    

    Allocations

    List allocations for a job:

    nomad job allocs 
    

    Allocation details:

    nomad alloc status 
    

    Allocation logs (stdout):

    nomad alloc logs 
    

    Allocation logs (stderr):

    nomad alloc logs -stderr 
    

    Follow logs:

    nomad alloc logs -f 
    

    Nodes

    List all nodes:

    nomad node status
    

    Node details:

    nomad node status 
    

    Node allocations:

    nomad node status -allocs 
    

    Evaluations

    List recent evaluations:

    nomad eval list
    

    Evaluation details:

    nomad eval status 
    

    Services

    List services (Nomad native service discovery):

    nomad service list
    

    Service info:

    nomad service info 
    

    Namespaces

    List namespaces:

    nomad namespace list
    

    Variables

    List variables:

    nomad var list
    

    Get variable:

    nomad var get 
    

    Cluster

    Server members:

    nomad server members
    

    Agent info:

    nomad agent-info
    

    JSON Output

    Add -json to most commands for JSON output:

    nomad job status -json
    nomad node status -json
    nomad alloc status -json 
    

    Filtering

    Use -filter for expression-based filtering:

    nomad job status -filter='Status == "running"'
    nomad node status -filter='Status == "ready"'
    

    Common Patterns

    Find failed allocations

    nomad job allocs  | grep -i failed
    

    Get logs from latest allocation

    nomad alloc logs $(nomad job allocs -json  | jq -r '.[0].ID')
    

    Check cluster health

    nomad server members
    nomad node status
    

    Environment Variables

  • NOMAD_ADDR β€” Nomad API address (default: http://127.0.0.1:4646)
  • NOMAD_TOKEN β€” ACL token for authentication
  • NOMAD_NAMESPACE β€” Default namespace
  • NOMAD_REGION β€” Default region
  • NOMAD_CACERT β€” Path to CA cert for TLS
  • NOMAD_CLIENT_CERT β€” Path to client cert for TLS
  • NOMAD_CLIENT_KEY β€” Path to client key for TLS
  • Notes

  • This skill is read-only. No job submissions, stops, or modifications.
  • Use nomad-tui for interactive cluster management.
  • For job deployment, use nomad job run directly.
  • πŸ“‹ Tips & Best Practices

  • This skill is read-only. No job submissions, stops, or modifications.
  • Use nomad-tui for interactive cluster management.
  • For job deployment, use nomad job run directly.