run_show_commands
Execute multiple JunOS CLI show commands sequentially in a single session, with output formats including text, JSON, or XML. Stops on first error.
Instructions
Run multiple CLI show commands on the device in a single session.
Commands are executed in sequence and stop on the first failure. To run all commands regardless of individual errors, call run_show_command once per command instead.
Args: hostname: Target device hostname (must exist in config.ini) commands: List of CLI commands to execute output_format: Output format — "text" (default), "json", or "xml". Note: JunOS drops pipe stages (| match, | last, | count) under json/xml; use "text" when pipe filtering is needed. config_path: Path to config.ini (empty string uses default search)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | ||
| commands | Yes | ||
| output_format | No | text | |
| config_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |