Aruba cx config

From automateyournetwork/netclaw · View interactive version

Aruba cx config is an AI agent skill from the GitHub repository automateyournetwork/netclaw. View and manage Aruba CX switch configurations, perform ISSU upgrades, and firmware operations

How to use this skill

Skill file

Aruba CX Configuration Management

View running and startup configurations, save configuration changes, and perform In-Service Software Upgrades (ISSU) on HPE Aruba CX switches. Write operations require ITSM approval for production environments.

When to Use

MCP Server

Available Tools

| Tool | Parameters | What It Does |

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

| get_running_config | target, section? | Get current active configuration |

| get_startup_config | target | Get saved startup configuration |

| get_routing_table | target, vrf? | Get IP routing table entries |

| get_issu_status | target | Get ISSU upgrade status |

| save_config | target, cr_number? | Save running config to startup (ITSM-gated) |

| issu_upgrade | target, image, cr_number? | Initiate ISSU upgrade (ITSM-gated) |

| upload_firmware | target, source, destination, cr_number? | Upload firmware image (ITSM-gated) |

| download_firmware | target, source, destination, cr_number? | Download firmware from switch (ITSM-gated) |

Workflow Examples

Configuration Viewing

# View running config
"Show the running configuration for core-sw-1"

# View specific section
"Show the interface configuration for core-sw-1"

# View startup config
"Show the startup configuration for core-sw-1"

# Compare configs
"Are there unsaved changes on core-sw-1?"

Routing Table

# View routing table
"Show the routing table for core-sw-1"

# Check specific VRF
"Show routes in VRF management on core-sw-1"

# Find default route
"What's the default gateway on core-sw-1?"

Configuration Save (ITSM-Gated)

# Save configuration (requires CR when ITSM enabled)
"Save the running configuration on core-sw-1 with CR CHG0001234"

# Verify save
"Is the configuration saved on core-sw-1?"

ISSU Operations (ITSM-Gated)

# Check ISSU status
"What's the ISSU status on core-sw-1?"

# Check if upgrade in progress
"Is there an upgrade running on core-sw-1?"

# Initiate ISSU upgrade (requires CR)
"Upgrade core-sw-1 to firmware 10.14.1000 with CR CHG0001234"

# Monitor upgrade progress
"What's the ISSU progress on core-sw-1?"

Firmware Management (ITSM-Gated)

# Upload firmware image
"Upload firmware from tftp://10.1.1.100/AOS-CX_10.14.1000.swi to core-sw-1 with CR CHG0001234"

# Download firmware backup
"Download the current firmware from core-sw-1 to backup location with CR CHG0001234"

# Check firmware images
"What firmware images are on core-sw-1?"

ITSM Integration

Write operations require change management approval:

| Environment Variable | Behavior |

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

| ITSM_ENABLED=false | Write operations proceed without CR validation |

| ITSM_ENABLED=true | Write operations require valid ServiceNow CR number |

| ITSM_LAB_MODE=true | CR format validated but not checked against ServiceNow |

CR Format: Must match ServiceNow pattern (e.g., CHG0001234)

ITSM-Gated Operations:

Integration with Other Skills

Response Examples

Running Config Response

{
  "type": "running",
  "content": "hostname core-sw-1\n!\nvlan 1\nvlan 100\n  name Management\n...",
  "checksum": "abc123",
  "last_modified": "2026-04-08T10:00:00Z"
}

Routing Table Response

[
  {
    "destination": "0.0.0.0/0",
    "next_hop": "10.1.1.1",
    "interface": "vlan100",
    "protocol": "static",
    "metric": 1,
    "admin_distance": 1
  },
  {
    "destination": "10.0.0.0/8",
    "next_hop": "10.1.1.2",
    "interface": "vlan200",
    "protocol": "ospf",
    "metric": 100,
    "admin_distance": 110
  }
]

ISSU Status Response

{
  "state": "idle",
  "progress": 0,
  "target_version": null,
  "start_time": null,
  "error_message": null
}

ISSU In-Progress Response

{
  "state": "upgrading",
  "progress": 65,
  "target_version": "10.14.1000",
  "start_time": "2026-04-08T14:00:00Z",
  "error_message": null
}

Save Config Response

{
  "success": true,
  "message": "Configuration saved",
  "checksum": "def456"
}

Error Handling

| Error Code | Meaning | Resolution |

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

| AUTH_FAILED | Invalid credentials | Verify username/password in ARUBA_CX_TARGETS |

| CONN_TIMEOUT | Switch unreachable | Check network connectivity |

| CR_REQUIRED | ITSM CR required | Provide cr_number parameter when ITSM_ENABLED |

| CR_INVALID | CR validation failed | Verify CR format (CHG0001234) and status |

| SAVE_FAILED | Config save failed | Check switch storage and permissions |

| ISSU_NOT_SUPPORTED | Switch not ISSU capable | Use traditional upgrade method |

| ISSU_IN_PROGRESS | Upgrade already running | Wait for current upgrade to complete |

| ISSU_FAILED | Upgrade failed | Check error_message in ISSU status |

| FIRMWARE_NOT_FOUND | Firmware image not found | Verify source path/URL |

| TRANSFER_FAILED | Firmware transfer failed | Check network connectivity and storage |

ISSU State Machine

idle → downloading (firmware download started)
downloading → staging (image validated)
staging → upgrading (ISSU in progress)
upgrading → complete (success)
upgrading → failed (error occurred)
failed → idle (error cleared)
complete → idle (upgrade finished)

Notes

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.