Documentation | !extractIntelNodes

Extract Intel Nodes

This Ruby function exports a list of all nodes in a node set that have Intel wifi cards installed. You could append this list to any node set in order to exclude Intel nodes from any test.

Usage

joeuser@console.sb1:~$ ./extractIntelNodes nodeset

Source for file 'extractIntelNodes'

#!/usr/bin/ruby
require 'orbit_Support'

ons = OrbitNodeSets.new(ARGV[0])

ons.nodeList.each { |node|
    x = node['x']
    y = node['y']

    io = IO.popen("ssh root@node#{x}-#{y} 'iwconfig | grep eth2' 2> /dev/null","r")
    line = io.readlines[0]
    if (line != nil && line['IEEE']) then
        puts "-[#{x}-#{y}]"
    end
}