collect_rsi_batch
Gather RSI/SCF diagnostic data from multiple Junos devices concurrently. Select targets by hostnames or tags, control parallel workers, and save outputs to a directory.
Instructions
Collect RSI/SCF from multiple devices in parallel.
Uses ThreadPoolExecutor for concurrent collection. Default 20 workers
matches junos-ops CLI default for RSI collection. Either hostnames
or tags selects the targets; if both are omitted, every router in
config.ini is targeted. When both are given, the intersection is used.
Args:
hostnames: List of target device hostnames
tags: Tag filter. Each list element is one tag group (comma-separated
tags AND together within a group); multiple list elements OR
together across groups. Combined with hostnames the result is
the intersection.
output_dir: Directory to save output files (empty uses config RSI_DIR or current dir)
max_workers: Maximum parallel threads (default 20)
config_path: Path to config.ini (empty string uses default search)
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": "collect_rsi_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| hostnames | No | ||
| output_dir | No | ||
| config_path | No | ||
| max_workers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |