TessaroSystems Book a demoDemo

A free script that exports your Meraki configuration

DejaVault Export is a free, open source command that saves a Cisco Meraki organization's configuration to a folder of JSON files. It reads 253 settings and the last 365 days of the change log with a read only API key, sends only GET requests, and never changes anything in your dashboard.

pipx install git+https://github.com/tessarosystems/dejavault-export

Version 1.0.0, Apache License 2.0. It needs Python 3.10 or later and runs on macOS, Linux and Windows.

What the export saves

The tool reads the same 253 settings a DejaVault backup reads, across the organization, its networks, its configuration templates and its devices, and it saves the organization's change log for the last 365 days, which is as far back as Meraki's API reaches.

Each setting goes into its own file, named after the API operation that read it, with sorted keys. If you keep the folder in git, the diff between two runs shows exactly what changed.

  • Every request goes through one function that refuses anything but GET before it is sent, and the HTTP layer beneath it checks again, so the tool cannot change your dashboard.
  • It sends at most 5 requests a second, half of the 10 Meraki allows each organization, and when Meraki answers that a call came too fast, it waits the time Meraki gives, up to a minute, and tries again up to six times.
  • Secrets such as PSKs, RADIUS secrets and SNMP strings become <redacted> unless you pass --include-secrets, and on macOS and Linux the folder is readable only by your user.
  • The key comes from an environment variable or a hidden prompt, never from the command line, and it is never written to disk or to a log.
  • Organizations on Meraki's regional clouds work too, by passing their API address, and the tool honors your proxy settings.
  • The list of reads comes from Meraki's API specification, version 1.75.0, and a test checks it against Cisco's own Python library.

Make a read only key and run the export

A Meraki API key carries the rights of the administrator who made it. If you make it as an administrator with read only access, Meraki itself refuses any change made with the key, so it cannot alter your network even if it leaks.

The whole setup takes a few minutes, and the export itself took about three minutes for an organization with nine networks in our test.

  1. Install the tool

    Install it with pipx, which keeps it in its own environment. You need Python 3.10 or later.

    pipx install git+https://github.com/tessarosystems/dejavault-export
    dejavault-export --version
  2. Add a read only administrator

    In the Meraki dashboard, open Organization, then Administrators, and add an administrator whose organization access is Read only. Use a mailbox you control, because Meraki sends it an invitation.

  3. Turn on API access

    Check that API access is on for the organization, under Organization, then Settings, or under Organization, then API and webhooks on newer dashboards.

  4. Make the key

    Sign in as the read only administrator, open My profile and generate an API key in the API access section. Meraki shows the key once, so copy it straight into your password manager.

  5. Give the tool the key

    Put the key in the MERAKI_DASHBOARD_API_KEY environment variable, or leave the variable unset and the tool asks for the key without showing what you type.

  6. List your organizations

    Run the command with no options, and it lists the organizations the key can read with their ids.

    dejavault-export
  7. Export one organization

    Pass the organization's id. You can add --networks to export only some networks and --out to choose the folder.

    dejavault-export --org 123456
    dejavault-export --org 123456 --networks "L_123456789012345678,Main Office" --out ./meraki-config
  8. Check the result

    Read the summary the command prints and open manifest.json. The command exits with 1 when any section failed, and the manifest names each one, so a scheduled job can tell you.

$ dejavault-export --org 123456
Exported organization 123456 to meraki-export-123456-20261129T150000Z
  640 read, 221 not available, 0 failed, 58 covered by their lists
  change log: 3140 entries
  881 API calls in 181.6 seconds
  secrets are replaced with <redacted> (use --include-secrets to keep them)
The summary the command prints at the end of a run. The organization id and the counts here are made up for the example.

What you get

The export is one folder with a file for each setting, grouped by the organization, each network, each configuration template and each device. A setting Meraki keeps once per item, such as the firewall rules of each SSID, becomes a folder with one file per item.

The manifest records every setting the export tried, with its status, along with how many calls the run made and how long it took. All the ids below are made up.

meraki-export-123456-20261129T150000Z/
  manifest.json
  changelog.json
  organization/
    getOrganization.json
    getOrganizationAdmins.json
    getOrganizationConfigTemplates.json
    ...
  networks/
    L_123456789012345678/
      getNetworkApplianceFirewallL3FirewallRules.json
      getNetworkApplianceVlans.json
      getNetworkWirelessSsids.json
      getNetworkWirelessSsidFirewallL3FirewallRules/
        0.json
        1.json
      ...
  templates/
    L_987654321098765432/
      ...
  devices/
    Q2XX-AAAA-0001/
      getDevice.json
      getDeviceSwitchPorts.json
      ...
