get_running_config
Read filtered running configuration from a Ruckus ICX switch with secrets redacted, in CLI or YANG format, to support configuration review and change recommendations.
Instructions
Read the switch's running configuration, filtered to what you need. Secrets (passwords, keys, SNMP communities) are always redacted.
Formats:
"cli": FastIron CLI text (
show running-configover SSH). Best for recommending config changes, since it matches what an admin would type."yang": structured JSON from the RESTCONF config datastore.
"auto" (default): YANG via RESTCONF, unless you pass a CLI-only option (section, match, list_sections), which uses CLI.
YANG workflow: call with no args to get top-level subtree sizes if large, then
pass yang_path (e.g. "interfaces", "openconfig-spanning-tree:stp" -> use "stp").
CLI workflow: list_sections=true to see block headers, then fetch only the
blocks you need with section or match. Prefer CLI when writing a change
recommendation, since it matches what an admin types.
Args: section: CLI only. Comma-separated block-header prefixes, e.g. "interface ethernet 1/1/5", "vlan 20", "vlan", "spanning-tree", "interface ethernet 1/1/1,interface ethernet 1/1/2". match: CLI only. Case-insensitive regex; returns whole blocks with any matching line, e.g. "inline power", "802-1w", "port-name .*AP". list_sections: CLI only. Return just the block headers (cheap overview). yang_path: YANG only. Dotted path to a subtree, e.g. "interfaces" or "stp.global". max_lines: CLI output line cap (default 400, max 5000). max_chars: YANG output size cap (default 60000).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_running_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | No | ||
| format | No | auto | |
| section | No | ||
| max_chars | No | ||
| max_lines | No | ||
| yang_path | No | ||
| list_sections | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||