arista-netdevops-community / nornir-snapshot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use nornir-snapshot

This README is created for MacOS or Linux. On Windows install WSL first.

  1. Clone this repository.
  2. Review config.yaml. Normally there is no need to adjust it, but you may check number of workers running at once.
  3. Check defaults.yaml. Generally, nothing to do here. Login and password are commented as get-snapshot.py will prompt for them during execution.
  4. Review groups.yaml. For a basic case it can be used as is. But adjusting groups and parameters may be required if not covering your specific case.
  5. Edit the inventory in the hosts.yaml.
  6. Review and change snapshot command list in snapshot_commands.txt. Every line must represent a single command.
  7. Create Python3 virtual environment with python3 -m venv .venv. Activate it if not activated by IDE automatically: source .venv/bin/activate
  8. Upgrade pip: pip install --upgrade pip
  9. Install requirements: pip install -r requirements.txt
  10. Run ./get-snapshot.py
  11. Enter login and password.
  12. Check configs and show-commands directories after execution.

You can also use get-tech-support.py to collect show tech from every device quickly.


If you prefer Ansible, take a look at Ansible-AVD eos_snapshot role.

About

License:Other


Languages

Language:Python 100.0%