Page MenuHomePhabricator

ping wont accept arguments
Closed, InvalidPublicBUG

Description

ping 8.8.8.8 -s 1400
Invalid command: ping 8.8.8.8 -s [-s]
ping -c 1 ya.ru
ping: Unknown host: -c

Details

Difficulty level
Unknown (require assessment)
Version
1.2.2
Why the issue appeared?
Will be filled on close

Event Timeline

Harliff created this task.Aug 29 2019, 9:51 AM
c-po added a subscriber: c-po.Aug 29 2019, 10:12 AM

This is "as intended" b/c ping is an op-mode command.

See TAB completion:

vyos@vyos:~$ ping 8.8.8.8
Possible completions:
  <Enter>       Execute the current command
  adaptive      Ping options
  allow-broadcast
  audible
  bypass-route
  count
  deadline
  flood
  interface
  interval
  mark
  no-loopback
  numeric
  pattern
  quiet
  record-route
  size
  timestamp
  tos
  ttl
  verbose
vyos@vyos:~$ ping 8.8.8.8 count 1
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=8.22 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 8.220/8.220/8.220/0.000 ms
vyos@vyos:~$ ping 1.1.1.1 count 1 size 1500
PING 1.1.1.1 (1.1.1.1) 1500(1528) bytes of data.
1508 bytes from 1.1.1.1: icmp_seq=1 ttl=56 time=9.22 ms

--- 1.1.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 9.222/9.222/9.222/0.000 ms
c-po closed this task as Invalid.Aug 29 2019, 10:12 AM
syncer edited projects, added Rejected; removed VyOS 1.2 Crux.Aug 31 2019, 2:19 AM