Meraki Devices
Overview
Meraki devices are cloud-managed hardware identified by an immutable serial number (format Q2XX-XXXX-XXXX). A device is claimed into an organization's inventory, then assigned to a network. Every capability below is called with execute_api; anything not listed here can be found with semantic_search. Tool schemas, pagination and Conduit access are covered in meraki-api-patterns.
The hosted server is read-only. Reboots, removals, claims, renames and firmware scheduling cannot be done from here: read the current state, then give the human a precise instruction to carry out in the Meraki Dashboard.
Anti-triggers
- Hardware that is not Meraki -- mixed-vendor network inventory is
auvik-devices; per-site LAN discovery isdomotz-devices. - Power-cycling something the Dashboard cannot reach -- an offline device needs local power. If the site has a switched PDU, use
domotz-power. - Firewall rules, NAT or VPN peers -- use
meraki-security-appliance. - Working out why a device is offline, slow or dropping clients -- use
meraki-troubleshooting.
Key Concepts
The serial is the identity
Every device capability keys off serial. The name field is optional, mutable and not unique. Resolve to a serial before doing anything else, and quote the serial in anything you hand to a human.
Product lines
| Line | Product | productType |
|------|---------|---------------|
| MX / Z | Security appliance, SD-WAN, teleworker gateway | appliance |
| MS | Switch | switch |
| MR | Wireless access point | wireless |
| MV | Smart camera | camera |
| MG | Cellular gateway | cellularGateway |
| MT | Environmental sensor | sensor |
Most org-wide capabilities accept a productTypes filter with these values.
Inventory vs. network assignment
- Org inventory (
getOrganizationInventoryDevices) is every device claimed to the org, assigned or not. Unassigned devices have a nullnetworkId; passusedState: "unused"to list only those. - Org devices (
getOrganizationDevices) is only the devices assigned to a network. Filter withnetworkIdsrather than looping per network.
Removing a device from a network returns it to inventory. Unclaiming takes it out of the org entirely. Both are Dashboard actions.
Availability
getOrganizationDevicesAvailabilities reports a status of online, offline, alerting (checking in, but the Dashboard has flagged a problem) or dormant (offline for an extended period). Status reflects the device's connection to the Meraki cloud, not whether it is forwarding traffic -- a device that loses its cloud path keeps running its last configuration.
Capabilities
| Need | capability_id | Required | Useful optional parameters |
|------|-----------------|----------|----------------------------|
| Status counts for the org | getOrganizationDevicesStatusesOverview | organizationId | productTypes, networkIds |
| Per-device availability | getOrganizationDevicesAvailabilities | organizationId | statuses, networkIds, productTypes, serials, perPage (max 1000) |
| When a device went down or flapped | getOrganizationDevicesAvailabilitiesChangeHistory | organizationId | serials, networkIds, statuses, timespan (max 31 days) |
| Devices assigned to networks | getOrganizationDevices | organizationId | networkIds, productTypes, name, mac, serial, model, perPage |
| Full inventory, incl. unassigned | getOrganizationInventoryDevices | organizationId | usedState, search, serials, models, eoxStatuses, perPage |
| One device from inventory | getOrganizationInventoryDevice | organizationId, serial | |
| One assigned device | getDevice | serial | |
| Current uplink IPs per device | getOrganizationDevicesUplinksAddressesByDevice | organizationId | networkIds, serials, productTypes |
| Provisioning state | getOrganizationDevicesProvisioningStatuses | organizationId | status (unprovisioned, incomplete, complete) |
| EOX counts | getOrganizationInventoryDevicesEoxOverview | organizationId | |
| Firmware upgrade status per device | getOrganizationFirmwareUpgradesByDevice | organizationId | networkIds, serials, currentUpgradesOnly, perPage (default 50) |
Each call returns one page. Use the filters to narrow the result rather than reading everything, and say when a result may be partial.
Examples
execute_api { "capability_id": "getOrganizationDevicesAvailabilities", "parameters": { "organizationId": "<orgId>", "statuses": ["offline", "alerting", "dormant"], "perPage": 500 } }
execute_api { "capability_id": "getDevice", "parameters": { "serial": "Q2XX-XXXX-XXXX" } }
A device record carries serial, name, model, mac, networkId, productType, lanIp and firmware:
{
"serial": "Q2XX-XXXX-XXXX",
"name": "HQ-MX-01",
"model": "MX68",
"mac": "00:11:22:33:44:55",
"networkId": "L_123456789012345678",
"productType": "appliance",
"lanIp": "192.168.1.1",
"firmware": "wired-18-107"
}
execute_api { "capability_id": "getOrganizationInventoryDevices", "parameters": { "organizationId": "<orgId>", "usedState": "unused", "perPage": 200 } }
Common Workflows
Find a device from whatever the user gave you
- Serial --
getDevice. It is not scoped to an organization, so read the device's network withgetNetworkand check itsorganizationIdis the org you meant. If it is not found, trygetOrganizationInventoryDevice; the device may be claimed but unassigned. - Name, MAC or model fragment --
getOrganizationDeviceswithname,macormodel(each matches on contains or exact), orgetOrganizationInventoryDeviceswithsearchto include unassigned hardware. Inventorysearchmatches serial, MAC and model, not name, so an unassigned device cannot be found by name; listusedState: "unused"inventory and read the names instead. - Translate
networkIdto a network name withgetOrganizationNetworks.
Offline and alerting sweep
getOrganizationDevicesStatusesOverviewfor the headline counts.getOrganizationDevicesAvailabilitieswithstatuses: ["offline", "alerting", "dormant"].getOrganizationDevicesAvailabilitiesChangeHistorywith thoseserialsand atimespansuch as 604800 (7 days) to show when each dropped and whether it is flapping.- Report by network, appliances first. When an MX is offline, the switches and APs behind it usually show offline too because they reach the cloud through it. Report that as a likely shared cause at the site rather than many separate device faults, and confirm with someone on site before calling it an outage: cloud status alone does not prove traffic has stopped.
For the cause, hand off to meraki-troubleshooting.
Unassigned and unused hardware
getOrganizationInventoryDevices with usedState: "unused" lists claimed devices sitting in inventory. They are often spares, RMA replacements never deployed, or devices left behind by a decommission. List them by model for the account manager.
Lifecycle audit (EOX and firmware)
getOrganizationInventoryDevicesEoxOverviewfor counts of end-of-sale, end-of-support and nearing end-of-support.getOrganizationInventoryDeviceswitheoxStatuses: ["endOfSupport", "nearEndOfSupport"]to name the affected serials and models.getOrganizationFirmwareUpgradesByDevicewithcurrentUpgradesOnly: truefor upgrades that are scheduled or in progress.getOrganizationDevices(narrowed withnetworkIds) for every assigned device's currentfirmware; the calls above only cover filtered or pending devices.- Group by network,
productTypeand model, then byfirmware. Flag end-of-support hardware first, then devices whose firmware differs from other devices of the same product family in the same network. MX, MS and MR run separate firmware trains, so a switch and an AP on different versions in one network is normal.
Reboot or removal request
The hosted server cannot reboot or remove a device. Prepare the change for a human:
- Confirm identity with
getDevice: name, model, network,productType. Read its network withgetNetworkand check theorganizationIdis the org the request is about. A device that is not in a network (an unclaim of spare hardware, orgetDevicereturns not found) has no network to read: callgetOrganizationInventoryDevicewith the requestedorganizationIdand the serial instead. A record with a nullnetworkIdconfirms the device is claimed in that org and unassigned; not found means it is not in that org. - Check availability. An
offlinedevice cannot receive a reboot from the Dashboard; it needs a local power cycle. - Assess impact. Rebooting an MX or a core switch drops the whole site; rebooting an AP drops its clients, and if it is a mesh gateway, every repeater that reaches the network through it and their clients too. Check for mesh repeaters (find the capability with
semantic_search) before stating the impact. - Hand over a precise instruction, for example:
Reboot HQ-MS-CORE (MS250-48, serial Q2XX-XXXX-XXXX, network "HQ") from the Dashboard: Switching > Monitor > Switches > HQ-MS-CORE > Tools > Reboot. All wired clients at HQ lose connectivity until it is back online.
For removal, the human uses Organization > Inventory, selects the serial and chooses Remove from network (or Unclaim to take it out of the org). Removing an MV camera from its network deletes its stored video, so warn the requester and get that confirmed before handing over the steps. Afterward, confirm the result. After a removal from a network, getOrganizationInventoryDevice shows networkId as null. After an unclaim, the serial is no longer in the organization's inventory, so that lookup returns not found.
Error Handling
| Symptom | Likely cause | What to do |
|---------|--------------|------------|
| getDevice returns not found | Wrong serial, or the device is not assigned to a network | Check getOrganizationInventoryDevice; check the serial for O/0 and I/1 typos |
| Empty list for an org | The API key's admin cannot see that org or network | Confirm the org with getOrganizations; scope is whatever the key's admin can see |
| Device listed but no availability record | Newly claimed or never brought online | Check getOrganizationDevicesProvisioningStatuses |
| Result stops at the page size | One page per call | Narrow with networkIds, serials or productTypes; report the result as partial |
Best Practices
- Identify devices by serial; treat names as display-only.
- Prefer org-wide capabilities with filters over per-device calls; the per-org rate limit is in
meraki-api-patterns. - Warn before recommending a reboot of an appliance or core switch.
- Reconcile
getOrganizationDevicesagainstgetOrganizationInventoryDevicesto spot unassigned or forgotten hardware.
Related Skills
meraki-api-patterns-- tool schemas, pagination, Conduit access tiersmeraki-troubleshooting-- why a device is offline, port and wireless diagnosticsmeraki-security-appliance-- MX firewall, NAT and VPN