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

255 views
Skip to first unread message

Deepa Yr

unread,
Apr 6, 2016, 3:13:59 AM4/6/16
to Ansible Project
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

Mark Phillips

unread,
Apr 6, 2016, 2:49:13 PM4/6/16
to Ansible Project
Not what you're after, I suspect, but...

shell: "ethtool {{ ansible_default_ipv4.interface }} | awk '/Duplex|Speed/ { print $1, $2 }'"

Deepa Yr

unread,
Apr 7, 2016, 1:44:07 AM4/7/16
to Ansible Project
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
Reply all
Reply to author
Forward
0 new messages