Documentation ¶
Overview ¶
The following command will run pingmq as a client, subscribing to /ping/failure/+ topic and receiving any failed ping attempts.
$ ./pingmq client -t /ping/failure/+ 8.8.8.6: Request timed out for seq 1
The following command will run pingmq as a client, subscribing to /ping/failure/+ topic and receiving any failed ping attempts.
$ ./pingmq client -t /ping/success/+ 8 bytes from 8.8.8.8: seq=1 ttl=56 tos=32 time=21.753711ms
One can also subscribe to a specific IP by using the following command.
$ ./pingmq client -t /ping/+/8.8.8.8 8 bytes from 8.8.8.8: seq=1 ttl=56 tos=32 time=21.753711ms
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Client = &cobra.Command{
Use: "client",
Short: "client subscribes to the pingmq server and prints out the ping results",
}
)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.