Sdwan ops

From automateyournetwork/netclaw · View interactive version

Sdwan ops is an AI agent skill from the GitHub repository automateyournetwork/netclaw. Cisco SD-WAN vManage read-only operations — fabric devices, WAN Edge inventory, templates, policies, alarms, events, interface stats, BFD sessions, OMP routes, control connections, running config. Use when checking SD-WAN fabric health, viewing vManage alarms, auditing SD-WAN policies and templates,

How to use this skill

Skill file

Cisco SD-WAN Operations

MCP Server

How to Call Tools

python3 $MCP_CALL "python3 -u $SDWAN_MCP_SCRIPT --transport stdio" <tool_name> '<args_json>'

Available Tools (12)

| Tool | Parameters | What It Does |

|------|-----------|--------------|

| get_devices | none | List all fabric devices — vManage, vSmart, vBond, vEdge with status |

| get_wan_edge_inventory | none | WAN Edge details: serial number, chassis ID, model, version |

| get_device_templates | none | All device templates with attached device count |

| get_feature_templates | none | All feature templates (VPN, interface, routing, security) |

| get_centralized_policies | none | Centralized policy definitions (traffic engineering, QoS, security) |

| get_alarms | none | Active alarms across the fabric with severity |

| get_events | none | Recent audit events and operational logs |

| get_interface_stats | device_ip | Interface statistics for a specific device (throughput, errors, drops) |

| get_bfd_sessions | device_ip | BFD session status for device-to-device connectivity health |

| get_omp_routes | device_ip | OMP routes — received and advertised routes per device |

| get_control_connections | device_ip | DTLS/TLS control connections between fabric nodes |

| get_running_config | device_ip | Full running configuration for a device |

Workflow: SD-WAN Fabric Health Check

When a user asks about SD-WAN health or status:

  1. Fabric overview: get_devices — verify all controllers and edges are reachable
  2. WAN Edge inventory: get_wan_edge_inventory — check serial numbers, versions
  3. Alarms: get_alarms — identify active issues (CRITICAL, MAJOR, MINOR)
  4. Control plane: get_control_connections for key devices — verify DTLS/TLS tunnels
  5. BFD health: get_bfd_sessions for key devices — check tunnel health
  6. Report: Fabric status summary with severity-sorted findings
  7. GAIT: Record all queries in audit trail

Example: Fabric Health

# List all fabric devices
python3 $MCP_CALL "python3 -u $SDWAN_MCP_SCRIPT --transport stdio" get_devices '{}'

# Check active alarms
python3 $MCP_CALL "python3 -u $SDWAN_MCP_SCRIPT --transport stdio" get_alarms '{}'

# Check BFD sessions on a WAN edge
python3 $MCP_CALL "python3 -u $SDWAN_MCP_SCRIPT --transport stdio" get_bfd_sessions '{"device_ip":"10.10.10.100"}'

# Check OMP routes on a WAN edge
python3 $MCP_CALL "python3 -u $SDWAN_MCP_SCRIPT --transport stdio" get_omp_routes '{"device_ip":"10.10.10.100"}'

Workflow: SD-WAN Policy Audit

When auditing SD-WAN templates and policies:

  1. Device templates: get_device_templates — list all templates with device counts
  2. Feature templates: get_feature_templates — inspect VPN, interface, routing, security templates
  3. Centralized policies: get_centralized_policies — review traffic engineering and security policies
  4. Config verification: get_running_config for target device — confirm template-applied config
  5. Report: Template and policy audit with recommendations

Example: Policy Audit

# List device templates
python3 $MCP_CALL "python3 -u $SDWAN_MCP_SCRIPT --transport stdio" get_device_templates '{}'

# List centralized policies
python3 $MCP_CALL "python3 -u $SDWAN_MCP_SCRIPT --transport stdio" get_centralized_policies '{}'

# Get running config for a specific device
python3 $MCP_CALL "python3 -u $SDWAN_MCP_SCRIPT --transport stdio" get_running_config '{"device_ip":"10.10.10.100"}'

Workflow: SD-WAN Troubleshooting

When investigating SD-WAN connectivity or performance:

  1. Device status: get_devices — is the device reachable via vManage?
  2. Control connections: get_control_connections — DTLS/TLS tunnel state
  3. BFD sessions: get_bfd_sessions — tunnel health between sites
  4. OMP routes: get_omp_routes — are routes being exchanged?
  5. Interface stats: get_interface_stats — throughput, errors, drops
  6. Events: get_events — recent operational events for timeline correlation
  7. Running config: get_running_config — verify configuration matches intent

Integration with Other Skills

| Skill | Integration |

|-------|-------------|

| pyats-network | CLI-level verification of SD-WAN edge devices via SSH |

| gait-session-tracking | Record all vManage queries in GAIT audit trail |

| markmap-viz | Visualize SD-WAN fabric topology as mind map |

| uml-diagram | Generate SD-WAN architecture diagrams (nwdiag, sequence) |

| servicenow-change-workflow | Reference SD-WAN audit findings in CRs |

Important Rules

Error Handling

Environment Variables

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.