Setting Up Config Backups

Last updated: 2026-10-17 · MantisNMS · For network administrators setting up configuration backups

MantisNMS backs up the configuration of your firewalls, routers and switches once a day, keeps every change as a new version, shows you exactly what changed, and checks each backup against compliance rules. Setup takes three things: a probe that can reach the device, the device added as an SNMP sensor, and a read-only login MantisNMS can use. This page walks through each one, with the account to create on every supported vendor.

On this page: Supported devices · Before you start · Set up a backup · Vendor setup · How backups work · Restoring a config · Troubleshooting

Supported devices

VendorHow it's collectedWhat's saved
Cisco IOS / IOS XESSH from the probeRunning and startup config
Cisco NX-OSSSH from the probeRunning and startup config
Fortinet FortiGate (FortiOS)SSH from the probeRunning config (show full-configuration)
Juniper (Junos)SSH from the probeRunning config in set format
Palo Alto Networks (PAN-OS)SSH from the probeRunning config
Arista EOSSSH from the probeRunning config
HPE / Aruba ProCurveSSH from the probeRunning config
MikroTik RouterOSSSH from the probeRunning config (/export terse)
Cisco MerakiMeraki Dashboard API, from the MantisOps cloudDevice settings snapshot (management interface; switch ports on MS, uplinks on MX)

MantisNMS picks the vendor automatically from what the device reports over SNMP (its ENTITY-MIB manufacturer, model and sysDescr). There is nothing to choose per device.

Before you start

Set up a backup

  1. Create the backup account on the device using the steps for your vendor below.
  2. Save the login in the Customer Portal. Go to portal.mantisops.net → Credentials → add a credential of type SSH with the Username and Password. Fill in Enable password only if the device needs a separate password for enable mode (Cisco, Arista, HPE); left blank, the login password is used. Assign the credential to the company or site the probe belongs to. Credentials are encrypted at rest and are never shown again after you save them.
  3. Optional: use a different login for one device. In MantisNMS, edit the SNMP sensor and pick it under Config backup login (SSH). Otherwise the device inherits the SSH credential of the probe's site, then its company.
  4. Start the first backup. In MantisNMS open Monitor → Config backups, select the device and click Backup now (or select the device on the network map and click Back up now in its side panel). The probe picks the job up on its next check-in, usually in under a minute. Backup now also turns on Auto-backup daily.
  5. Check the result. The device shows backed up and the first version, initial backup. If it shows error, the message under Last backup failed says why; see Troubleshooting.

Viewing the Config backups page needs the Sensors permission; starting backups, changing settings and trusting a new host key need permission to edit sensors.

Vendor setup

In every case, create an account used only by MantisNMS, give it the least access that can still read the whole configuration, and restrict where it can sign in from if the device supports it. A login that can see only part of the config produces a partial backup.

Fortinet FortiGate

Turn off console paging. FortiOS pages long output with --More--, which would cut the backup short. MantisNMS detects this and refuses to save the copy, so set the console to standard output first (in a multi-VDOM setup, run it under config global):

config system console
    set output standard
end

Create a read-only profile and admin. Give every permission group read access so no section is hidden from the export, and allow the CLI get and show commands, which a read-only profile doesn't have by default:

config system accprofile
    edit "mantis-backup"
        set secfabgrp read
        set ftviewgrp read
        set authgrp read
        set sysgrp read
        set netgrp read
        set loggrp read
        set fwgrp read
        set vpngrp read
        set utmgrp read
        set wanoptgrp read
        set wifi read
        set cli-get enable
        set cli-show enable
    next
end
config system admin
    edit "mantis-backup"
        set accprofile "mantis-backup"
        set password <password>
        set trusthost1 <probe-ip> 255.255.255.255
    next
end

Encrypted values (ENC strings) and private keys in the export are masked before the backup is stored.

Cisco IOS and IOS XE

Reading the full running and startup config needs privilege level 15. Either give the backup account privilege 15, or give it a lower level and put the enable secret in the credential's Enable password field. If you use TACACS+ or AAA command authorization, you can limit the account to show commands.

username mantis-backup privilege 15 algorithm-type scrypt secret <password>
line vty 0 15
 transport input ssh
 login local

IOS XE 17.18 / 26 and later in secure mode enforce complex passwords, and SNMPv1/v2c communities are no longer accepted. Use an SNMPv3 sensor so MantisNMS can identify the device. Paging is turned off automatically for the session.

