junos ping
Ping remote target
Description
Ping remote target
Synopsis
Arguments
site
- (string)
Site where this command will be executed
Example: --site "site-1"
Default: input.site
Attributes: optional
cluster
- (string)
Name of junos device
Example: --cluster "mx-1"
Default: junos-default
Attributes: optional
host
- (string)
Hostname or IP address of remote host
Example: "10.100.1.2"
Default: _None_
Attributes: required
count
- (int)
Number of ping requests to send
Example: --count 3
Default: 3
Attributes: optional
Examples
Input:
Output:PING 10.100.14.2 (10.100.14.2): 56 data bytes
64 bytes from 10.100.14.2: icmp_seq=0 ttl=64 time=9.320 ms
64 bytes from 10.100.14.2: icmp_seq=1 ttl=64 time=1.907 ms
64 bytes from 10.100.14.2: icmp_seq=2 ttl=64 time=1.470 ms
--- 10.100.14.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.470/4.232/9.320/3.602 ms
{
"ping-results": [
{
"target-host": [
{
"data": "10.100.14.2"
}
],
"target-ip": [
{
"data": "10.100.14.2"
}
],
"packet-size": [
{
"data": "56"
}
],
"probe-result": [
{
"attributes": {
"date-determined": "1670624020"
},
"probe-index": [
{
"data": "1"
}
],
"probe-success": [
{
"data": [null]
}
],
"sequence-number": [
{
"data": "0"
}
],
"ip-address": [
{
"data": "10.100.14.2"
}
],
"time-to-live": [
{
"data": "64"
}
],
"response-size": [
{
"data": "64"
}
],
"rtt": [
{
"data": "1512"
}
]
},
{
"attributes": {
"date-determined": "1670624021"
},
"probe-index": [
{
"data": "2"
}
],
"probe-success": [
{
"data": [null]
}
],
"sequence-number": [
{
"data": "1"
}
],
"ip-address": [
{
"data": "10.100.14.2"
}
],
"time-to-live": [
{
"data": "64"
}
],
"response-size": [
{
"data": "64"
}
],
"rtt": [
{
"data": "1523"
}
]
},
{
"attributes": {
"date-determined": "1670624022"
},
"probe-index": [
{
"data": "3"
}
],
"probe-success": [
{
"data": [null]
}
],
"sequence-number": [
{
"data": "2"
}
],
"ip-address": [
{
"data": "10.100.14.2"
}
],
"time-to-live": [
{
"data": "64"
}
],
"response-size": [
{
"data": "64"
}
],
"rtt": [
{
"data": "1264"
}
]
}
],
"probe-results-summary": [
{
"probes-sent": [
{
"data": "3"
}
],
"responses-received": [
{
"data": "3"
}
],
"packet-loss": [
{
"data": "0"
}
],
"rtt-minimum": [
{
"data": "1264"
}
],
"rtt-maximum": [
{
"data": "1523"
}
],
"rtt-average": [
{
"data": "1433"
}
],
"rtt-stddev": [
{
"data": "119"
}
]
}
],
"ping-success": [
{
"data": [null]
}
]
}
]
}
Access Control
To use this command, you need access to the following:
Field | Value |
---|---|
Action | "read" |
Service Type | "junos" |
Service Instance | |
Namespace | |
Object Type | "ping" |
Object ID |
Please see Access Control for details.