用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/automateyournetwork/netclaw --skill aruba-cx-config命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | aruba-cx-config |
| description | View and manage Aruba CX switch configurations, perform ISSU upgrades, and firmware operations |
| license | Apache-2.0 |
| user-invocable | true |
| metadata | {"openclaw":{"requires":{"bins":"[Truncated]","env":"[Truncated]"}}} |
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.
aruba-cx-mcp (community MCP from slientnight)python3 -u mcp-servers/aruba-cx-mcp/aruba_cx_mcp_server.py (stdio transport)ARUBA_CX_TARGETS (JSON array) or ARUBA_CX_CONFIG (file path)ITSM_ENABLED=true| 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) |
# 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?"
# 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?"
# 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?"
# 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?"
# 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?"
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:
save_config - Saving running config to startupissu_upgrade - Initiating software upgradeupload_firmware - Uploading firmware imagesdownload_firmware - Downloading firmware images{
"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"
}
[
{
"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
}
]
{
"state": "idle",
"progress": 0,
"target_version": null,
"start_time": null,
"error_message": null
}
{
"state": "upgrading",
"progress": 65,
"target_version": "10.14.1000",
"start_time": "2026-04-08T14:00:00Z",
"error_message": null
}
{
"success": true,
"message": "Configuration saved",
"checksum": "def456"
}
| 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 |
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)