Run common inspection commands for Catalyst
switches.
This repository is featured on the Cisco DevNet Code Exchange.
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.
To use this code you will need:
Linux
OS - Ex.Red Hat
7.0+,Ubuntu
18+, etc.Python
2.6+ orPython
3.5+Ansible
2.5+SSH
client -PuTTY
,shell
,SecureCT
, etc.
- Install
Python
&Ansible
softwared - Download ansible playbook files from
github
- Modify the
IP
address,username
andpassword
in the inventory file - Run the
ansible-play xxx.yaml --syntax-check
command to check the syntax - Run the
ansible-play xxx.yaml -C
command to dry run - Run the
ansible-play xxx.yaml > xxx.file
command to redirect the output