Custom Scripts
These scripts are helfpul for iterating through API endpoints, chaining data or returing enhanced results.
Methods
(static) getClientPolicyForClients(networkId, clients, timespanopt)
gets the client policy for an array of clients in a network.
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
networkId |
string | ID of network |
||
clients |
Array | Array of clients with MAC property |
||
timespan |
number |
<optional> |
86400 | Timespan to search for clients |
(static) getClientsForDevices(devices, timespanopt, modelopt)
get clients for devices
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
devices |
Array | Array of devices, |
||
timespan |
number |
<optional> |
86400 | Timespan to search for clients in seconds |
model |
string |
<optional> |
Meraki device model |
(static) getClientsForNetwork(networkId, timespanopt, modelopt)
Synchronous script to traverse the Meraki API and display the clients and their policies
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
networkId |
string | Network ID |
||
timespan |
number |
<optional> |
86400 | Timespan to search for clients in seconds |
model |
string |
<optional> |
Meraki device model |
(static) getClientsForNetworks(networks, timespanopt, modelopt)
get clients for devices
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
networks |
Array | Array of networks, |
||
timespan |
number |
<optional> |
86400 | Timespan to search for clients in seconds |
model |
string |
<optional> |
Meraki device model |
(static) getClientsForOrg(orgId, timespanopt)
get clients for an organization within specified timespan
Parameters
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
orgId |
string | |||
timespan |
number |
<optional> |
86400 | Timespan to search for clients in seconds |
(async, static) getNetworkIdForDeviceMac(orgId, mac)
AsyncGet the network ID for a Meraki Device using its MAC address
Parameters
| Name | Type | Description |
|---|---|---|
orgId |
string | Meraki Organization ID |
mac |
string | Meraki device MAC address |