# Is there a way to find out network speed and bandwidth using ansible

**URL:** <https://forum.ansible.com/t/is-there-a-way-to-find-out-network-speed-and-bandwidth-using-ansible/21076>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [April 6, 2016, 7:13am UTC](https://forum.ansible.com/t/is-there-a-way-to-find-out-network-speed-and-bandwidth-using-ansible/21076 "2016-04-06T07:13:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepa\_Yr](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Post date:** [April 6, 2016, 7:13am UTC](https://forum.ansible.com/t/is-there-a-way-to-find-out-network-speed-and-bandwidth-using-ansible/21076/1 "2016-04-06T07:13:59Z")

</div>

Hi

I want to check machine is provisioned with proper specifications or not. As part of that I need to check the speed and bandwidth. Setup does not give any info on this.,

ethtool eth0  
Settings for eth0:  
Link detected: yes

The ethtool command gives only this much info. Other properties are not listed on the provisioned machines (RHEL 7.2) . Is there a way to get the speed and bandwidth details ?

Thanks

---

<div class="post-metadata">

**Author:** ![Mark\_Phillips](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Mark\_Phillips](https://forum.ansible.com/u/Mark_Phillips)\
**Post date:** [April 6, 2016, 6:49pm UTC](https://forum.ansible.com/t/is-there-a-way-to-find-out-network-speed-and-bandwidth-using-ansible/21076/2 "2016-04-06T18:49:13Z")

</div>

Not what you’re after, I suspect, but…

shell: “ethtool {{ ansible\_default\_ipv4.interface }} | awk ‘/Duplex|Speed/ { print $1, $2 }’”

---

<div class="post-metadata">

**Author:** ![Deepa\_Yr](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@Deepa\_Yr](https://forum.ansible.com/u/Deepa_Yr)\
**Post date:** [April 7, 2016, 5:44am UTC](https://forum.ansible.com/t/is-there-a-way-to-find-out-network-speed-and-bandwidth-using-ansible/21076/3 "2016-04-07T05:44:07Z")

</div>

Thanks. As mentioned in my email, ethtool is not returning anything on my machine except as below.

ethtool eth0  
Settings for eth0:  
Link detected: yes

Only above info is listed. So when I try to run your command, I get blank