The folder of one export.
{
  "tool": "dejavault-export",
  "toolVersion": "1.0.0",
  "organization": { "id": "123456", "name": "Example Clinics" },
  "durationSeconds": 181.6,
  "apiCalls": 881,
  "secretsIncluded": false,
  "counts": { "read": 640, "not_available": 221,
              "failed": 0, "covered": 58 },
  "sections": [
    { "operationId": "getNetworkApplianceVlans",
      "target": "L_123456789012345678",
      "status": "read", "httpStatus": 200,
      "file": "networks/L_123456789012345678/getNetworkApplianceVlans.json" },
    { "operationId": "getNetworkSwitchStp",
      "target": "L_123456789012345678",
      "status": "not_available", "httpStatus": 400,
      "reason": "This network does not have switches" },
    ...
  ]
}
Part of a manifest, shortened.
read
Meraki answered and the file was written.
not available
The setting does not apply there, because the network or device does not support it, does not have it turned on, or lacks the license it needs.
failed
Meraki answered with another error or did not answer, and the manifest records the HTTP status and Meraki's message.
covered
The setting is read one item at a time, and its list already held every field of every item, so it was not read again.

What a script leaves to you

An export is a copy you can read. Everything that turns a copy into a way back is still your job, and some of it no read can do.

Putting settings back
The tool never sends a write, so it cannot restore anything. A restore means writing each setting through the API yourself, in an order Meraki accepts.
Running on a schedule
It runs when you run it. For daily exports you start it from cron or a scheduled task and keep the key in your own secret store.
Keeping history
It writes one export. Git can give you history, but only for the runs you kept, and comparing them is up to you.
Rebuilding a deleted network
Making a network again, claiming its devices, binding its template and writing hundreds of settings in order is all writing, and none of it is a read.
Values Meraki never returns
Meraki accepts some secrets, such as RADIUS secrets on an SSID and PPPoE passwords, but never sends them back, so no export holds them.

When a script is enough, and when DejaVault fits

Both read the same 253 settings, so the difference is in what happens around the read.

A script is enough

The export is all you need when you want a copy of one organization to document it, to hand it to a new team, to show an auditor a point in time, or to review its changes in git.

It also suits an organization you look after yourself, where you are glad to run the job, keep the files and write any change back by hand on the rare day you need to.

DejaVault fits

DejaVault is the paid service from the same company, and it covers the part a script leaves to you. It backs up every organization each night and follows the change log during the day, keeps a year of history without you running anything, and emails you about risky changes.

When something goes wrong it restores one setting or a whole network from a plan you approve, and it can rebuild a deleted network with its devices. It is priced per project, so book a demo to see it on your own org.

Cisco's own samples

If you would rather write your own script, Cisco publishes its Python library for the Dashboard API under the MIT License and a collection of sample automation scripts, and DevNet Code Exchange lists the Meraki Config Manager sample.

The coverage list names every setting this tool reads, with the API operation behind each one, so you can check any script against it.

Questions about the export tool

Bugs and ideas go to the issues on GitHub, and security problems to security@tessarosystems.com.

How long does an export take?

It sends at most 5 requests a second, half of the 10 Meraki allows each organization, so the time grows with the size of the organization. In our test an organization with nine networks, one configuration template and eight devices took about three minutes and 881 calls, and every run ends with a summary of its calls and its time.

Does it write anything to Meraki?

It never writes to Meraki, because every request goes through one function that refuses any method other than GET before anything is sent, and the HTTP layer beneath it checks again. The tests prove that POST, PUT, PATCH and DELETE are refused at both layers, and with a read only administrator's key Meraki would refuse a change as well.

Where is my API key stored?

The key is not stored anywhere. The tool reads it from the MERAKI_DASHBOARD_API_KEY variable or from a prompt that hides what you type, never takes it as a command line option, and never writes it to disk or to a log. It sends the key only over HTTPS, and only to the API address you chose, which is Meraki's unless you pass another.

Does the export include WiFi passwords and other secrets?

The export leaves secrets out unless you ask for them. PSKs, RADIUS secrets, SNMP strings, VPN and BGP passwords and webhook secrets are replaced with <redacted> unless you pass --include-secrets. On macOS and Linux the folder and every file in it are readable only by your user. Secrets Meraki never returns are not in any export.

Can I keep the exports in git?

You can, and git suits it well, because the files have sorted keys and stable names, so the diff between two runs shows exactly what changed. Point --out at the same folder each time and the tool replaces its own files and leaves the rest, such as the .git folder, alone.

When you need more than a copy

In a demo you see DejaVault on a Meraki organization with sample data, and then you connect one of your own with a read only key and watch its first backup. DejaVault is priced per project, so we work out the price with you after a short call about your networks.

Write to sales@tessarosystems.com, reach support at support@tessarosystems.com, or call 212 470 9405.

Book a demo