Skip to content

Instantly share code, notes, and snippets.

@privateip
Created July 19, 2016 10:41
Show Gist options
  • Save privateip/6d3c2eb6a7301a4d20eda17af2b19be0 to your computer and use it in GitHub Desktop.
Save privateip/6d3c2eb6a7301a4d20eda17af2b19be0 to your computer and use it in GitHub Desktop.
---
- name: show mac address-table
register: output
nxos_command:
commands:
- show mac address-table | json
provider: "{{ cli }}"
register: output
- name: copy output to file
copy:
content: "{{ output.stdout }}"
dest: /var/tmp/macaddress.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment