How to set multiple hosts to ping resource

Solution Verified - Updated -

Issue

  • How do I set multiple hosts to ping resource?
  • After I set a comma separated list "host1,host2" to host_list in ping resource, the following error occurs.
Dec  1 18:04:23 node1 ping(test-ping)[17599]: ERROR: Unexpected result for 'ping -n -q -W 10 -c 5  host1,host2' 2: ping: host1,host2: Name or service not known

Environment

  • Red Hat Enterprise Linux (RHEL) 7 with the High Availability Add On

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content