cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
14374
Views
15
Helpful
5
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.

5 Replies 5

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

}

Review Cisco Networking for a $25 gift card