|
| 1 | +:description: Discover your local Neo4j servers and add them to Fleet Manager in the Aura console to monitor them alongside your Aura deployments. |
| 2 | +:keywords: fleet management, monitoring, neo4j, aura, self-managed, discover local servers, fleet discovery, neo4j-admin fleet discover |
| 3 | +:page-role: new-2026.05 |
| 4 | +[[discover-local-servers]] |
| 5 | += Discover local servers |
| 6 | + |
| 7 | +You can use the `neo4j-admin fleet discover` command to automatically discover all Neo4j servers running on your local network and provide you with a registration code that you can use to add those servers to Fleet Manager in the Aura console. |
| 8 | + |
| 9 | + |
| 10 | +== Syntax |
| 11 | + |
| 12 | +The `neo4j-admin fleet discover` command has the following syntax: |
| 13 | + |
| 14 | +[source,bash] |
| 15 | +---- |
| 16 | +neo4j-admin fleet discover [-h] [--expand-commands] [--verbose] |
| 17 | + [--filename=<filename>] [--format=<format>] |
| 18 | + [--timeout=<timeout>] |
| 19 | +---- |
| 20 | + |
| 21 | +== Description |
| 22 | + |
| 23 | +The command listens for Neo4j fleet discovery broadcasts on the local network and lists all discovered Neo4j servers. |
| 24 | + |
| 25 | +== Options |
| 26 | + |
| 27 | +The `neo4j-admin fleet discover` command has the following options: |
| 28 | + |
| 29 | +.`neo4j-admin fleet discover` options |
| 30 | +[options="header", cols="5m,6a,2m"] |
| 31 | +|=== |
| 32 | +| Option |
| 33 | +| Description |
| 34 | +| Default |
| 35 | + |
| 36 | +|--expand-commands |
| 37 | +|Allow command expansion in config value evaluation. |
| 38 | +| |
| 39 | + |
| 40 | +|--filename=<filename> |
| 41 | +| Optional filename to which discovered servers will be written. |
| 42 | +| |
| 43 | + |
| 44 | +|--format=<format> |
| 45 | +| Output format (pretty, csv, json). |
| 46 | +| Pretty |
| 47 | + |
| 48 | +|-h, --help |
| 49 | +|Show this help message and exit. |
| 50 | +| |
| 51 | + |
| 52 | +|--timeout=<timeout> |
| 53 | +| Timeout in seconds. |
| 54 | +| 60 |
| 55 | + |
| 56 | +|--verbose |
| 57 | +|Enable verbose output. |
| 58 | +| |
| 59 | +|=== |
| 60 | + |
| 61 | +== Example |
| 62 | + |
| 63 | +The following example shows how to use the `neo4j-admin fleet discover` command to discover Neo4j servers on the local network: |
| 64 | + |
| 65 | +[source,bash] |
| 66 | +---- |
| 67 | +bin/neo4j-admin fleet discover |
| 68 | +---- |
| 69 | + |
| 70 | +.Example output |
| 71 | +[result] |
| 72 | +---- |
| 73 | +Listening for Neo4j discovery broadcasts on port 8687 for a duration of 60 seconds |
| 74 | +
|
| 75 | +Discovered 1 Neo4j server |
| 76 | +
|
| 77 | + DBMS ID: 192A83F39D18F8DA0E2CDE0EF1D1B8E7E87CF50CC82D309C88734AEC872864CF |
| 78 | + Address: localhost:7687 |
| 79 | +
|
| 80 | + Server ID: 72663169-aab7-4cfc-a58e-c207d29c810d |
| 81 | + Version: 2026.06.0-57838 |
| 82 | + Edition: enterprise |
| 83 | + Address: localhost:7687 |
| 84 | +
|
| 85 | +To add discovered servers with Fleet Manager, log in or sign up to Neo4j Aura and open the dialog to add deployments from Neo4j Admin. |
| 86 | +Please see the documentation at: https://neo4j.com/docs/aura/fleet-management/setup/ |
| 87 | +When prompted, paste the following code into the dialog: |
| 88 | +
|
| 89 | +W3siZGJtc0lkIjoiMTkyQTgzRjM5RDE4RjhEQTBFMkNERTBFRjFEMUI4RTdFODdDRjUwQ0M4MkQzMDlDODg3MzRBRUM4NzI4NjRDRiIsInNlcnZlckNvdW50IjoxLCJhZGRyZXNzZXMiOlsibG9jYWxob3N0Ojc2ODciXX1d |
| 90 | +---- |
| 91 | + |
| 92 | +After pasting the code in the Aura console, you can decide which of the discovered servers you want to monitor and add them to your fleet. |
| 93 | +For more information, see link:{neo4j-docs-base-uri}/aura/fleet-management/setup/#discover-deployments[Aura documentation -> Discover deployments]. |
| 94 | + |
| 95 | +== Configure the fleet discovery service |
| 96 | + |
| 97 | +The fleet discovery service is enabled by default, so that you can easily discover and monitor your local Neo4j servers in Fleet Manager. |
| 98 | +However, if you need to disable it, you can do so by setting the xref:configuration/configuration-settings.adoc#config_server.fleet_discovery.enabled[`server.fleet_discovery.enabled`] configuration parameter to `false` in your _neo4j.conf_ file. |
| 99 | + |
| 100 | +Additionally, you can specify a custom port for the fleet discovery service to listen on by setting xref:configuration/configuration-settings.adoc#config_server.fleet_discovery.port[`server.fleet_discovery.port`] or change the delay between broadcasts by setting xref:configuration/configuration-settings.adoc#config_server.fleet_discovery.broadcast_interval[`server.fleet_discovery.broadcast_interval`]. |
| 101 | +The base value for the broadcast interval is 30 seconds, but it can be adjusted by adding a jitter interval to prevent all servers from broadcasting at the same time. |
| 102 | +You can set the jitter interval using the xref:configuration/configuration-settings.adoc#config_server.fleet_discovery.broadcast_interval_jitter[`server.fleet_discovery.jitter_interval`] configuration setting. |
0 commit comments