CLI REST-API

ping

ping [IP address|hostname]
The "ping" command allows to check connectivity to a network node with a
specific IP address.

The IP address has to be specified in this format: A.B.C.D
or, as an IPv6 address, in this format: A:B:C:D:E:F

The "ping" command also understands short cuts for the IPv6 address, i.e. "::".

Examples:
 "ping 192.168.0.45"
 "ping bad:cafe::10"

RESTAPI: The data can be passed in the body like this:
{
    "parameters": {
        "host": "192.168.0.45"
    }
}
NameValueDescriptionExample
IP address|hostname127.0.0.1
See also:
traceroute: print the network path used to reach the node.

REST-API Support:


This command is supported by the REST API:

Method: PUT
URL: /api/ping
Body:
{
    "parameters": {
        "host": [IP address|hostname]
    }
}

Example using curl:
curl -X PUT /api/ping -d 
"{
    \"parameters\": {
        \"host\": \"192.168.0.45\"
    }
}"