Set Interface Power
set_interface_powerEnable or disable a Packet Tracer device port at the physical level, simulating plugging or unplugging its power connection. Use IOS shutdown commands separately for CLI-based control.
Instructions
Administratively enable or disable a port at the physical level (like plugging/unplugging the port's power in Packet Tracer). For IOS 'shutdown'/'no shutdown' use send_cli_command.
Examples:
"Disable PC0's FastEthernet0"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Device display name as shown in Packet Tracer (e.g. 'Router0', 'PC1') | |
| port | Yes | Full port name (e.g. 'GigabitEthernet0/0', 'FastEthernet0', 'Serial0/1/0') | |
| power_on | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |