Its problem. Connected rear ports 2 Optical Patch Panel

630 views
Skip to first unread message

Testig Gug

unread,
Oct 22, 2020, 6:50:58 AM10/22/20
to NetBox
The following problem arose.
I Have  2 optical patch panels in different racks with a capacity of 48 ports. Is it possible to group the rear ports of 2 patch panels? Rear port of  optical patch panel 1 to rear port of patch panel 2 ? 

How to do it ? 

Is it too long to connect ports one at a time if there are very many ports?

Testig Gug

unread,
Oct 22, 2020, 7:25:14 AM10/22/20
to NetBox
Has anyone encountered such a problem? Is there a solution? 

четверг, 22 октября 2020 г. в 13:50:58 UTC+3, Testig Gug:

Brian Candler

unread,
Oct 23, 2020, 4:09:53 AM10/23/20
to NetBox
On Thursday, 22 October 2020 11:50:58 UTC+1, Testig Gug wrote:
I Have  2 optical patch panels in different racks with a capacity of 48 ports. Is it possible to group the rear ports of 2 patch panels? Rear port of  optical patch panel 1 to rear port of patch panel 2 ? 


Yes.
 
How to do it ? 


Create a patch panel with:
* 1 Rear port, let's say you call it "R"
* 48 Front ports, let's say "F[1-48]"

At the time of creating the batch of front ports, you'll be asked to associate them with a rear port and position. Select all of R1 to R48.
 
Then create a second one of these patch panels.

Finally, create a cable between rearport R of the first patch panel to rearport R of the second patch panel.

If you are creating many of these patch panels, it's best to first create a device type which has this set of ports, let's say it's called "Patch Panel 1-48".  Then whenever you create an instance of this device type it will have all the ports pre-created, with the frontport to rearport associations already in place.  However it's also possible to create a patch panel with no ports, and add the ports to each panel as required.

Testig Gug

unread,
Oct 23, 2020, 9:35:29 AM10/23/20
to NetBox
Thanks for the info.
But maybe I wrote it wrong.

In Netbox  is:           Optical  Patch panel 1  -   48 Rear ports and 48 Front Ports

                                   Optical Patch panel 2  -   48 Rear ports and 48 Front Ports

Optical Patch Panel's must be connected: 

 1  Rear Ports OPP 1 Connected 1 Rear Ports  OPP 2
 2 Rear Ports OPP 1 connected 2 Rear Ports OPP 2
 3 Rear Ports OPP 1 connected 3 Rear Ports OPP 2
......

How to connect 48 ports in a group connection?

Select type 48 REAR portrs OPP 1 to connect with 48 REAR portrs OPP 2 with one click into NetBOX. ?

Maybe ?

пятница, 23 октября 2020 г. в 11:09:53 UTC+3, Brian Candler:

Jonathan Karras

unread,
Oct 23, 2020, 10:24:29 AM10/23/20
to Testig Gug, NetBox
Single rear port with 48 positions is what your looking for I think.

--
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/9f53fffe-d689-4356-8938-d84bffe06d45n%40googlegroups.com.

Testig Gug

unread,
Oct 23, 2020, 10:48:03 AM10/23/20
to NetBox
How connect  PP1 1-48 Rear Port   <<<---connect --->>>  1-48 Rear port PP2 ? 

How to connect to netbox in one click using netbox?
It takes a long time to connect each port 48 times

Is there a mechanism in Netbox?


пятница, 23 октября 2020 г. в 17:24:29 UTC+3, jka...@gmail.com:

Brian Candler

unread,
Oct 23, 2020, 12:02:04 PM10/23/20
to NetBox
On Friday, 23 October 2020 15:48:03 UTC+1, Testig Gug wrote:
How connect  PP1 1-48 Rear Port   <<<---connect --->>>  1-48 Rear port PP2 ? 


If that's what you want to do, then you need to create 48 cables.  Use the CSV import, or use the API.

But that's not what you originally asked for.  You asked how to "group the rear ports of 2 patch panels", and that's what we've explained.  A single rear port can carry 48 connections.

Testig Gug

unread,
Oct 26, 2020, 5:31:30 AM10/26/20
to NetBox
I had to introduce not grouping, but the connections of the rear ports of different patch panels port 1 pp 1 ---- port 1 pp 2.
not just one connection, but all at once 
пятница, 23 октября 2020 г. в 19:02:04 UTC+3, Brian Candler:

Testig Gug

