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
| Vendor | How it's collected | What's saved |
|---|---|---|
| Cisco IOS / IOS XE | SSH from the probe | Running and startup config |
| Cisco NX-OS | SSH from the probe | Running and startup config |
| Fortinet FortiGate (FortiOS) | SSH from the probe | Running config (show full-configuration) |
| Juniper (Junos) | SSH from the probe | Running config in set format |
| Palo Alto Networks (PAN-OS) | SSH from the probe | Running config |
| Arista EOS | SSH from the probe | Running config |
| HPE / Aruba ProCurve | SSH from the probe | Running config |
| MikroTik RouterOS | SSH from the probe | Running config (/export terse) |
| Cisco Meraki | Meraki Dashboard API, from the MantisOps cloud | Device 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.
Viewing the Config backups page needs the Sensors permission; starting backups, changing settings and trusting a new host key need permission to edit sensors.
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.
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.
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.
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.
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.
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.
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.
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.
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
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.
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.
<secret:…> tokens before a config is stored. Each token is derived from the original value, so changing a password still shows up as a change in the diff without the password ever being stored.<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.
| Message or symptom | What to do |
|---|---|
| The device isn't listed on the Config page | It 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/company | Add 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 45s | The 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 incomplete | Turn off output paging for the backup account. FortiGate: config system console → set output standard. |
| device returned an error instead of its config | The 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 refused | Confirm 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 config | The account signed in but saw no configuration. Give it read access to the whole configuration. |
| A new version appears every day with no real change | Contact 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