Updates help for lf_generic_ping

This commit is contained in:
Jed Reynolds
2018-10-25 15:38:22 -07:00
parent 7a05b80dc5
commit bffdf1fae6

View File

@@ -52,6 +52,7 @@ $0 --mgr {host-name | IP}
# You should be able to place 1000 interfaces in the list # You should be able to place 1000 interfaces in the list
--radio {wiphy} | --parent {eth} --radio {wiphy} | --parent {eth}
--match {simple prefix, no stars or questions marks} --match {simple prefix, no stars or questions marks}
--cmd {"double quoted command"} # can contain special parameters
Examples: Examples:
$0 --mgr localhost --resource 1 --dest 192.168.0.1 -i wlan0 -i sta3000 $0 --mgr localhost --resource 1 --dest 192.168.0.1 -i wlan0 -i sta3000
@@ -68,6 +69,15 @@ $0 --mgr {host-name | IP}
$0 -m localhost -r 1 -d 192.168.0.1 --match sta3 $0 -m localhost -r 1 -d 192.168.0.1 --match sta3
This will match sta3 sta30 sta31 sta3000 This will match sta3 sta30 sta31 sta3000
Please don't put single quotes in a command. A command can have these expansions:
%d destination ip or hostname
%i port IPv4 address
%p port name
Example command
$0 --cmd "curl -sqL --dns-ipv4-addr %i --dns-interface %p --interface %p --localaddr %i -o /tmp/results-%p http://%d/"
The default name of the generic endpoints given will be "lfping_[port]". The default name of the generic endpoints given will be "lfping_[port]".
You can create multiple generic connections per port by altering You can create multiple generic connections per port by altering
the endpoint name with the --name switch. the endpoint name with the --name switch.
@@ -262,7 +272,7 @@ Parameters that can be replaced:
%i port IPv4 address %i port IPv4 address
%p port name %p port name
curl -L --dns-ipv4-addr %i --dns-interface %p --interface %p --localaddr %i -o /dev/null http://%d/ curl -sqL --dns-ipv4-addr %i --dns-interface %p --interface %p --localaddr %i -o /dev/null http://%d/
=cut =cut
sub create_generic { sub create_generic {