cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3987
Views
0
Helpful
3
Replies

Backup NX-OS with Ansible

romanroma
Level 1
Level 1

I am trying to understand the syntax to make a playbook to backup NX-OS devices.

 

I am reading the following link:

https://docs.ansible.com/ansible/latest/network/user_guide/platform_nxos.html

 

However, I am not connecting the dots - does anyone have a simple playbook that backups up NX-OS config to a remote Linux server, so I can learn how to use Ansible. I am not looking for a direct copy and paste script, since I want to learn, just need some direction so I can build my Lego blocks onto.

 

Thank you

3 Replies 3

@balaji

Thank you for the links. It does make sense; however, do you know if you can just change the 'git' repo with just a directory path of the ansible server? ++laugh++ I know nothing of git.

 

the scripts are easy to understand and deployed nicely.

 

if you have Linux server - ubunut or debian

 

Login as root

#apt-get install git  <-- press Y, to install git here.

 

once installed. 

 

make directory (on Linux, Hope you know this i guess).

if you dont know below command :

 

#mkdir mybackup

#cd mybackup

 

example to get git code to my backup directory

 

git clone git@github.com:ciscops/ansible-network-backup.git network-backup

 

once it cloned read the .yml  file and understand, before executing any commands.

 

====

 

I know you have mentioned you want to learn and do it, make a simulated lab for testing purpose.

I started here :

 

https://docs.ansible.com/ansible/latest/network/getting_started/index.html

 

 

BB

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

How to Ask The Cisco Community for Help