Loading...

Watch: Automate Dell EMC DNOS 10 Backups with Ansible Playbook

Learn to automate the backup of Dell EMC DNOS 10 configurations with Ansible. This guide includes a practical Playbook example and setup instructions for seamless backups.

How to Backup Config on Dell EMC Networking Operating System DNOS 10 with Ansible?

Maintaining a backup copy of your network appliance configuration is a good practice for all IT professionals. You could automate this process for Dell EMC network appliances using Ansible.

I'm going to show you a live Playbook with some simple Ansible code.

I'm Luca Berton and welcome to today's episode of Ansible Pilot.

Ansible Backup Config on DNOS 10

> dellemc.os10.os10_config: Manage Dell EMC OS10 configuration sections

Let's talk about the Ansible module os10_config.

The full name is dellemc.os10.os10_config, which means that is part of the collection dellemc.os10 specialized in the module to interact with Ansible Network Collection for Dell EMC OS10.

This collection requires ansible-core version 2.10+.

It manages Dell EMC OS10 configuration sections.

Parameters

  • backup boolean - no/yes
  • backup_options dictionary - configurable options related to a backup file path
  • dir_path path - If the directory does not exist it will be first created
  • filename string - \<hostname\>\_config.\<current-date\>@\<current-time\>

Let me summarize the parameter of os10_config module for the backup use-case.

The backup boolean enables the backup mode of the configuration.

Once enabled you could specify some backup_options.

I suggest you specify the dir_path, the directory where to save backups, and the filename if you have a specific one.

Otherwise, Ansible is going to create a file with the current timestamp.

Links

  • [Dell OS10 Platform Options](https://docs.ansible.com/ansible/latest/network/user_guide/platform_dellos10.html)
  • [dellemc.os10.os10_config](https://docs.ansible.com/ansible/6/collections/dellemc/os10/os10_config_module.html)
  • [os10_config backup option not working #113](https://github.com/ansible-collections/dellemc.os10/issues/113)

Demo

How to Backup Config on Dell Networking Operating System 10 with Ansible Playbook.

I'm going to show how to back up the current configuration of a Dell Networking Operating System 10 connecting via SSH protocol using username and password credentials with Enable Mode (Privilege Escalation) and save it to a file with the device name and timestamp.

code

  • inventory

```ini

[dellos10]

192.168.88.4

[dellos10:vars]

ansible_user=luca

ansible_password=mysecretpassword123

ansible_become=yes

ansible_become_method=enable

ansible_connection=ansible.netcommon.network_cli

ansible_network_os=dellemc.

Read the full tutorial: Automate Dell EMC DNOS 10 Backups with Ansible Playbook