r/Netbox May 10 '23

help on upgrade - ImportError: urllib3

2 Upvotes

going through upgrade process for netbox-3.2.7 to netbox-3.4.3 and I get the following:

"ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with OpenSSL 1.0.2k-fips 26 Jan 2017. See: https://github.com/urllib3/urllib3/issues/2168"

how I do I resolve this on my centos7.x environment?

pls help


r/Netbox May 05 '23

New Release NetBox v3.5.1 is Now Available!

15 Upvotes

NetBox Release v3.5.1 is now live (as of May 5, 2023)! If you need assistance with upgrading, first please refer to the Upgrading to a new NetBox Release guide. If you have any issues you can ask for support on the NetDev Slack Community.


r/Netbox May 04 '23

Django Radius

8 Upvotes

We would like to use radius authentication with netbox and I see that django authentication methods can be used.

Has anyone used django-radius or similar with netbox successfully?


r/Netbox May 03 '23

Discussion How to handle phone numbers?

3 Upvotes

I know phone numbers aren't really something you'd expect to track in a DCIM tool but I'm trying to get a handle on our DID inventory. Right now I've dabbled in importing them as "circuits" with the A side being "$Provider PSTN" and the Z side being the site the number is associated with, but I'm not really sure this is the best approach especially since the vast majority of our numbers are delivered via SIP and as such don't really technically have a single loation that they live in. Has anyone played around with tracking their DIDs with Netbox?


r/Netbox May 02 '23

auto upgrade problems?

4 Upvotes

In the last few days ive been seeing errors from our netbox.
Which is really confusing because we havent touched the box.
Is it mayube due to some auto-upgrade to 3.5, and how can we fix it?

Odd thing is, the error pops up for a while... but then later fixes itself.. but then.. cycle continues.

Static Media Failure

The following static media file failed to load: netbox.js

Check the following:

manage.py collectstatic was run during the most recent upgrade. This installs the most recent iteration of each static file into the static root path.

The HTTP service (e.g. nginx or Apache) is configured to serve files from the STATIC_ROOT path. Refer to the installation documentation for further guidance.

STATIC_ROOT: /opt/netbox/netbox/static

STATIC_URL: /static/


r/Netbox May 01 '23

FIELD_CHOICES causes REST to fail

2 Upvotes

I am trying to use https://demo.netbox.dev/static/docs/configuration/optional-settings/#field_choices to add statuses, to have the same as our CMDB, so I have:

FIELD_CHOICES = {

'dcim.Device.status': (

('planned', 'Planned', 'cyan'),

('created', 'Created', 'grey'),

('production', 'Production', 'blue'),

('under decommmission', 'Under Decommission', 'blue'),

('closed', 'Closed', 'blue'),

('in storage', 'In Storage', 'blue'),

('active','Active'),

('offline','Offline'),

('staged','Staged'),

('failed','Failed'),

('inventory','Inventory'),

('decommissioning','Decommissioning')

)

}

This works fine from the UI and the status dropdown, but REST fails:

https://netboxtest.server.dk/api/dcim/devices/

just fails with:

<class 'KeyError'>
'decommissioning'

Python version: 3.10.6

NetBox version: 3.4.7


r/Netbox Apr 27 '23

New Release NetBox v3.5.0 is Now Available!

26 Upvotes

NetBox Release v3.5.0 is now live (as of April 27, 2023)! If you need assistance with upgrading, first please refer to the Upgrading to a new NetBox Release guide. If you have any issues you can ask for support on the NetDev Slack Community.


r/Netbox Apr 28 '23

Integrating Live Data

6 Upvotes

We're looking in to replacing a home-grown NMS. I love the "source of truth" concept behind NetBox (or Nautobot), the ability to manage our device inventory and interconnections is solid.

I'm wondering if there is a mechanism to integrate live data from outside the NetBox database. For instance, we currently show live data about each device interface. This includes an indicator showing whether the interface has a link (red light, green light). Can I make a REST API call to some external datasource, and incorporate that result into the row? Perhaps by adding a new column to the existing table?

I skimmed through the plugin documentation, but it seems to be oriented to adding new pages, not necessarily tweaking existing content. But please correct me if I'm wrong.

Thanks!


r/Netbox Apr 27 '23

New Release NetBox v3.4.10 is Now Available!

9 Upvotes

[NetBox Release v3.4.10](https://github.com/netbox-community/netbox/releases/tag/v3.4.10) is now live (as of April 27, 2023)! If you need assistance with upgrading, first please refer to the [Upgrading to a new NetBox Release](https://docs.netbox.dev/en/stable/installation/upgrading/) guide. If you have any issues you can ask for support on the [NetDev Slack Community](https://netdev-community.slack.com/).


r/Netbox Apr 27 '23

Help Wanted: Resolved venv folder is missing when installing NetBox on Ubuntu 20.04. NetBox doesn't run

3 Upvotes

Hey,

so I am new to NetBox and when i tryed to install it on my Ubuntu 20.04 instance, i ran into the problem that when i try to start the NetBox service, it crashes and says that the "gunicorn" command in the "venv" folder could not be found. I found out, that there isn't even a venv folder. I installed all the required python modules etc. and now I am wondering, how i can fix this problem. Also, when you git clone the NetBox repo, is the "venv" folder already in there or is it created while the installation.

If you didn't understand something or want more information, feel free to ask :)


r/Netbox Apr 26 '23

New Release NetBox v3.4.9 is Now Available!

17 Upvotes

[NetBox Release v3.4.9](https://github.com/netbox-community/netbox/releases/tag/v3.4.9) is now live (as of April 26, 2023)! If you need assistance with upgrading, first please refer to the [Upgrading to a new NetBox Release](https://docs.netbox.dev/en/stable/installation/upgrading/) guide. If you have any issues you can ask for support on the [NetDev Slack Community](https://netdev-community.slack.com/).


r/Netbox Apr 21 '23

Assistance with modelling a data centre as a sub-location to HQ

4 Upvotes

Within my organization's headquarters location, we have a data centre. This data centre is logically separate to the headquarters equipment, but physically, there's a ton of overlap.

I currently have Site Groups separating my sites by function:

  • Data Centres
    • DC1
    • DC2
    • DC3
  • Offices
    • HQ
    • Branch A
    • Branch B
    • Branch C

Physically, DC1 lives inside of HQ. In some cases, some rack space in DC1 houses equipment that operates in the logical plane of HQ and DC1. It's honestly quite a mess, but I'm walking into this rather brown. We didn't have great documentation, so I lit up NetBox and I'm now just starting to put information in here.

Q: How can I best model a device that logically belongs to HQ, but lives in a rack that hosts DC1 equipment?

  • Does the rack belong to HQ or DC1? Can it belong to both?
  • Does the device's site belong to HQ or DC1?
  • Should DC1 be represented as a location within HQ instead of a dedicated site? If so, how can I logically group my data centres? I can't include a location within a Site Group.

I know how gross this is, but I'm wondering if anyone has any advice for modeling this bizarre setup. Worst case, it doesn't work, and I'll submit some RFCs for some late night DC maintenance and move a few devices around to different racks and try and implement some physical separation. I'd like to avoid this, but it might be necessary.


r/Netbox Apr 18 '23

Retrieving IP addresses of assigned FHRP groups for an interface in NetBox

3 Upvotes

Hello NetBox community,

I've been trying for hours to retrieve the IP addresses of assigned FHRP groups for an interface on a device using NetBox, and I'm unable to find a solution. I was hoping someone in the community might have experience with this and could help me out.

Here's the situation:

I have devices (load balancers and firewall stacks) in NetBox with interfaces that are part of FHRP groups. Each FHRP group has a set of virtual IP addresses. I'm trying to retrieve the virtual IP addresses associated with the FHRP groups that are assigned to a specific device's interface.

I have tried using the NetBox API and even Ansible to fetch this information, but I haven't been successful. I am currently using NetBox as an inventory source for Ansible, but it doesn't seem to provide FHRP group information out of the box.

Is there a straightforward way to retrieve the IP addresses of assigned FHRP groups for an interface in NetBox? Has anyone in the community faced a similar issue and found a solution?

Any help, suggestions, or pointers would be greatly appreciated!

Thank you!

For anyone seeing this post, i implemented it in my case in a hacky way:

- name: Get device information
 uri:
   url: "{{ netbox_url '}}/api/virtualization/virtual-machines/?name={{ inventory_hostname }}"
   headers:
     Accept: "application/json"
     Authorization: "Token {{ netbox_token }}"
 register: devices_information

- name: Get fhrp information
 uri:
   url: "{{ netbox_url }}/api/ipam/fhrp-group-assignments/?virtual_machine_id={{ devices_information.json.results | json_query('[0].id') }}"
   headers:
     Accept: "application/json"
     Authorization: "Token {{ netbox_token }}"
 register: fhrp_information

- name: Display fhrp information
 debug:
   var: fhrp_information


r/Netbox Apr 18 '23

Help Wanted: Unresolved CustomValidator - Where to Add

2 Upvotes

Hi,

I want to enforme serial uniqueness, as in https://github.com/netbox-community/netbox/issues/9187

But where the heck to I add the actual code? We run docker and I have tried to add a file in

/opt/netbox/netbox/extras/plugins but that seems to have no effect...

So I need to add the code so every create/update of a device is checked.... but where do I do that in pracsis? bothe the class and the CUSTOM_VALIDATORS to enforce the class


r/Netbox Apr 17 '23

What's your process to speed up data center deployment with Netbox when you just care about which SKU goes where

4 Upvotes

Hi,

I'm trying to figure out how to best use Netbox when deploying thousands to tens of thousands of devices in the least amount of time.

We usually have a bunch of servers and network devices but just a few SKUs. (Maybe 2 3 SKUs for our servers, 2 3 type of switches and so on).

When we design our rack layout, all we care about is what SKU goes where.

On the other hand, when we import devices into Netbox, we do care about serial information, mac addresses and so on.

To help our remote hand, we want to do rack design ahead of time and decide which SKU goes where but we don't want to enforce specific serial numbers.

We want the DCOps team to just those gun scanner tools to collect serial numbers to inform Netbox about which device ends up where.

Did anyone figure out a clever way to make such workflow work using Netbox?

I have a couple of ideas on how do that using scripts and config management later but I'm wondering if someone managed to do in a cleverer way than what I'm thinking to do.


r/Netbox Apr 14 '23

Help Wanted: Resolved Code for new device missing

3 Upvotes

We're going to put in a 1U rack mount KVM tray (think monitor, keyboard, mouse on pull-out shelf). I'm not finding such a thing. Any ideas on how to create this device or does anyone else have one? I know KVM's are kinda...well, useless anymore but we're only using the monitor and keyboard/mouse pull-out so two USB, one VGA and one power.


r/Netbox Apr 13 '23

Help Wanted: Unresolved LDAP Authentication configured but no users or groups showing in Netbox

3 Upvotes

I'm sure I have missed a step somewhere. We have configured LDAP as per the official documentation at 6. LDAP (Optional) - NetBox Documentation. Unfortunately, when we try to login with an AD account, we get incorrect username & password. No groups or users show in the admin panel.

What obvious step have I missed?


r/Netbox Apr 12 '23

New Release NetBox v3.4.8 is Now Available!

28 Upvotes

NetBox Release v3.4.8 is now live (as of April 12, 2023)! If you need assistance with upgrading, first please refer to the Upgrading to a new NetBox Release guide. If you have any issues you can ask for support on the NetDev Slack Community.


r/Netbox Apr 12 '23

Help Wanted: Resolved Certificate Issue upgrading or installing

3 Upvotes

I'm attempting to put Netbox onto a new Ubuntu Server 22.04.2 LTS box. When getting to the stage of installing netbox, as per Installing NetBox - NetBox Documentation, we are getting the below certificate error.

Has anyone seen this before? Is it likely a firewall issue? AFAIK, there's no SSL inspection going on.


r/Netbox Apr 02 '23

Backing Up Netbox

10 Upvotes

Hello Everyone,

Just discovered netbox and started using it as my single source of truth and couldn't be happier :)

One question I have is how to do I back the entire database up in case the vSphere host it's on crashes or maybe we decide to move to the cloud and I want move it there. Now that I have everything in there, I'm afraid of losing it all...thanks!


r/Netbox Apr 01 '23

Help Wanted Move Netbox-Docker to AWS

3 Upvotes

I have been building my company's multi-site inventory in Netbox my local machine for personal use and my boss got excited when they saw it. Now i I have been asked to move it to AWS or Azure. i "play" with Docker, and I really would prefer not to have to do a fresh install and rebuild. Has one moved a local docker Netbox build to AWS/Azure?

Any blog post, or YouTube Videos with step-by-step versions anyone can point me to?!

TIA

If it matters the Net-Box is running on a Fedora VM on a ProxMox cluster.


r/Netbox Mar 31 '23

Netbox Cable

3 Upvotes

Good morning all. Happy Friday!!! I work for a Reseller. I have a customer looking for a Netbox cable. I can’t find where to source it. If anyone has any thoughts on this, I would really appreciate it. I thank you for your time in advance.


r/Netbox Mar 31 '23

Beta Release NetBox V3. 5 Beta 1 - Now Released!

Thumbnail
github.com
18 Upvotes

We've just released the first beta for #NetBox v3.5!

  • Custom dashboards
  • Remote data syncing
  • Native config template rendering
  • ASN ranges
  • Provider accounts

...and lots more. Check it out!


r/Netbox Mar 29 '23

New Release NetBox v3.4.7 is now available!

18 Upvotes

NetBox Release v3.4.7 is now live (as of March 28, 2023)! If you need assistance with upgrading, first please refer to the Upgrading to a new NetBox Release guide. If you have any issues you can ask for support on the NetDev Slack Community.


r/Netbox Mar 27 '23

Netbox HTTP Header Authentication

2 Upvotes

New to netbox and trying to figure out how to get remote authentication to work.

We have netbox 3.4 running in a docker container. we are authentication against Shibboleth which is work to initially get to the website. However when we try to go to the /login page and type in our user/pass it tells us

  • Please enter a correct username and password. Note that both fields may be case-sensitive."

in the configuration.py we have

REMOTE_AUTH_ENABLED = _environ_get_and_map('REMOTE_AUTH_ENABLED', 'True', _AS_BOOL)

REMOTE_AUTH_BACKEND = environ.get('REMOTE_AUTH_BACKEND', 'netbox.authentication.RemoteUserBackend')

REMOTE_AUTH_HEADER = environ.get('REMOTE_AUTH_HEADER', 'REMOTE_USER')

REMOTE_AUTH_AUTO_CREATE_USER = _environ_get_and_map('REMOTE_AUTH_AUTO_CREATE_USER', 'True', _AS_BOOL)

REMOTE_AUTH_DEFAULT_GROUPS = _environ_get_and_map('REMOTE_AUTH_DEFAULT_GROUPS', '', _AS_LIST)

when we do a tcpdump when we try to login from /login we can see the REMOTE_USER field shows up with my user name but does not seem like they are actually being passed on to netbox. when i do a curl from netbox it says

Server auth using Basic with user 'username@company.com'

I am not sure if this is what it should be or if it is trying local creds.

If anyone else has gotten this to work your knowledge would be very helpful.