An enable mode command that merges the startup config with the currently active config in RAM. Run this command: ansible-playbook -i hosts mac_address_table. An enable mode command that saves the active config, replacing the startup config when a Cisco network device initializes. Run this command on your central node (i.e.
#Cisco mac address command mac
ansible_connection=network_cliĪnsible_become_password: Device enable passwordģ. Tracking down a specific host on your network through its MAC address. Create an empty text file and name it hosts with devices IP-addresses and the defaults values.Īs you can see I only added one device, otherwise you can add more than one device, if they have the same username and password. name: Save your show command to registerĬommands: 'show mac address-table dynamic'ĭest=/home/hawar/mac_add/.txtĢ. name: Get port details and MAC-addresses Type this command: arp
![cisco mac address command cisco mac address command](https://i.ytimg.com/vi/7aG0l4VrlEE/hqdefault.jpg)
![cisco mac address command cisco mac address command](https://helpdesk.owu.edu/wp-content/uploads/sites/56/2012/07/MAC-address.jpg)
Very simple and easy Ansible playbook for Cisco devices to save output show command as a file.