Creating patch panels from scratch in Device42: an example

In this chapter, we will take a step by step approach to create patch panels from scratch to end result.

The goal

The example is simpler in nature, but this will cover the basics of how to add patch panel connections in device42.

End goal is:

  1. Patch Panel A is connected to Patch panel B : Panel A Panel B.
  2. Patch panel A is patched to switch-01.
  3. Patch panel B is patched to devices in the same rack as Panel B.

This will give us devices connectivity with switch ports.

Creating Patch panel models

Before we add the patch panel, we need to create the template. In this example, this is a singular patch panel with 48 RJ-45 ports. Steps taken:

  • Go to Resources > Assets > Patch Panel Models > Add.
  • Add a name, port type, the number of ports etc., for the model.
  • Save the patch panel model.

Creating patch panels

  1. Go to Resources > All Assets > Add Asset.
  2. Give the name Panel A, choose type Patch Panel, and choose the model created above.
  3. Click Save.

Repeat the same steps for Panel B, just change the name to Panel B in step 2.

Adding the Back connections or termination

  1. Go to Tools > Templates & Bulk Operations > Panel Back Connectivity.
  2. choose Panel A, Port From: 1, Port To: 48 and Panel B, Port From: 1 and optionally, cable type.
  3. Click Continue.

Now Panel A and Panel B are terminated to each other.

Patching switch ports to panel A


In this example, ports from switch-01 are patched to Panel A. (You can create switch ports in bulk using switch templates as discussed under Switch Templates)

The tedious way to do this will be to add each switch port to each panel port. But we are not going to do that.

Recommended way to do the same is to use API Excel import option added in v5.2.0.

  1. Go to Tools > Templates & Bulk Operations > Imports/Exports (xls).
  2. Download sample excel file from “Create or update patch panel ports” in that page.
  3. Our columns will look like this: number    patch_panel_id    switch    switchport
  4. Add the rows for panel port #, panel ID(available from Asset list view/from APIs/or get using Hover over in the status bar), switch name and switch port name.
  5. Import the Sheet.


Upon import, you can see the switch ports connections on Panel A.

Patching devices to panel B


In this step, we will use the same sample excel sheet downloaded in step above.

Column layout will be a little different and will look like this: number    patch_panel_id    device    obj_label1

Once we add the values to excel and import it, the panel B will show following.


Patch panel layout


Now if you go to Patch panel layout for Panel B and hover over any port or device, you will see the full visual path for that port.

Switch port level connectivity


You will see the patch panel connectivity from each switch port view as well.

Device level connectivity


Similarly, in the Device view/edit page, you will see the patch panel connection under the tab “other”.

This concludes our chapter on how to create a patch panel layout in Device42.