Device Ports Get
device_ports_getRetrieve a network device's port details by interface name, falling back to ID lookup when slashed names break through proxies; note rate fields may be absent.
Instructions
Get port info for a device by interface name.
Names like 'Te2/7' can fail by name behind proxies that reject or decode the encoded slash. The port is then looked up by ID instead; that response has the same shape but lacks the computed rate fields (in_rate, out_rate, ...).
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": {
"hostname": "<hostname>",
"ifname": "<ifname>"
},
"name": "device_ports_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ifname | Yes | Interface name | |
| hostname | Yes | Device hostname. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||