Discovery Tool
An interactive command-line tool for working with discovery caches and diagnosing discovery issues.
Overview
The Discovery Tool assists in diagnosing issues with discovery by providing interactive access to discovery caches. It allows you to open discovery caches, inspect advertised entities, and monitor entity lifecycle events in real-time.
Running the Discovery Tool
The Discovery Tool can be launched directly from an nvx-core-all jar or nvx-talon-all jar, so long as you also include the jars/classes required by the provider (such as message bus classes and the platform's default third party dependencies).
cd <path-to-logs-directory>
java -cp <your-app-classpath> com.neeve.tools.DiscoveryTool [-h] [initial-discovery-cache-descriptor]Usage:
DiscoveryTool [-h] [<initialCacheDescriptor>]
[<-h|--help> Displays this help message (default='false')]
[initialCacheDescriptor: The initial discovery cache to open]Example:
java -cp nvx-talon-all.jar com.neeve.tools.DiscoveryTool mcast://224.0.1.200:4090Properties
The following properties can be set in the tool to change its functionality:
longCommandDisplayThreshold
5
Commands that take longer than the given time in seconds will result in the tool outputting their execution time
stacktraces
false
Whether or not command exception stacktraces should be dumped
Commands
open
Opens a discovery cache.
Usage:
Example:
close
Closes the currently open discovery cache.
Usage:
get
Looks up an entity in the discovery cache.
Usage:
Example:
add
Adds an entity to the discovery cache.
Usage:
Example:
set
Sets a configuration or environment property.
Usage:
Example:
reset
Reset a configuration or environment property to its default value.
Usage:
stacktraces
Sets whether or not command exception stacktraces should be shown.
Usage:
history
Displays command history.
Usage:
help
Displays help message.
Usage:
ansi
Enables or disables ANSI output.
Usage:
echo
Displays a message or turns echo on or off.
Usage:
script
Runs a command script.
Usage:
bye | exit | quit
Exit the tool.
Usage:
Common Usage Patterns
Inspecting Running XVMs
To see what XVMs are currently advertising themselves:
Testing Discovery Configuration
To verify a specific discovery configuration is working:
Monitoring Entity Lifecycle
The Discovery Tool automatically displays events when entities join or leave the discovery cache, making it useful for monitoring entity lifecycle in real-time.
Related Topics
Discovery Model - Understanding discovery concepts
Discovery Configuration - Configuring discovery providers
Admin Over SMA - Administrative discovery
Next Steps
Launch Discovery Tool with your configured discovery provider
Use
getto inspect specific entitiesMonitor entity advertisements and age-out behavior
Verify XVMs and applications are advertising correctly
Test different discovery configurations
Last updated

