Get Console Log for a Device
get_console_logRetrieve a device's console or terminal buffer to inspect boot messages, syslog events, and recent command output for troubleshooting.
Instructions
Return the device's console/terminal buffer as shown in its CLI tab (or the PC's Command Prompt): boot messages, %LINK/%LINEPROTO and other syslog messages, and recent command output.
Examples:
"Show R1's console messages"
"Did any interface go down on the switch?"
"What happened on PC1's command prompt?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Device display name as shown in Packet Tracer (e.g. 'Router0', 'PC1') | |
| max_chars | No | Return at most this many trailing characters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |