Unused Interfaces
Use the following syntax:
https://{server}/api-unused-interfaces?password={pw};{option}={value};...
Examples
Show ifAdminStaus for all unused interfaces on swt251.
https://{server}/api-unused-interfaces?password={pw};device=swt251;ifAdminStatus=on
swt251,Fa0/2,100000000,used,up,1461652050,uplk to swt9-2,SysMgmtProd VMW-vMotion,up
To activate the Unused Interfaces web API:
Go to Admin > API > Web API Settings. Click the Unused Interfaces option On.
Click Save.
CSV output
| Field | Description |
|---|---|
| 1 | device name |
| 2 | interface name |
| 3 | interface speed |
| 4 | used/free |
| 5 | current IF-MIB.ifOperStatus |
| 6 | last change time (epoch timestamp (seconds)) |
| 7 | IF-MIB.ifAlias |
| 8 | VLAN name |
Options
| Option | Value | Required | Default | Comment |
|---|---|---|---|---|
| time | {time filter} | optional | last30d | Refer to the API Programming Guide |
| device | {name} | {/regex/} | optional | * | Device name or regex |
| group | {device group}... | optional | Device groups | |
| ifAdminStatus | on | off | optional | off | Show ifAdminStatus for interface |