Skip to content

Latest commit

 

History

History
70 lines (54 loc) · 1.16 KB

File metadata and controls

70 lines (54 loc) · 1.16 KB

Raw - Ping

By setting the correct parameters in the subscription request, a ping can be performed.

Request

Ping Specific Parameters

Name Type Values Description

target

String

String

The destination/host to ping.

count

String

A number encapsulated in a string (e.g. "1") between 1 and 4294967295

How many times to ping.

size

String or empty string

A number encapsulated in a string (e.g. "1") between 1 and 65507

The packet size of each ping request.

Response

The raw string response is pretty similar to a raw feed.

Root

Name Type Values Description

sub_id

String

String

The raw response e.g. "PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.\n\n".

Examples

Ping Example

Subscription Request
163
{"SUBSCRIBE":[{"name":"ping-feed","sub_id":"ping1","target":"192.168.0.1","count":"1","size":""}],"UNSUBSCRIBE":[],"SESSION_ID":"9a00126c5bf04e29835f7c13fe5ab155"}
Response
76
{
    "ping1": "PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.\n\n"
}