unread,
Oct 27, 2020, 6:55:52 AM10/27/20
to NetBox
Its interesting maual https://cs7networks.co.uk/2019/09/28/netbox-creating-patch-panels-and-passive-cabling/ 

But, in the patch panel, an unlimited number of rear ports are possible. When creating 1 front port and selecting a group of rear ports, the following message will appear:

Select one rear port assignment for each front port being created.
The provided name pattern will create 1 ports, however 3 rear port assignments were selected. These counts must match.

What am I doing wrong ???
Tell me how to do it right?

понедельник, 26 октября 2020 г. в 11:31:30 UTC+2, Testig Gug:

Testig Gug

unread,
Oct 27, 2020, 8:21:29 AM10/27/20
to NetBox
https://github.com/netbox-community/netbox/issues/2854

Someone has activated a button or how to activate a button Bulk-Actions  NetBox ?

How about create new Button below the Table of the Connections with new Button (Bulk-Actions) who only active if more then two Rows a selected with the select-boxes on the Table-Front (nomaly the button is disabled).

вторник, 27 октября 2020 г. в 12:55:52 UTC+2, Testig Gug:

Brian Candler

unread,
Oct 27, 2020, 9:23:09 AM10/27/20
to NetBox
When you create a rearport, there's an option to say how many frontports (positions) it will be associated with.



Think of this as meaning "R1 accepts a cable with 48 strands".

Then when you create each front port, you can associate it with one of the strands: you get a selection box where you can choose between R1:1 ... R1:48.

You can create also 48 front ports in bulk, by giving the name "F[1-48]", and then you can select *all* of the rear ports R1:1 ... R1:48 inclusive.  In a single action this will associated front port F1 with rear port strand R1:1, front port F2 with rear port strand R1:2, etc.

Testig Gug

unread,
Oct 27, 2020, 9:59:09 AM10/27/20
to NetBox
I create front port Rear port whith position 24. 
After I create rear ports not connect ----> error:

Select one rear port assignment for each front port being created. 
The provided name pattern will create 1 ports, however 24 rear port assignments were selected. These counts must match.

What is ???

Screen: 





вторник, 27 октября 2020 г. в 15:23:09 UTC+2, Brian Candler:

Testig Gug

unread,
Oct 27, 2020, 10:05:51 AM10/27/20
to NetBox

вторник, 27 октября 2020 г. в 15:59:09 UTC+2, Testig Gug:

Testig Gug

unread,
Oct 27, 2020, 10:11:09 AM10/27/20
to NetBox


netbox.png
вторник, 27 октября 2020 г. в 16:05:51 UTC+2, Testig Gug:

Brian Candler

unread,
Oct 27, 2020, 11:00:33 AM10/27/20
to NetBox
If you are going to create an *individual* front port (called FP_1) then you can only connect it to a *single* rear port strand.

If you want to create multiple front ports in a single operation, then you must follow the instructions under the Name field:
"Alphanumeric ranges are supported for bulk creation. ... Examples"

That is: instead of giving name "FP_1" you must give name "FP_[1-24]", in exactly that format, including the square brackets.

Doing that will create 24 front ports in one bulk operation, named FP_1 to FP_24 inclusive.  When you do that, you can select 24 rear port strands, and each of the front ports will be linked to one of those strands.

Testig Gug

unread,
Oct 27, 2020, 11:19:14 AM10/27/20
to NetBox
Thank you.

вторник, 27 октября 2020 г. в 17:00:33 UTC+2, Brian Candler:

Testig Gug

unread,
Oct 27, 2020, 11:36:12 AM10/27/20
to NetBox
Thank you, it's clear how to create front and back ports and how to connect them.

But the question remained open: how to connect the rear ports 1-24 of patch panel 1 with the rear ports 1-24 of patch panel 2.
One click ??? similar to creating ports? Is there a functional.
Here is an interesting link:


Is it possible to implement such a button, do you need to enable developer mode?

вторник, 27 октября 2020 г. в 17:19:14 UTC+2, Testig Gug:

Brian Candler

unread,
Oct 27, 2020, 12:33:07 PM10/27/20
to NetBox
On Tuesday, 27 October 2020 15:36:12 UTC, Testig Gug wrote:
Thank you, it's clear how to create front and back ports and how to connect them.

But the question remained open: how to connect the rear ports 1-24 of patch panel 1 with the rear ports 1-24 of patch panel 2.

You just create one regular cable, from PP1 rear port R1 to PP2 rear port R1.  That cable implicitly carries all 24 "strands", because R1 and R2 were configured as 24-position ports.

In the real world, this would be like an MTP/MPO cable.

Note: Netbox doesn't actually manage individual fibre strands; it manages a connection from one interface to another interface. This may in practice be two fibres for Tx and Rx, but you model it as one "cable".

Testig Gug

unread,
Oct 28, 2020, 4:18:27 AM10/28/20
to NetBox
Imagine a situation 1 patch panel has 24 rear and 24 front ports. The rear and rear ports are connected 1-1.
Next comes the cable to rack B, where there is such a patch panel 2. Which has 24 rear and 24 front ports.
The fiber is welded and connected to the rear ports of Patch Panel 1 and Patch Panel 2.

How to group the 24 rear ports
1 and panel patch 2?
You can connect one port, but it takes a lot of time.

If we imagine that there are 10 patch panels with 48 ports.
This is to manually connect 480 rear ports between patch panels. It will take a very long time.
Therefore, the question arose of how to connect the rear ports in a group

If the cable is Solder between the patch panels the rear ports are port to port.

вторник, 27 октября 2020 г. в 18:33:07 UTC+2, Brian Candler:

Brian Candler

unread,
Oct 28, 2020, 5:57:46 AM10/28/20
to NetBox
On Wednesday, 28 October 2020 08:18:27 UTC, Testig Gug wrote:
Imagine a situation 1 patch panel has 24 rear and 24 front ports. The rear and rear ports are connected 1-1.

Yes.
 
Next comes the cable to rack B, where there is such a patch panel 2. Which has 24 rear and 24 front ports.

Yes.
 
The fiber is welded and connected to the rear ports of Patch Panel 1 and Patch Panel 2.

How to group the 24 rear ports
1 and panel patch 2?
You can connect one port, but it takes a lot of time.


There is a *bundle* of 24 cables, running from the back of Patch Panel 1 to the back of Patch Panel 2.  It might consist of  24 separate CAT5e cables, but they are probably tied together with cable ties into a single bundle.

NETBOX ALLOWS YOU TO MODEL THE BUNDLE AS A SINGLE CABLE!!

It doesn't matter that the "real" patch panel has 24 front ports and 24 rear ports.  You can model it in Netbox as a panel with 24 front ports and a SINGLE rear port, which takes a "24-way cable".

You don't have to do this.  It's optional.  But if you do, it means you can create a single cable in the data model to join two patch panels, which is quick and easy to do in the web interface.

If you don't, then you'll have to create 24 separate cables, exactly as you said.  You can do that by hand through the web interface, but it's very slow and tedious, exactly as you said.

The alternatives are:

1. You can do it quickly by using the CSV import feature for Cables (write a CSV file which lists the 24 cables, and import it)

2. You can do it using the REST API (write a program e.g. using pynetbox which creates 24 cables).

3. If you want this feature to be available in the web UI, then you can write a plugin, called a "Custom Script", which is just some Python code that runs inside the Netbox web framework.  You can write a custom script which prompts for two devices, and then connects all the rear ports of one to the rear ports of the other.  This is something you could develop yourself, although if you think it's helpful to others, you can share it.  You could even pay someone else to develop it for you.  There are a couple of example scripts here.

I think I have said the same thing three or four times now, so I'm going to drop out of this conversation now.

Testig Gug

unread,
Oct 28, 2020, 9:50:57 AM10/28/20
to NetBox


Thanks for the info, I thought that this functionality is in netbox, and it may be under development.

среда, 28 октября 2020 г. в 11:57:46 UTC+2, Brian Candler:

Testig Gug

unread,
Oct 29, 2020, 8:05:59 AM10/29/20
to NetBox
Thank you all for the discussion. 

But thanks to
And launching the application connected to the program I noticed the template for importing connections into the netbox.

Cable Bulk Import - Decision. 

side_a_device, side_a_type, side_a_name, side_b_device, side_b_type, side_b_name
pp3, rearport, Port 1, pp9, rearport, Port 1
pp3, rearport, Port 2, pp9, rearport, Port 2
pp3, rearport, Port 3, pp9, rearport, Port 3
pp3, rearport, Port 4, pp9, rearport, Port 4
pp3, rearport, Port 5, pp9, rearport, Port 5
pp3, rearport, Port 6, pp9, rearport, Port 6
.......
pp3, rearport, Port 24, pp9, rearport, Port 24
 
I solved the problem of group connection of rear ports in the same way.

среда, 28 октября 2020 г. в 15:50:57 UTC+2, Testig Gug:
Reply all
Reply to author
Forward
0 new messages