tracerouteFromDevice
POST https://{{host}}/api/v1/sites/:site_id/devices/:device_id/traceroute
Traceroute can be performed from the Device. The output will be available through websocket. As there can be multiple
command issued against the same AP at the same time and the output all goes through the same websocket stream, session
is introduced for demux.
Body Parameters
Name | Type | Description |
---|---|---|
host | string | host name |
protocol | string | udp (default) /icmp |
port | int | when protocol=udp, the udp port to use (default is 33434) |
timeout | uint | maximum time in seconds to wait for the response (default is 60) |
network | string | The network on behalf of whom the traceroute is to be run (default is 'internal'). |
subscribe to Device Command outputs
{
"subscribe": "/sites/:site_id/devices/:device_id/cmd"
}
Request Body
{"host"=>"1.1.1.1", "protocol"=>"udp", "port"=>33434, "timeout"=>120, "network"=>"corp", "vrf"=>"lan"}