Hi,
can someone pls help and suggest the workaround, when I run the
following code, it return error
require ‘rubygems’
require ‘net/ping’
class PingIp
def ping_system(ping_system) @ping_address = “ping_system” #result = Ping.pingecho(ip_address,5,80)
result = Net::Ping.ping(@ping_address, 5)
if result
puts “system is alive”
else
puts “system is offline”
end
return result
end
end # end of class