Skip to content
RackTraceDocs

Importing devices, cables and ports from a spreadsheet

On this page

Have an inventory in Excel, or CSV exports from another RackTrace? Import them into a tenant instead of typing everything again. RackTrace reads devices, cables and ports, places the devices in their site, floor, room and rack, picks the templates from the device library, and shows you what it will create before anything is saved.

Importing#

  1. Open Library & reports → Export & reports of the tenant and click Import CSV / Excel… under Import from a spreadsheet (administrators).
  2. Choose one or more files, or drop them on the dialog: CSV files, or one Excel workbook (.xlsx) with a sheet per kind.
  3. Check the preview (see below). Change how a column is read, or leave a file out, and the preview follows.
  4. Click Import. The rows that can be imported are made in one go; rows with an error are left out.

Importing the same files again only adds what is new: everything that is already there is skipped.

Which files#

  • The CSV exports of RackTrace: Devices, Cables and Ports under Spreadsheets (CSV), and Export cables of one rack. What you export can be imported again — into another tenant, or into the same one after a change in Excel.
  • A list of your own: start from a template (Templates for Excel on the card or in the dialog: Devices, Cables, Ports). They open in Excel in Dutch or English: the columns are separated by ; and the file is UTF-8, so é and € stay intact. Replace the example rows with your own.
  • Excel: save as CSV UTF-8, CSV (separated by semicolons) or keep the .xlsx. Columns separated by ;, , or a tab are all read, and so are files without UTF-8 (Windows) or as Unicode text. An old .xls: save it as .xlsx or CSV first.
  • Several files at once — say the three exports — or one workbook. A title above the column names is fine; a sheet that holds none of the three kinds is left out.

The kind of each file (devices, cables or ports) follows from its columns. Column names of the export are read, and common other names too: Name, Hostname, Vendor, Serial number, IP address, and Dutch ones such as Locatie, Naam, Fabrikant, Serienummer.

Devices#

Where a device goes, one of three ways:

ColumnExample
LocationHQ/28/SL/RK001_Msite/floor/room/rack — or site/floor/room for a device outside a rack (an outlet, an access point)
ID (as exported)HQ/28/SL/RK001_M/SW01the location with the device's own ID at the end
Site, Floor, Room, RackHQ, 28, Server room, RK001_Man ID or a name each; without a floor, the site's only floor
  • A site, floor, room or rack that does not exist yet is made — with the names from the Site, Room and Rack columns when the location only has IDs. A new rack is 42U, or higher when a device in it sits higher.
  • Manufacturer and Model pick the template from the device library: the model name or the part number (USW-Pro-48 and UniFi Pro 48 (USW-Pro-48) both work), the tenant's own templates first. The device then gets the ports, height and front of the template. Without a template it is made as the row says, with the ports its cables and the ports sheet name.
  • U is the bottom unit in the rack; without one the device takes the highest free place. Code is its ID (SW01); without one it is made from the name.
  • Also read: Name, Height (U), Face (front / rear), Category, Status, Serial, Asset tag, Management IP, MAC, Network and Notes.
  • Skipped: a device with the same ID in the same place (without an ID: the same name), or with a serial number that is already in the tenant.

Cables#

  • A-end and B-end are the paths of the two ports, as in the export: HQ/28/SL/RK001_M/SW01/24. The rear of a patch panel port ends in (R): HQ/28/SL/RK001_M/PP01/01 (R); the two ends of a PATCHBOX cassette in ↑ and ↓. Instead of a path, an A device and an A port column (and B) work too.
  • Also read: Label, Trunk (made when there is none by that label), Status (planned draws it dashed), Type (Cat6a, OM4 …), Color and Length (m) — 0,5 and 0.5 both work.
  • A port that already has another cable is an error; a cable between two ports that are already connected to each other is skipped.

Ports#

  • Port is the port's path, as in the export; or a Device column with the device's path and the port's name in Port.
  • The ports of a device the import makes get the Label, VLAN, Speed, PoE, PoE setting, Switched off, Link aggregation, Role and Type of their row. A port the device does not have yet is added (01 (R) adds a pass-through port: front and rear).
  • Ports of devices that were there already are not changed; a port they do not have yet is added.
  • Connected to (and Cable for its label) makes the cable to that port when the cables file has not made it.

The preview#

  • Files: per file (or sheet) what it holds, the separator and encoding, and per column how it is read, with the first row as an example. Choose another kind, another meaning for a column, or — not imported —.
  • What will be created: the new sites, floors, rooms and racks with their IDs, and the number of devices, ports, cables and trunks.
  • Devices: every device that will be made, with its ID and the template it gets.
  • Skipped and errors: per file and row why it is skipped (already there, in the file twice) or cannot be imported (a taken U, a location that is not a place, a port that does not exist), and notes such as an unknown category.

The preview is the import itself, undone at the end: it says exactly what Import will do.

Rights, history and plan#

  • Importing is for administrators, as is the JSON import. Anyone signed in can download the templates.
  • Every site, floor, room, rack, device and cable made has its own entry in the history, and the tenant one more with the files and what came in.
  • When the plan of your organization limits racks or devices, an import that would go over it is refused as a whole; the preview says so first.

Something missing or not right? Let us know.