Update Netbox IPAM

  1. Necessary requirements for Netbox

We check for compliance with the following commands:

python3 –V
find / -name postgres
redis-server --version

Download and unpack the latest version:

wget https://github.com/netbox-community/netbox/archive/v2.11.4.tar.gz
sudo tar -xzf v2.11.4.tar.gz -C /opt
sudo ln -sfn /opt/netbox-2.11.4/ /opt/netbox

Next, the local_requirements.txt, configuration.py and ldap_config.py files to the folder with the new version:

sudo cp /opt/netbox-2.9.3/local_requirements.txt /opt/netbox/
sudo cp /opt/netbox-2.9.3/netbox/netbox/configuration.py /opt/netbox/netbox/netbox/
sudo cp /opt/netbox-2.9.3/netbox/netbox/ldap_config.py /opt/netbox/netbox/netbox/

Copy the downloaded media files (if any):

sudo cp -pr /opt/netbox-2.9.3/netbox/media/ /opt/netbox/netbox/

Copy the custom scripts and reports that have been created:

sudo cp -r /opt/netbox-2.9.3/netbox/scripts /opt/netbox/netbox/
sudo cp -r /opt/netbox-2.9.3/netbox/reports /opt/netbox/netbox/

If you followed the original installation guide to set up Gunicorn, be sure to copy its configuration:

sudo cp /opt/netbox-2.9.3/gunicorn.py /opt/netbox/

Moving to the folder:

cd /opt/netbox

Run the update script:

sudo ./upgrade.sh

And if everything went without errors, restart the netbox daemon:

sudo systemctl restart netbox netbox-rq

That’s all. Wish you luck…

Leave a Reply

Your email address will not be published. Required fields are marked *