Big6 Ping Action is available starting Big6 version 3.41. Pls. make sure that you are on version 3.41 or higher before trying ping.

There is no need for special “ping” profiles. Use regular HTTP “listening” profile to receive “ping” information and create HS4 devices that hold the result of the ping. The results of the ping come in JSON format. Use Big6 JSON parsing in the profile expressions in order to create HS4 devices that hold the desired information. See example below for details.

Create HS4 event in order to use Big6 ping function. Select Big6Ping from the drop down action items.

Select Big6 HTTP “listening” profile that you created beforehand.

Enter the IP addresses of the devices that you want to ping then comma (,) then the name associated with this device. Repeat as many times as needed to ping multiple devices. Separate the entries by semicolon (;).

Example:

192.168.1.115,John;192.168.1.239,NodeRed;192.168.1.141,Fountain

Here is the JSON file with the ping results for the above example that goes to your Big6 “listening” HTTP profile.

[{
“Name”: “John”,
“Response”: 25,
“AvgTime”: 93,
“Details”: [“0,9999”, “0,9999”, “0,9999”, “100,93”]
}, {
“Name”: “NodeRed”,
“Response”: 100,
“AvgTime”: 0,
“Details”: [“100,0”, “100,0”, “100,0”, “100,0”]
}, {
“Name”: “Fountain”,
“Response”: 100,
“AvgTime”: 9,
“Details”: [“100,4”, “100,2”, “100,15”, “100,14”]
}]

The result is based on 4 pings.

Response – is the average % response rate of the 4 attempts. It can be 0, 25, 50 or 100.

Avg, time – is the average time top respond of the successful pings. Unsuccessful pings are ignored.

Details – show the details of each of the 4 pings. First digit is 0 (failure) or 100 (success). Second is response time in ms. The response time is fictitious number of 9999 in case of failure.

Here are suggested Expressions for your Big6 HTTP listening profile. Click here for more information on how to setup Big6 HTTP listening profile. Do NOT forget to check the “listening” box in the profile.

Name expression

JSON(input,”[0].Name”)&&&JSON(input,”[1].Name”)&&&JSON(input,”[2].Name”)

Name (function) expression

“Response”&&”AvgTime”&&&”Response”&&”AvgTime”&&&”Response”&&”AvgTime”

Value (function) expression

JSON(input,”[0].Response”)&&JSON(input,”[0].AvgTime”)&&&JSON(input,”[1].Response”)&&JSON(input,”[1].AvgTime”)&&&JSON(input,”[2].Response”)&&JSON(input,”[2].AvgTime”)