searchSiteSwOrGwPorts
GET https://{{host}}/api/v1/sites/:site_id/stats/ports/search
Supported FiltersName
Name | Type | Description |
---|---|---|
full_duplex | boolean | indicates full or half duplex |
mac | string | device identifier |
device_type | string | device type, ap / ble / switch / gateway / mxedge / nac |
port_usage | string | gateway port usage, wan / lan |
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 | whether PoE capabilities are disabled for a port, default is false |
poe_mode | string | PoE mode depending on class. 802.3af / 802.3at / 802.3bt |
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 |
xcvr_part_number | string | Optic Slot Partnumber, Check for null/empty |
xcvr_serial | string | Optic Slot SerialNumber, Check for null/empty |
xcvr_model | string | Optic Slot ModelName, Check for null/empty |
auth_state | string | if up == true && has Authenticator role, init / authenticated / authenticating / held |
lte_imsi | string | LTE IMSI value, Check for null/empty |
lte_iccid | string | LTE ICCID value, Check for null/empty |
lte_imei | string | LTE IMEI value, Check for null/empty |
active | boolean | Indicates if interface is active/inactive |
jitter | float | Last sampled jitter of the interface |
loss | float | Last sampled loss of the interface |
latency | float | Last sampled latency of the interface |
unconfigured | boolean | indicates if interface is unconfigured |
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 \"xcvr_part_number\":\"740-021487\",\n \"xcvr_serial\":\"N6AA9HT\",\n \"xcvr_model\":\"SFP+-10G-SR\",\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}"