Posts tagged "Netbox"

5 posts with this tag

Upgrading Netbox

On local system

  • git pull upstream <tag> --rebase
  • git rebase
  • git commit -a -m 'upgrade to <tag>'

On server

  • su -s /bin/ksh -l _netbox
  • doas rcctl stop netbox_rq
  • doas rcctl stop netbox
  • git pull
  • bash upgrade.sh
  • doas rcctl start netbox
  • doas rcctl start netbox_rq
Read more →

Netbox Backup

purpose and application

Use this for backing up your netbox instance. This is specific to my setup YMMV.

definitions

  • YMMV - Your Mileage May Vary

steps

  1. Become netbox user su -s /bin/ksh -l _netbox
  2. Backup the database pg_dump -W postgres://netbox@127.0.0.1:5432/netbox | gzip > …
Read more →

Upgrading netbox 3.0.7 -> 3.0.10 on OpenBSD 7.0

This is more a personal reminder than anything else. Also this expects an installation following this guide.

  • stop netbox: rcctl stop netbox
  • upgrade source: cd /var/www/netbox && git pull
  • checkout 3.0.10: git checkout v3.0.10
  • adjust upgrade.sh:
    diff --git a/upgrade.sh b/upgrade.sh
    index …
Read more →

Labelling cables

There was a discussion lately at my workplace about how to label cables. Currently our cables at the datacenter sadly haven’t been labelled by the previous staff which makes tracing them a nightmare as cables tend to span multiple racks.

So I went ahead and proposed some types of labels I came …

Read more →

netbox 3.0.7 on OpenBSD 7

Ever since dywis0r made me aware of netbox I was planning on getting my hands dirty with it. But only after looking loads of videos on the topic and after being `forced’ to use it at work has I been able to finally get enough momentum going to start the journey for myself.

At the beginning of …

Read more →