set_power
Switch a Packet Tracer device on or off; power-cycling routers or switches reloads them, so unsaved configuration is lost unless written first.
Instructions
Switch a device on or off. Switching a router or switch off and on reloads it: configuration that was not saved with write memory is lost. IOS devices come back ready at the prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | `true` to switch it on, `false` to switch it off. | |
| device | Yes | Device name as returned by `list_devices`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | ||
| device | Yes |