The previous page left you with a working NetBox and one administrator. Before colleagues get the URL, a handful of settings turn it from an install into your instance. Most of them live in configuration.py; the rest is done through the REST API, so you can replay it on the next instance.
Before you start
$curl -sf -H 'Authorization: Token ' https:///api/status/ | python3 -m json.tool | head -3{
"django-version": "5.x",Instance settings
Append to /netbox/netbox/configuration.py:
TIME_ZONE = ''BANNER_TOP = ''LOGIN_REQUIRED = TrueCHANGELOG_RETENTION = 180Outgoing mail
EMAIL = { 'SERVER': '', 'PORT': , 'USE_TLS': True, 'FROM_EMAIL': '', 'TIMEOUT': 10,}After a restart (next section), send a test message to yourself:
$sudo /venv/bin/python /netbox/manage.py sendtestemail you@example.comTest email sent to: you@example.com
Groups and permissions
$API=https:///api$AUTH="Authorization: Token "$curl -sf -H "$AUTH" -H 'Content-Type: application/json' "$API/users/groups/" -d '{"name": "netops"}'$curl -sf -H "$AUTH" -H 'Content-Type: application/json' "$API/users/groups/" -d '{"name": "readers"}'Plugins
$echo netbox-topology-views | sudo tee -a /local_requirements.txtEnable them in configuration.py (module names use underscores):
PLUGINS = ['netbox_topology_views']Then install and migrate:
$sudo /upgrade.shCustom fields
$curl -sf -H "$AUTH" -H 'Content-Type: application/json' "$API/extras/custom-fields/" -d '{$ "name": "asset_tag_internal",$ "label": "Internal asset tag",$ "type": "text",$ "object_types": ["dcim.device"],$ "required": false,$ "filter_logic": "exact"$}'Restart and verify
$sudo systemctl restart netbox netbox-rq$systemctl is-active netbox netbox-rqactive active
$curl -sf -H 'Authorization: Token ' https:///api/users/groups/ | python3 -c 'import sys,json; print([g["name"] for g in json.load(sys.stdin)["results"]])'['netops', 'readers']
$curl -sf -H 'Authorization: Token ' https:///api/plugins/ | grep -o '"name": "[^"]*"'"name": "Topology views"
Done
Your instance has a name on every page, sends mail, knows who may change what, and carries the first fields your data needs. Next: keeping it that way, with upgrades, backups and monitoring.