{"id":22768395,"url":"https://github.com/neo4j-graph-examples/network-management","last_synced_at":"2025-04-15T01:51:03.270Z","repository":{"id":37784993,"uuid":"237423975","full_name":"neo4j-graph-examples/network-management","owner":"neo4j-graph-examples","description":"Dependency and root cause analysis and more for network and IT management graph example","archived":false,"fork":false,"pushed_at":"2024-10-08T08:26:56.000Z","size":28680,"stargazers_count":27,"open_issues_count":34,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T13:44:50.583Z","etag":null,"topics":["datacenter","dataset","example-data","graphdb","it-operations","neo4j","neo4j-approved","network-data","network-management"],"latest_commit_sha":null,"homepage":"https://sandbox.neo4j.com/?usecase=network-management","language":"Cypher","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neo4j-graph-examples.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-31T12:17:23.000Z","updated_at":"2025-03-23T17:14:40.000Z","dependencies_parsed_at":"2024-11-14T14:47:49.700Z","dependency_job_id":null,"html_url":"https://github.com/neo4j-graph-examples/network-management","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Fnetwork-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Fnetwork-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Fnetwork-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo4j-graph-examples%2Fnetwork-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neo4j-graph-examples","download_url":"https://codeload.github.com/neo4j-graph-examples/network-management/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991539,"owners_count":21194894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datacenter","dataset","example-data","graphdb","it-operations","neo4j","neo4j-approved","network-data","network-management"],"created_at":"2024-12-11T14:11:24.960Z","updated_at":"2025-04-15T01:51:03.248Z","avatar_url":"https://github.com/neo4j-graph-examples.png","language":"Cypher","funding_links":[],"categories":[],"sub_categories":[],"readme":":name: network-management\r\n:long-name: Network Management\r\n:description: Dependency and root cause analysis and more for network and IT management\r\n:icon: documentation/img/network.svg\r\n:tags: example-data,dataset,network-data,network-management,it-operations,datacenter\r\n:author: Michael Hunger\r\n:demodb: false\r\n:data: false\r\n:use-load-script: scripts/network-management.cypher\r\n:use-dump-file: data/network-management-40.dump\r\n:zip-file: false\r\n:use-plugin: false\r\n:target-db-version: 3.5,4.0\r\n:bloom-perspective: bloom/network-management.bloom-perspective\r\n:guide: documentation/network-management.neo4j-browser-guide\r\n:rendered-guide: https://guides.neo4j.com/sandbox/{name}/index.html\r\n:model: documentation/img/model.png\r\n:example: documentation/img/example.png\r\n:nodes: 83847\r\n:relationships: 181995\r\n\r\n:model-guide: documentation/modelling-decisions.adoc\r\n:todo: false\r\nimage::{icon}[width=100]\r\n\r\n== {long-name} Graph Example\r\n\r\nDescription: _{description}_\r\n\r\nifeval::[{todo} != false]\r\nTo Do: {todo}\r\nendif::[]\r\n\r\nNodes {nodes} Relationships {relationships}\r\n\r\n.Model\r\nimage::{model}[]\r\n\r\n.Example\r\nimage::{example}[width=600]\r\n\r\n:param-name: location\r\n:param-value: Iceland, Rekjavik\r\n\r\n.Example Query:\r\n[source,cypher,role=query-example-params,subs=+attributes]\r\n----\r\n:param {param-name} =\u003e \"{param-value}\"\r\n----\r\n\r\n[source,cypher,role=query-example,param-name={param-name},param-value={param-value},result-column=ip,expected-result=10.0.0.254]\r\n----\r\nMATCH (dc:DataCenter {location: $location})-[:CONTAINS]-\u003e(r:Router)-[:ROUTES]-\u003e(i:Interface)\r\nRETURN i.ip as ip\r\n----\r\n\r\n=== Setup\r\n\r\nThis is for Neo4j version: {target-db-version}\r\n\r\nifeval::[{use-plugin} != false]\r\nRequired plugins: {use-plugin}\r\nendif::[]\r\n\r\nifeval::[{demodb} != false]\r\nThe database is also available on https://demo.neo4jlabs.com:7473\r\n\r\nUsername \"{name}\", password: \"{name}\", database: \"{name}\"\r\nendif::[]\r\n\r\nRendered guide available via: `:play {rendered-guide}`\r\n\r\nUnrendered guide: link:{guide}[]\r\n\r\nLoad graph data via the following:\r\n\r\nifeval::[{data} != false]\r\n==== Data files: `{data}`\r\n\r\nImport flat files (csv, json, etc) using Cypher's https://neo4j.com/docs/cypher-manual/current/clauses/load-csv/[`LOAD CSV`], https://neo4j.com/labs/apoc/[APOC library], or https://neo4j.com/developer/data-import/[other methods].\r\nendif::[]\r\n\r\nifeval::[{use-dump-file} != false]\r\n==== Dump file: `{use-dump-file}`\r\n\r\n* 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.\r\n\r\n* Use the neo4j-admin tool to load data from the command line with the command below.\r\n\r\n[source,shell,subs=attributes]\r\n----\r\nbin/neo4j-admin load --from {use-dump-file} [--database \"database\"]\r\n----\r\n\r\n* Upload the dump file to Neo4j Aura via https://console.neo4j.io/#import-instructions\r\nendif::[]\r\n\r\nifeval::[{use-load-script} != false]\r\n==== Data load script: `{use-load-script}`\r\n\r\n[source,shell,subs=attributes]\r\n----\r\nbin/cypher-shell -u neo4j -p \"password\" -f {use-load-script} [-d \"database\"]\r\n----\r\n\r\nOr import in Neo4j Browser by dragging or pasting the content of {use-load-script}.\r\nendif::[]\r\n\r\nifeval::[{zip-file} != false]\r\n==== Zip file\r\n\r\nDownload the zip file link:{repo}/raw/master/{name}.zip[{name}.zip] and add it as \"project from file\" to https://neo4j.com/developer/neo4j-desktop[Neo4j Desktop^].\r\nendif::[]\r\n\r\n=== Code Examples\r\n\r\n* link:code/javascript/example.js[JavaScript]\r\n* link:code/java/Example.java[Java]\r\n* link:code/csharp/Example.cs[C#]\r\n* link:code/python/example.py[Python]\r\n* link:code/go/example.go[Go]\r\n\r\n=== Feedback\r\n\r\nFeel free to submit issues or pull requests for improvement on this repository.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo4j-graph-examples%2Fnetwork-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneo4j-graph-examples%2Fnetwork-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo4j-graph-examples%2Fnetwork-management/lists"}