Writing criteria for this guide
Every "for Mere Mortals" guide is written to the same nine-point standard, so a reader who trusts one can trust the rest. Here it is, with the verification notes for this particular guide below.
- Fix it first. Reader outcomes lead, not action items: each chapter opens by naming the outcome it delivers, shows a check the reader can run to confirm they got it, and a reasonable reader finishes able to state what was done, what it means, and what to try next.
- Plain language. Short sentences, everyday vocabulary, technical terms defined on first use. No slang, and no idioms that only make sense in one country — the reader may be translating as they go.
- No dead ends. A guide never tells the reader to do something it cannot show them how to verify. Every claim a reader relies on — an install, a command, an output — is something this guide demonstrates or clearly labels documented-only below.
- Live-verified where it matters. Procedures are run for real in the guide's lab wherever the build machine allows it, and the transcripts kept in the repository are the evidence. What could not be run is listed honestly below, never presented as if it had been.
- General audiences. Nothing in this guide — examples, fixtures, names, addresses — is modelled on any particular reader or author's real life, network, or organisations. The lab's network is invented: stock names, a documentation prefix, two switches that exist only as records.
- Standalone. A reader needs this guide, its lab, and nothing else. Where another guide would genuinely help, it is pointed to once, by name, and the chapter still completes without it.
- Honest about limits. Chapter 12 names what the tool cannot do: it records intent and never discovers or monitors, so an unmaintained map decays into well-formatted fiction; the map itself is a sensitive target list; the stack (PostgreSQL, Redis, worker) is heavy for a small network; its model fits virtual or fast-changing networks awkwardly; and upgrades are a project, not an event.
- The ethics rule is in the text, early. A NetBox database is a map of a network, and the README and chapter 1 state the line before any procedure depends on it: document only networks you own or are authorised to document, guard the database and its backups like credentials, and treat API tokens as keys — because a complete, current map is exactly what an intruder would want to steal.
- Builds clean. The site builds with MkDocs in strict mode with no warnings, and a fresh reader following the chapters in order reaches the stated outcome of each.
Verification notes for this guide
The build machine is a 2-CPU (4-thread), 7.7 GB Ubuntu 24.04
sandbox, shared with other work while the lab ran (timings are
therefore ranges, and the guide says so). NetBox 4.7.4
(Community edition, released 2026-10-27 per its release.yaml)
was installed from the official source archive
netbox-v4.7.4.tar.gz fetched from the project's GitHub
releases (SHA-256
c55113d78296c2e06f9b632fd046fd4a9caf6e175df628039b82cceaa48a5668,
transcript t00-environment.txt). Its backing services were
real and started for the lab: PostgreSQL 16.15 (system
binaries, initdb in the lab folder, on the lab port 55432 —
the port was occupied by another lab's database at first
check and free on retry, so no port deviation was needed;
t01-postgres-initdb.txt, t12-services-summary.txt) and
Redis 7.0.15 (system binary, lab port 18086, files in the
lab folder). All transcripts live in netbox-lab/transcripts/;
the API script is netbox-lab/api-proof.sh and the lab's
adjusted requirements file is netbox-lab/requirements-lab.txt.
One disclosed substitution: requirements.txt pins
psycopg[c,pool]==3.3.6, whose C extension needs the
PostgreSQL server headers (pg_config.h), absent from this
sandbox. The lab installed the driver's official prebuilt
form, psycopg[binary,pool]==3.3.6 — same driver, same
version, a distribution the psycopg project ships for this
case (t02-psycopg-substitution.txt, with the failed build
kept in the pip log).
Run for real, with transcripts as evidence:
- Configuration written against the lab services
(
ALLOWED_HOSTS, the database and Redis blocks, a generatedSECRET_KEY, and a v2-token pepper), then the full schema built: 337 migrations applied, 0 unapplied, verified afterwards withshowmigrations(t04-migrate.log). collectstaticcopying 225 files, and the administrator created non-interactively from environment variables: "Superuser created successfully" (t05-collectstatic-and-superuser.txt).- The web server (Django development server, lab use only) on
port 18080:
/redirecting to/login/?next=/, the sign-in page returning 200, and the unauthenticated API root refusing with 403 (t06-web-server-and-login.txt). - A real form sign-in with session cookies — CSRF token
fetched, credentials posted, redirect to
/, home page 200 — plus NetBox's refusals: a duplicate site slug (400, field named) and a bad v2 token (403) (t09-ui-login-and-refusals.txt). - A v2 API token created through Django's shell (after a
first token whose generated plaintext was not captured was
deleted and replaced — the loss is permanent by design, and
chapter 9 teaches it), then the full API proof: status
endpoint reporting NetBox 4.7.4 / Django 6.1.2, and
201 creations of a site, a manufacturer, a device type,
a device role, two devices, two interfaces, a prefix
(10.250.0.0/24) and an IP address assigned to an interface,
a PATCH setting the device's primary IPv4, and every record
read back (
t08-api-proof.txt,t11-cable.txt). - A cable created between the two devices' interfaces and
read back with both ends accounted for (
t11-cable.txt). - The background worker run once in burst mode: it completed
a real System Housekeeping job and exited 0
(
t10-rqworker-burst.txt). - The lab's own failures, kept: the first API run refused
throughout with "Invalid v1 token" because the v2 header
was sent without its
nbt_prefix (t07-api-first-attempt-prefix.txt).
Documented only — described from the project's documentation, not run, and the text does not claim otherwise:
- Production deployment: gunicorn behind a web server, TLS, and the rq worker running as a permanent service (its burst form was run; the service form was not).
- Locations, racks and regions beyond the model description in chapter 5; device-type component templates; cable path tracing across patch panels (the direct cable was run).
- Plugins, NAPALM device interrogation, LDAP/SSO sign-in, webhooks delivered to a receiver, custom fields and scripts beyond being named, and the GraphQL endpoint (named in chapter 9, not exercised).
- The upgrade procedure, and the backup recipe's restore test
(the recipe is stated from the model in chapter 10;
pg_dumpitself belongs to the PostgreSQL guide). - The neighbour tools of chapter 11 — characterised, not run or benchmarked.
Fixtures are this guide's own and deliberately generic: an invented site ("Example North Lab"), an invented manufacturer and model, two recorded switches, and addresses from a lab prefix — no real network, person or organisation appears anywhere in the lab.