Difference between revisions of "Ios ping"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lowercase}} | |
#!/usr/bin/env ansible-playbook | #!/usr/bin/env ansible-playbook | ||
- hosts: HOSTNAME | - hosts: HOSTNAME | ||
[[gather_facts:]] false | [[gather_facts:]] false | ||
+ | [[connection]]: [[network_cli]] | ||
+ | remote_user: USERNAME | ||
− | tasks: | + | [[tasks:]] |
- ios_ping: | - ios_ping: | ||
dest: 10.10.10.1 | dest: 10.10.10.1 | ||
Line 18: | Line 20: | ||
* [[Ansible examples]] | * [[Ansible examples]] | ||
* <code>[[--private-key]]</code> | * <code>[[--private-key]]</code> | ||
+ | * <code>ansible yourwebserversgroup [[-m ping]]</code> | ||
* <code>[[ios_command]]</code> | * <code>[[ios_command]]</code> | ||
− | + | [[ansible_connection:]] ansible.netcommon.[[network_cli]] | |
− | ansible_network_os: | + | ansible_network_os: ios |
ansible_become: yes | ansible_become: yes | ||
ansible_become_method: enable | ansible_become_method: enable | ||
Line 27: | Line 30: | ||
* {{ping}} | * {{ping}} | ||
* {{Ansible}} | * {{Ansible}} | ||
+ | * {{Cisco IOS}} | ||
[[Category:Ansible]] | [[Category:Ansible]] |
Latest revision as of 19:01, 20 October 2021
#!/usr/bin/env ansible-playbook - hosts: HOSTNAME gather_facts: false connection: network_cli remote_user: USERNAME tasks: - ios_ping: dest: 10.10.10.1
TASK [ios_ping] **************************************************************************************************************************** fatal: [SERVER]: FAILED! => {"changed": false, "msg": "Connection type ssh is not valid for this module"} It maybe a paramiko problem: https://github.com/ansible/ansible/issues/31699
Related terms[edit]
- Ansible examples
--private-key
ansible yourwebserversgroup -m ping
ios_command
ansible_connection: ansible.netcommon.network_cli
ansible_network_os: ios ansible_become: yes ansible_become_method: enable
See also[edit]
ping
,nping
,arping
,fping, gping
,hping
,mtr
,traceroute
,tcptraceroute
,tracepath
,Test-Connection
Powershell cmdlet,iperf
, Ping (PAN-OS), BWPing,check_ping
,ping -M
,ios ping, ping -a
- Ansible: modules, plugins, Playbooks (examples)
ansible-playbook
,ansible-vault
,ansible-inventory
,ansible-config
, Ansible Tower, Ansible Galaxy (Roles) (ansible-galaxy
),ansible-cmdb
,gather facts
,ansible.cfg
,Ansible Molecule
, Ansible collections,register
,template
,--ask-pass
,--ask-become-pass
,remote_user:
,/etc/ansible/hosts
,ansible-doc
,ansible-lint
,.ansible/
,--forks
,--start-at-task
,changelog
,inventory
,Notify:
,ansible HOSTNAME -m ping
,gathering
,/usr/bin/ansible
,ansible -m ping
,ansible.builtin
,hosts: (Ansible)
,set fact:
,when:
,blockinfile:
,become method:
,include:
,git:
, AWX,ansible --help
, Tags, Ansible variables, versions - Cisco IOS: Cisco IOS XE, Config (mode), VLANs, Cisco IOS logging, VTP, ACLs,
show logging
,show logging history
,show interface status
,debug
,archive
,show archive
,conf t
,int
,ip http server
,ip ssh
,ip address
, vty,show mac address-table
,show access-list
, Access-list,ip access-group
,admin
Advertising: