Command - AddressBook
Generate an address book file and set of private keys for a FoxMQ session.
Usage: foxmq address-book <COMMAND>
Subcommands
from-list
from-listGenerate the address book from a list of predetermined UDP socket addresses
These socket addresses correspond to the --cluster-addr of each node, or a socket address that connects to it if using 0.0.0.0.
An error will be returned if the same address is listed more than once.
Usage: foxmq address-book from-list [OPTIONS] <SOCKET_ADDRESSES>...
Arguments
SOCKET_ADDRESSES...The list of UDP socket addresses (IP:port) to include in the address book. An error will be returned if the same address is listed more than once.
Options
--log,-lSet the format of log output.Default:
fullOptions:
full,compact,pretty,jsonjsonis structured and is intended for usage by tools that process structured logs in production environments, and is not optimized for human readability.
--output-dir,-OThe path to write the address book and secret key files to. If any parent directories in the path do not already exist, they will be created. An error will be returned if the directory already contains anaddress-book.tomlor any conflictingkey_*.pemPass-f/--forceto overwrite any existing files.Default:
foxmq.d/
--force/-fIf any file generated by the command already exists, overwrite it instead of emitting an error.
Example
Note: This Example uses IP Addresses from the TEST-NET-1 range, and they're reserved for documentation purposes.
foxmq address-book from-list \
-O "foxmq.d/" \
"192.0.2.0:19793" \
"192.0.2.1:19793"from-range
from-rangeGenerate the address book from a base IP address and a range of UDP ports.
These socket addresses correspond to the --cluster-addr of each node, or a socket address that connects to it if using 0.0.0.0.
The total number of addresses generated will be PORT_END - PORT_START + 1 (because the range is inclusive).
Usage: foxmq address-book from-list [OPTIONS] <BASE_ADDRESS> <PORT_START> <PORT_END>
Arguments
BASE_ADDRESSThe base IP address which will be affixed with ports in the given rangePORT_STARTThe start of the UDP port range (inclusive)PORT_ENDThe end of the UDP port range (inclusive)
Options
--log,-lSet the format of log output.Default:
fullOptions:
full,compact,pretty,jsonjsonis structured and is intended for usage by tools that process structured logs in production environments, and is not optimized for human readability.
--output-dir,-OThe path to write the address book and secret key files to. If any parent directories in the path do not already exist, they will be created. An error will be returned if the directory already contains anaddress-book.tomlor any conflictingkey_*.pemPass-f/--forceto overwrite any exiting files.Default:
foxmq.d/
--force/-fIf any file generated by the command already exists, overwrite it instead of emitting an error.
Example
foxmq address-book from-range \
-O "foxmq.d/" \
"127.0.0.1" \
19793 \
19794Last updated