Ansible checks Cisco Catalyst switches

Run common inspection commands for Catalyst switches.

DevNet Code Exchange

This repository is featured on the Cisco DevNet Code Exchange.

published

Objectives

The playbook is used to inspect Cisco Catalyst series switches. The playbook and variable file define common catalyst inspection commands to be used for inspection. You can add, delete, or modify the command in the variable file as required.

Requirements

To use this code you will need:

  • Linux OS - Ex. Red Hat 7.0+, Ubuntu 18+, etc.
  • Python 2.6+ or Python 3.5+
  • Ansible 2.5+
  • SSH client - PuTTY, shell, SecureCT, etc.

Install and Setupt

  1. Install Python & Ansible softwared
  2. Download ansible playbook files from github
  3. Modify the IP address, username and password in the inventory file
  4. Run the ansible-play xxx.yaml --syntax-check command to check the syntax
  5. Run the ansible-play xxx.yaml -C command to dry run
  6. Run the ansible-play xxx.yaml > xxx.file command to redirect the output
View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.