Name
peers — Discovers peers
Synopsis
peers [-ppeeridnameattribute] | [-n n] | [-r] | [-l] | [-a] | [-v] | [-f]
Description
The peers
command discovers other peers within a peergroup or at a specified
peer location. Running this command with no options lists only the
peers already known (cached) by the peer. The -r
option is used to send a propagate request to find new peers.
peers stores its results in the local cache and
inserts advertisements into the environment using the name
peer
X, in which
X is a growing integer number.
Options
-
-ppeerid Discovers peers at a given peer location.
-
-r Discovers peers using remote propagation.
-
-l Displays peer IDs as a hex string.
-
-a Specifies an attribute name to limit discovery to only those peers with the given attribute name.
-
-v Specifies an attribute value to limit discovery to only those peers with the given attribute value for the attribute specified with the
-aargument. The value can include a wildcard.-
-n Limits the number of responses to
nfrom a single peer.-
-f Flushes the local cache of peer advertisements.
Example
JXTA>peers -rDiscovers peers by sending a remote propagation message.
JXTA>peers -r -aName-vluxor*
Uses remote propagation to file all peers with an attribute named
Name that has a value that begins with
luxor.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access