Import rack diagrams created from Powerpoint

389 views
Skip to first unread message

joseph de los santos

unread,
Sep 3, 2020, 7:12:45 AM9/3/20
to NetBox
Hi Guys,

Just wondering if this is possible or do I have to re-create the rack diagrams in another format for import to netbox?

Thank you

Brian Candler

unread,
Sep 3, 2020, 7:27:43 AM9/3/20
to NetBox
Netbox's data model is of individual devices - not a graphical representation like powerpoint.  You'll need to create the device types; create the individual devices; and assign each device to the correct rack, face and position.  Once that's done, Netbox can render its own device elevations as SVG images.

If you have additional photos or images, you can attach them to objects in Netbox (e.g. a rack photo can be attached to the rack)

joseph de los santos

unread,
Sep 3, 2020, 7:43:56 AM9/3/20
to NetBox
Thank you. Sorry I am new-- How do I do those things?

Brian Candler

unread,
Sep 3, 2020, 8:38:29 AM9/3/20
to NetBox
1. There's a web GUI where you can create things via pointing and clicking
2. The web interface has a bulk import facility (via CSV file, or JSON in the case of Device Types)
3. There's a REST API

joseph de los santos

unread,
Sep 3, 2020, 7:06:59 PM9/3/20
to Brian Candler, NetBox
Thanks, How do I access the web GUI?

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/a6344d0e-08ea-4754-a0c4-1787a8a3c5a7o%40googlegroups.com.

joseph de los santos

unread,
Sep 3, 2020, 10:09:22 PM9/3/20
to NetBox
Also, is there a way to import rack diagrams created in one netbox instance to another netbox? is it using the import function? may I know the file extension?

thank you

Brian Candler

unread,
Sep 4, 2020, 3:00:36 AM9/4/20
to NetBox
On Friday, 4 September 2020 00:06:59 UTC+1, joseph de los santos wrote:
How do I access the web GUI?

Using a web browser, just like any other web application.  I think you'll find it helpful to read the Netbox documentation:
 
Also, is there a way to import rack diagrams created in one netbox instance to another netbox? is it using the import function? may I know the file extension?

You do not "create rack diagrams" in Netbox.  You create devices, and then Netbox renders the devices based on the rack and position information you've told it for each device.

So what you're really asking is whether you can export and import devices from one Netbox instance to another.

The answer is, no you can't, unless:
1. you copy the entire postgres database (i.e. clone the entire instance)
or
2. you write some code which scrapes the REST API of one instance and makes the corresponding changes via the REST API of another instance - but I'm not aware of any existing tool which does this.  (And it would have to track the database-assigned sequence number of each object separately in old and new databases)

joseph de los santos

unread,
Sep 4, 2020, 8:25:03 PM9/4/20
to NetBox
Ok, thank you for clarifying. what is the point of the import function ? is it just for importing console ports to multiple devices?

Brian Candler

unread,
Sep 5, 2020, 4:07:24 AM9/5/20
to NetBox
It's for importing entities from a legacy system (e.g. a spreadsheet), not from another instance of Netbox.

It can only create objects, not update them, and it does not deal well with relationships between objects.  For example: it's possible to have devices with no name, but then you cannot import any interfaces which go with that device.

In several cases (including cables if I remember correctly), Netbox's export format is not compatible with its own import format.

joseph de los santos

unread,
Sep 7, 2020, 6:35:55 AM9/7/20
to Brian Candler, NetBox
Hi Brian,

Thanks for helping. so if I can get a csv version of the rack info I can just import that into my netbox instance?

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.

Brian Candler

unread,
Sep 7, 2020, 6:53:35 AM9/7/20
to NetBox
In principle yes.  You need to pre-create the manufacturers/device types, device roles, and the racks.  Then you can import a CSV where the heading line is for example:

device_role,manufacturer,device_type,status,site,rack,position,face

Position is the U-position of the lowest slot occupied by the device. face is front or rear.

Here are all the fields you can set on device import:


joseph de los santos

unread,
Sep 7, 2020, 6:55:44 AM9/7/20
to Brian Candler, NetBox
Ok, when you say pre-create, I use the webgui to do that right?

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.

Brian Candler

unread,
Sep 7, 2020, 7:09:05 AM9/7/20
to NetBox
I think you ought simply to install Netbox, because these things are all answered easily by trying it out.

Yes, you can use the GUI to create those things.  You can also use CSV to import racks, and JSON/YAML to import device types (since device types also include ports/interfaces)

joseph de los santos

unread,
Sep 7, 2020, 11:05:40 PM9/7/20
to Brian Candler, NetBox
Hi All,

So I am trying to create the columns so I can import the racks.. not sure if I am doing this correctly but basically, I think I should specify the columns I want to submit? like the below? then after submission I can just click import csv to populate the table? Thank you

image.png


On Mon, Sep 7, 2020 at 7:09 PM Brian Candler <b.ca...@pobox.com> wrote:
I think you ought simply to install Netbox, because these things are all answered easily by trying it out.

Yes, you can use the GUI to create those things.  You can also use CSV to import racks, and JSON/YAML to import device types (since device types also include ports/interfaces)

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.

joseph de los santos

unread,
Sep 8, 2020, 12:24:19 AM9/8/20
to Brian Candler, NetBox
I might be doing it wrong, I have managed to pull out data for racks and devices in csv format, (2 different files), I tried creating the list of column headers to no avail, should I create the column headers+ the devices data in the import field? thank you

joseph de los santos

unread,
Sep 8, 2020, 1:27:08 AM9/8/20
to Brian Candler, NetBox
I think I got it, its  column field names on one row and data on succeeding rows... (i.e.) 

site,group_name,name,facility_id,tenant,status,role,type,serial,asset_tag,width,u_height,desc_units,outer_width,outer_depth,outer_unit,comments
EE1,,5037,EME1:01:020010:0507,Cli,Active,,,,,19,45,,,,,test loc ingress rack

On Tue, Sep 8, 2020 at 11:05 AM joseph de los santos <josephbde...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages