Code Monkey home page Code Monkey logo

network-management's Introduction

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: 3.5,4.0

Load graph data via the following:

Dump file: data/network-management-40.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-40.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

Feedback

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

network-management's People

Contributors

fbiville avatar jexp avatar jmhreif avatar lju-lazarevic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

network-management's Issues

Syntax for neo4j v5 (deprecation)

In Neo4j 5.9, creating a node or relationship entity, and then referencing that entity in a property definition in the same CREATE clause is deprecated. Split the CREATE clause into two separate clauses instead.

As a consequence, in the racks section, instead of:

// Racks
WITH 10 as racks
MATCH (dc:DataCenter {name:"DC1"})
MATCH (nr:Network:Zone) // one per zone
WITH * UNWIND range(1,racks) AS rackid
CREATE (dc)-[:CONTAINS]->(rack:Rack {name:"DC1-RCK-"+nr.zone+"-"+rackid, rack:rackid, zone:nr.zone})-[:HOLDS]->(s:Switch {ip:nr.ip+"."+rackid, rack:rackid})-[:ROUTES]->(si:Interface {ip:s.ip+".254"})<-[:ROUTES]-(nr);

We should now have:

// Racks
WITH 10 as racks
MATCH (dc:DataCenter {name:"DC1"})
MATCH (nr:Network:Zone) // one per zone
WITH * UNWIND range(1,racks) AS rackid
CREATE (rack:Rack {name:"DC1-RCK-"+nr.zone+"-"+rackid, rack:rackid, zone:nr.zone})
CREATE (s:Switch {ip:nr.ip+"."+rackid, rack:rackid})
CREATE (si:Interface {ip:s.ip+".254"})
CREATE (dc)-[:CONTAINS]->(rack)-[:HOLDS]->(s)-[:ROUTES]->(si)<-[:ROUTES]-(nr);

Missing dump files

Need dump files for both 3.5 and 4.0
Format:

  • network-management-35.dump
  • network-management-40.dump

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.