Cisco NX-OS

Create a local user with a role that can run show running-config and show startup-config (for example network-operator), and make sure SSH is enabled (feature ssh). Paging is turned off automatically for the session.

Juniper (Junos)

The built-in read-only class can't read the configuration. Create a class with the view and view-configuration permissions, and a user in that class:

set system login class mantis-backup permissions [ view view-configuration ]
set system login user mantis-backup class mantis-backup authentication plain-text-password

Junos prompts for the password. Make sure SSH accepts password login: if system services ssh contains no-passwords (common on cloud images such as vSRX), remove it with delete system services ssh no-passwords, then commit.

Palo Alto Networks (PAN-OS)

Create an administrator with the built-in Superuser (read-only) role (superreader) under Device → Administrators, then Commit. Make sure SSH is allowed on the management interface profile, and add the probe's address to its permitted IPs if you use them. Paging is turned off automatically for the session.

Arista EOS

Create a local user that can run show running-config in privileged mode, for example with privilege 15, or a lower level plus the enable password in the credential's Enable password field. Paging is turned off automatically for the session.

HPE / Aruba ProCurve

The running config is readable at manager level. Use an account with manager access, or an operator login plus the manager password in the credential's Enable password field. Make sure SSH is enabled (ip ssh). Paging is turned off automatically for the session.

MikroTik RouterOS

Create a user in the built-in read group, which includes the ssh and read policies, and limit where it can sign in from:

/user add name=mantis-backup group=read password=<password> address=<probe-ip>/32

Cisco Meraki

Meraki devices are cloud-managed, so MantisNMS reads their settings from the Meraki Dashboard API instead of over SSH, and no probe access is needed for the backup itself.

  1. In the Meraki dashboard, generate an API key for a read-only organization administrator (Organization → API & webhooks), and note the organization ID.
  2. In the Customer Portal → Credentials, add a credential of type Cisco Meraki with the Dashboard API key and Organization ID, and assign it to the device's company or site.
  3. In MantisNMS → Config backups, select the device and click Backup now. After that, Meraki settings are pulled once a day (06:00 UTC).

The device still needs to be added as an SNMP sensor so MantisNMS can identify it; it's matched to the dashboard by its IP address.

How backups work

Restoring a config

Restores are manual. MantisNMS backs up configurations but never pushes them back to a device. To roll back, download the version you want and apply it on the device yourself. Because secrets are masked, put the real passwords, keys and SNMP communities back in place of the <secret:…> tokens before applying it.

Where your platform supports it, apply with a safety net: commit confirmed on Junos, a configuration revision you can revert to on FortiGate and PAN-OS, or configure replace with a timer on Cisco IOS XE.

Troubleshooting

Message or symptomWhat to do
The device isn't listed on the Config pageIt must be an enabled SNMP sensor whose make has been detected. Check that the probe can reach it on UDP 161 and that the SNMP credentials work (on IOS XE secure mode, use SNMPv3).
No SSH credential — pick a ‘Config backup login (SSH)’ on the sensor, or assign an ‘SSH’ credential to the collector's site/companyAdd an SSH credential in the Customer Portal and assign it to the probe's site or company, or pick one on the sensor (step 2–3).
ssh authentication failed for user …Check the username and password in the credential. Make sure the device accepts password login for that account (Junos: remove no-passwords), and that the account isn't restricted to other source addresses.
cannot connect to …:22 or timed out after 45sThe probe can't reach SSH on the device. Check firewalls and the device's management access list or trusted hosts. SSH must listen on port 22.
the device paged its output … so the copy is incompleteTurn off output paging for the backup account. FortiGate: config system console → set output standard.
device returned an error instead of its configThe account can't run the backup command. Check its permissions: FortiGate cli-get/cli-show; Junos view-configuration; Cisco privilege 15 or the enable password.
SSH host key changed … Backup refusedConfirm the device was replaced or its key was regenerated, then click Trust new host key. If you can't explain the change, investigate before trusting it.
device returned an empty configThe account signed in but saw no configuration. Give it read access to the whole configuration.
A new version appears every day with no real changeContact support with the device model and software version; some platforms add a line that changes on every read, which we can add to the ignore list.

Still stuck? Email support@mantisops.net with the device's vendor, model, software version and the error shown on the Config page.

← Back to the MantisNMS guide