get_device_ports
Lists switch or gateway ports with link, speed, VLAN, PoE, and peer details. Use it to find port index and current settings before changing a port.
Instructions
List the switch/gateway ports on a device with link and VLAN details.
Read-only operation: returns each port's index, name, media (GE/SFP), link state, speed, native network (VLAN) ID, PoE mode, forward setting, and the last connected peer MAC/IP where known. Use this to find the port_idx and current values before calling set_device_port.
Args: mac: Device MAC address (case-insensitive; aa:bb:cc:dd:ee:ff or aabbccddeeff). site: Site to operate on. Defaults to "default". device: Optional device name to target a specific console; omit for default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mac | Yes | Device MAC address (case-insensitive; aa:bb:cc:dd:ee:ff or aabbccddeeff). | |
| site | No | Site to operate on. Defaults to "default". | default |
| device | No | Optional device name to target a specific console; omit for default. |