cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
19715
Views
17
Helpful
10
Replies

Cisco SD-WAN Backup

RS19
Level 4
Level 4

Hi

Is there any mechanism by which we can take the backup of all the configurations from vManage such as a centralized backup which can be used in case of any restoration during any trouble or issue.

1 Accepted Solution

Accepted Solutions

until latest stable that is only option available, you can create a script out of box using Python to automate that if you looking to daily based.

example :

https://github.com/weiborao/vmanage-dailybackup

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

10 Replies 10

elesani
Cisco Employee
Cisco Employee

you can take backup from vManage configuration DB through below CLI:

>> request nms configuration-db

 

NOTE: above CLI will take a local backup from the configuration database. So you should run a separate scheduled script to transfer it to an external storage - central backup server or whatever you have inside your network

 

use below url for details: 

https://sdwan-docs.cisco.com/Product_Documentation/Command_Reference/Operational_Commands/request_nms_configuration-db

 

And if you need to restore vManage from a catastrophic crash, you can use below guideline.

 

https://sdwan-docs.cisco.com/Product_Documentation/vManage_How-Tos/Operation/Restore_the_vManage_NMS

 

Unfortunately that first link doesn't work anymore.  I found the command to backup the database locally, but like you said I want to transfer the DB file (scp) to a different server in case of crash.

I found an upload command but the Cisco documentation states it doesn't work for vmanage??

https://sdwan-docs.cisco.com/Product_Documentation/Command_Reference/Command_Reference/Operational_Commands/request_upload

 

Anyone know how to SCP the database file to remove server?

 

thanks

Ian

The correct first link is this: https://www.cisco.com/c/en/us/td/docs/routers/sdwan/command/sdwan-cr-book/operational-cmd.html#wp3537591161

 

You can save the configuration database at a location on vmanage (such as the home folder of the admin user, for example) and then retrieve it via SCP. 

Ian Waddell
Level 1
Level 1

Anyone know how to script this to backup the DB periodically?  You would think this would be a built in feature.

Raphithom
Level 1
Level 1

We use the following script to create a backup from remote, and then copy it (pull) to our backup server via SCP (sorry tabs got lost in the copy process here):

function run_configdb_backup() {
        export VMANAGE_HOST=$1
        export VMANAGE_USER=$2
        DATE=`date +"%Y%m%d-%H%M"`

        # cloud hosted instances do not support automatic daily backups, so we need to create this manually first.
        # TAC SR 694690210 
        if [[ $1 == *viptela.net ]]
        then
                # delete pre-existent file
                echo "request execute rm -f /opt/data/backup/sastre-backup.tar.gz" | ssh -i ~/.ssh/id_rsa ${VMANAGE_USER}@${VMANAGE_HOST}
                
                # create backup
                echo "request nms configuration-db backup path /opt/data/backup/sastre-backup" | ssh -i ~/.ssh/id_rsa ${VMANAGE_USER}@${VMANAGE_HOST}
                
                # SCP file by using id_rsa SSH private key
                scp -q -i ~/.ssh/id_rsa ${VMANAGE_USER}@${VMANAGE_HOST}:/opt/data/backup/sastre-backup.tar.gz ${CONFIGDB_BACKUP_DIR}/${VMANAGE_HOST}/configdb-${DATE}.tar.gz
        else
                # SCP file by using id_rsa SSH private key
                scp -q -i ~/.ssh/id_rsa ${VMANAGE_USER}@${VMANAGE_HOST}:/opt/data/backup/daily/configdb-daily.tar.gz ${CONFIGDB_BACKUP_DIR}/${VMANAGE_HOST}/configdb-${DATE}.tar.gz
        fi

}

Any GUI option available for take DB backup from vmanager? 

Any GUI option available for take DB backup from vmanager? 

what backup you looking device or cloud devices ?

vmanage and other controller hosted by Cisco they take autobackup on cloud part of service.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

what backup you looking device or cloud devices ?

vManage, on-prem 

currently i am taking vManage DB backup through CLI

request nms configuration-db

 

until latest stable that is only option available, you can create a script out of box using Python to automate that if you looking to daily based.

example :

https://github.com/weiborao/vmanage-dailybackup

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help