pt_backup_config
Backs up a Packet Tracer device's real startup configuration and returns serial, config-register, boot images, and uptime, so you can save a known state before changes or compare devices.
Instructions
Backs up a PT device's startup configuration.
Returns the real startup-config (the one the device rereads on restart), plus its serial number, config-register, boot images and uptime. Use it to save a known state before touching something, or to compare two devices.
Parameters:
device: name of the router or switch in PT.
include_xml: if True, adds the device's full XML dump (topology + config + modules). It is tens of thousands of characters: useful for archiving, heavy to read.
Example: pt_backup_config(device="R1")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device": "<device>"
},
"name": "pt_backup_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| include_xml | No |