02-26-2024 04:36 PM
Hello,
I'm writing Ansible playbooks to ping an array of network devices. I have been using the cisco.ios.ios_ping module to ping the devices which seems to be working for my needs. However, I've been trying to find out exactly what the criteria is for a successful pass for this module.
It's safe to say that 5/5 packets sent is considered a Pass but what about situations where only 4/5 or 3/5 or 2/5 or 1/5 packets are sent? Would those be considered a Pass or a Fail?
So far, I haven't been able to find information about this for this specific module. Any info about this would definitely be helpful. Thanks!
Solved! Go to Solution.
02-27-2024 02:40 AM
Ansible considers a successful ping when all five packets are sent and received successfully. However, in situations where fewer packets are sent or received are considered failures by the module. So for example, fail is less than five sent or received. You are right the documentation doesn't explicitly state the criteria for success, it provides details about the module's parameters and output, which can help you interpret the results.
Hope this helps.
02-27-2024 02:40 AM
Ansible considers a successful ping when all five packets are sent and received successfully. However, in situations where fewer packets are sent or received are considered failures by the module. So for example, fail is less than five sent or received. You are right the documentation doesn't explicitly state the criteria for success, it provides details about the module's parameters and output, which can help you interpret the results.
Hope this helps.
02-27-2024 09:35 AM
This is the information I needed. Thank you!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide