searchOrgSwOrGwPorts
GET https://{{host}}/api/v1/orgs/:org_id/stats/ports/search
Supported FiltersName
Name | Type | Description |
---|---|---|
full_duplex | boolean | indicates full or half duplex |
mac | string | device identifier |
neighbor_mac | string | Chassis identifier of the chassis type listed |
neighbor_port_desc | string | Description supplied by the system on the interface E.g. “GigabitEthernet2/0/39” |
neighbor_system_name | string | Name supplied by the system on the interface E.g. neighbor system name E.g. “Kumar-Acc-SW.mist.local” |
poe_disabled | boolean | is the POE configured not be disabled. |
poe_mode | string | poe mode depending on class E.g. “802.3at” |
poe_on | boolean | is the device attached to POE |
port_id | string | interface name |
port_mac | string | interface mac address |
power_draw | float | Amount of power being used by the interface at the time the command is executed. Unit in watts. |
tx_pkts | int | Output packets |
rx_pkts | int | Input packets |
tx_bytes | int | Output bytes |
rx_bytes | int | Input bytes |
tx_bps | int | Output rate |
rx_bps | int | Input rate |
tx_errors | int | Output errors |
rx_errors | int | Input errors |
tx_mcast_pkts | int | Multicast output packets |
tx_bcast_pkts | int | Broadcast output packets |
rx_mcast_pkts | int | Multicast input packets |
rx_bcast_pkts | int | Broadcast input packets |
speed | int | port speed |
mac_limit | int | Limit on number of dynamically learned macs |
mac_count | int | Number of mac addresses in the forwarding table |
up | boolean | indicates if interface is up |
stp_state | string | if up == true, forwarding / blocking / learning / listening / disabled |
stp_role | string | if up == true, designated / backup / alternate / root / root-prevented |
auth_state | string | if up == true && has Authenticator role, init / authenticated / authenticating / held |
E.g. /api/v1/sites/:siteid/stats/switchports/search?mac=001122334455
RESPONSES
status: OK
"{\n \"start\": 1511967600,\n \"end\": 1513177200,\n \"limit\": 10,\n \"total\": 100,\n \"results\": [\n {\n \"rx_bytes\": 4563443626,\n \"rx_pkts\": 30360265,\n \"site_id\": \"c1698122-c14c-11e5-8e81-1258369c38a9\",\n \"neighbor_system_name\": \"CORP-D-SW-2\",\n \"org_id\": \"c168ddee-c14c-11e5-8e81-1258369c38a9\",\n \"up\": true,\n \"port_mac\": \"5c4527a96580\",\n \"neighbor_port_desc\": \"GigabitEthernet1/0/21\",\n \"tx_pkts\": 14610886,\n \"mac\": \"5c4527a96580\",\n \"tx_bytes\": 11299516780,\n \"neighbor_mac\": \"64d814353400\",\n \"poe_disabled\": true,\n \"speed\": 1000,\n \"port_id\": \"me0\"\n },\n {\n \"rx_bps\": 1176,\n \"rx_bytes\": 2628451,\n \"rx_pkts\": 11829,\n \"org_id\": \"c168ddee-c14c-11e5-8e81-1258369c38a9\",\n \"full_duplex\": true,\n \"site_id\": \"c1698122-c14c-11e5-8e81-1258369c38a9\",\n \"up\": true,\n \"poe_mode\": \"802.3at\",\n \"port_mac\": \"0c8126c6ff6f\",\n \"mac\": \"0c8126c6ff6c\",\n \"tx_pkts\": 492176,\n \"neighbor_port_desc\": \"ETH0\",\n \"tx_bps\": 14264,\n \"port_id\": \"ge-0/0/0\",\n \"tx_bytes\": 96810192,\n \"neighbor_mac\": \"5c5b350eb361\",\n \"neighbor_system_name\": \"kevinsap\",\n \"speed\": 1000,\n \"poe_on\": true,\n \"power_draw\": 5.4\n },\n ...\n ]\n}"