Name
peers — Discovers peers
Synopsis
peers [-ppeerid
name
attribute
] | [-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
-
-p
peerid
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
-a
argument. The value can include a wildcard.-
-n
Limits the number of responses to
n
from a single peer.-
-f
Flushes the local cache of peer advertisements.
Example
JXTA>peers -r
Discovers peers by sending a remote propagation message.
JXTA>peers -r -a
Name
-vluxor*
Uses remote propagation to file all peers with an attribute named
Name
that has a value that begins with
luxor
.
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.