cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Popup Hotspot Using ISR 1000 with WiFi/LTE for Teleworkers and Micro Branchesr
455
Views
0
Helpful
3
Replies
Highlighted
Beginner

Backup NX-OS with Ansible

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
Highlighted
VIP Mentor

Re: Backup NX-OS with Ansible

Highlighted
Beginner

Re: Backup NX-OS with Ansible

@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.

 

Highlighted
VIP Mentor

Re: Backup NX-OS with Ansible

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 ***
CreatePlease to create content
Content for Community-Ad