Skip to content

Commit

Permalink
Add 'assh ping' usage example in the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Oct 23, 2017
1 parent fa4ba12 commit 922c2d7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ AUTHOR(S):
Manfred Touron <https://github.com/moul/advanced-ssh-config>
COMMANDS:
ping Send packets to the SSH server and display statistics
info Display system-wide information
config Manage ssh and assh configuration
sockets Manage control sockets
Expand Down Expand Up @@ -713,6 +714,23 @@ Create a master control sockets.
$ assh sockets master
```

#### `assh ping`

Send packets to the SSH server and display stats.

```console
$ assh ping -c 4 localhost
PING localhost (127.0.0.1) PORT 22 (ssh) PROTO tcp
Connected to 127.0.0.1: seq=0 time=321µs protocol=tcp port=22
Connected to 127.0.0.1: seq=1 time=501µs protocol=tcp port=22
Connected to 127.0.0.1: seq=2 time=550µs protocol=tcp port=22
Connected to 127.0.0.1: seq=3 time=641µs protocol=tcp port=22

--- localhost assh ping statistics ---
4 packets transmitted, 4 packets received, 0.00% packet loss
round-trip min/avg/max = 321µs/503.25µs/641µs
```

## Install

Get the latest version using GO (recommended way):
Expand Down
1 change: 1 addition & 0 deletions pkg/commands/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ var Commands = []cli.Command{
},
{
Name: "ping",
Usage: "Send packets to the SSH server and display statistics",
Action: cmdPing,
Flags: []cli.Flag{
cli.IntFlag{
Expand Down

0 comments on commit 922c2d7

Please sign in to comment.