# File lib/facter/util/macaddress.rb, line 35 def macaddress require 'facter/util/wmi' query = "select MACAddress from Win32_NetworkAdapterConfiguration where IPEnabled = True" ether = nil Facter::Util::WMI.execquery(query).each do |nic| ether = nic.MacAddress break end ether end
Generated with the Darkfish Rdoc Generator 2.