In this article I’ll show you how to use information from NeDi to build network maps using draw.io.
Getting Data from NeDi
NeDi is an open source software tool which discovers, maps and inventories your network devices and tracks connected end nodes. In the NeDI database there are three tables that provide the data needed to build network maps. They are:
Devices
Interfaces
Links
In the devices table the device name is also the primary key. We then have information such as the IP address, the serial number, the description of the vendor, etc.
The interfaces table is linked to the devices table by means of the device name, and contains information relating to each individual interface.
Finally, the most important table for building network maps is: links. Its fields are:
id
device (name of devices)
ifname (name of interfaces)
neighbor (name of the neighboring device )
nbrifname (name of the neighboring interface)
bandwidth
linktype
linkdesc
nbrduplex
nbrvlanid
time
For example, let’s say you have the device: S0001-1-XXXX
To get all the useful information out, we can perform the following queries:
SELECT * FROM devices WHERE device='S0001-1-XXXX' SELECT * FROM interfaces WHERE device='S0001-1-XXXX15' SELECT * FROM links WHERE device='S0001-1-XXXX'
Let’s assume that the result of the third query is the following:
How to build maps with draw.io
Now that we have the data from NeDi we can use draw.io to build the maps. Following the instructions you can find here, we can build a .csv file from the data in the table above:
Copy the contents of the .csv file into the window that appears:
Click “Import” And the final result will be:
Conclusion
The process described above can be easily and conveniently automated with a script, and offers an alternative to producing network maps using the data provided by NeDi.
A customer with a NetEye installation to which I had added the NeDi module asked me if I could integrate the saved configuration files of "discovered" network devices with NeDi. NeDi, for those who are not yet familiar with it, Read More
Automating the monitoring process in Enterprise environments is a challenge that led Icinga to create features such as their REST API and the Icinga Director module. In both new NetEye4 projects and those being migrated from NetEye3 to NetEye4, this Read More
On the 23rd of this month, the NetEye and EriZone User Group in its German version took place on in the historic tramway depot “St. Peter” in Nuremberg. The event has been hosted by NetEye customer N-ERGIE Aktiengesellschaft. Participants had the Read More
There are a number of solutions promising simple switch provisioning. However, in reality a tool is either complicated, unreliable or even both… Of course, the device can be configured prior physical installation, but this can get complicated in an enterprise Read More
The network discovery tool NeDi does not only work as discovery tool for network devices like switches, routers and VOIP phones, it is also an excellent backup manager for switches. In almost all companies VLAN's, routings, etc. are configured on its Read More