Skip to content

QubitPi/neo4j-graph-examples-network-management

 
 

Repository files navigation

network

Network Management Graph Example

Description: Dependency and root cause analysis and more for network and IT management

Nodes 83847 Relationships 181995

model
Figure 1. Model
example
Figure 2. Example
Example Query:
:param location => "Iceland, Rekjavik"
MATCH (dc:DataCenter {location: $location})-[:CONTAINS]->(r:Router)-[:ROUTES]->(i:Interface)
RETURN i.ip as ip

Setup

This is for Neo4j version: 5.0

Load graph data via the following:

Dump file: data/network-management-50.dump

  • Drop the file into the Files section of a project in Neo4j Desktop. Then choose the option to Create new DBMS from dump option from the file options.

  • Use the neo4j-admin tool to load data from the command line with the command below.

bin/neo4j-admin load --from data/network-management-50.dump [--database "database"]

Data load script: scripts/network-management.cypher

bin/cypher-shell -u neo4j -p "password" -f scripts/network-management.cypher [-d "database"]

Or import in Neo4j Browser by dragging or pasting the content of scripts/network-management.cypher.

Code Examples

Troubleshooting

Error: "This database is currently offline"

This is most likely due to the version mismatch between Neo4J database and dump version. The number in the dump file name corresponds to the major and minor version of the matching database version. For example: network-management-50.dump works for 5.0 database. Please recreate database with the matching dump file version

Error: "Unsupported clauses were used: …​"

Looks like the correct database has not been selected. If Neo4j desktop app is used, please make sure that the DB name displayed as

Error loading documentation/img/correct-db.png

Feedback

Feel free to submit issues or pull requests for improvement on this repository.

Releases

No releases published

Packages

No packages published

Languages

  • Cypher 51.1%
  • Go 16.1%
  • Java 10.9%
  • C# 9.6%
  • JavaScript 6.9%
  • Python 5.4%