toolbelt network¶
toolbelt network ping¶
Description¶
Send a multicast query to the network and await directed multicast replies
Usage¶
- toolbelt [global options] network ping [-h] [-c <count>] [-t <ttl>]
Options¶
- -c <count>, --count <count>
Number of pings to send (1 each second, default is 3)
- -t <ttl>, --ttl <ttl>
Multicast TTL for pings (default is 5)
Examples¶
Ping the network, sending 5 packets (which will take about 5 seconds), with a ttl of 10:
toolbelt network ping -c 5 -t 10
toolbelt network expect¶
Description¶
Use this command to wait for a single RPC by function regex.
Usage¶
- toolbelt [global options] network expect <func_re> [-h] [-t <timeout>]
Arguments¶
<func_re> RPC function regex
Options¶
- -t <seconds>, --timeout <seconds>
Number of seconds to wait, default is 30 seconds.
Examples¶
Expect a button
rpc:
toolbelt network expect button
Expect a evt.*
rpc within the next 5 seconds:
toolbelt network expect "evt.*" -t 5
toolbelt network listen¶
Description¶
If you don’t have a real sniffer node available, you can always listen for RPCs that happen to come your way
(multicasts, for instance). If you do not specify the -t
option, the session will run until you use CTRL-C to
abort it.
Usage¶
- toolbelt [global options] network listen [-h] [-t <timeout>]
Options¶
- -t <seconds>, --timeout <seconds>
Number of seconds to listen, default is forever
Examples¶
Listen for RPCs:
toolbelt network listen
Listen for RPCs for one minute, then exit:
toolbelt network listen -t 60
toolbelt network sniff¶
Description¶
Like toolbelt network listen
, but not limited to RPCs. Allows you to listen for any packet that happens to come your way. If you do not specify the -t
option, the session will run until you use CTRL-C to
abort it.
Usage¶
- toolbelt [global options] network sniff [-h] [-t <timeout>]
Options¶
- -t <seconds>, --timeout <seconds>
Number of seconds to intercept messages, default is forever
Examples¶
Listen for packets:
toolbelt network sniff
Listen for packets for one minute, then exit:
toolbelt network sniff -t 60