Opens in a new tab

How to Generate and Print QR Labels for NetBox Devices and Racks

Generate and print NetBox device and rack QR labels with compatible plugins, exact-size printer settings, tested payloads and safe Android scanning.

Illustration: How to Generate and Print QR Labels for NetBox Devices and Racks

You have the devices and racks recorded in NetBox. Now you need physical QR labels that technicians can print, attach and scan without landing on the wrong inventory record. The shortest route is to use a compatible NetBox QR-label plugin to render a label on an existing object page, print one sample at actual size, and verify the printed code against the real device or rack before printing the rest. QR generation, label printing and Android scanning are separate parts of that workflow.

This guide covers generating and printing QR labels for devices and racks with the community-maintained netbox-qrcode plugin. If your labels are already printed and you need to scan them with a phone, follow our NetBox QR scanning and identity-verification guide instead. The examples below use fictional inventory and hostnames; they are not screenshots or results from a live customer deployment.

The practical answer: generate in NetBox, print in the browser, verify in the field

  1. Choose a known Device or Rack record. Check its name, site and physical identity in NetBox before designing a label.
  2. Use a compatible QR-label plugin. The documented netbox-qrcode plugin adds printable label panels to supported object detail views. Its generated QR ordinarily points back to that NetBox object.
  3. Print one test label. Match the printer’s paper dimensions to the label stock and turn off browser scaling and unwanted margins.
  4. Scan and compare. Decode the printed value; verify that it identifies the intended object on the intended server, and compare the returned record against the physical asset.

Field Companion for NetBox can provide the separate read-only Android scanning and lookup step. It does not generate, lay out or print labels. The product’s Google Play listing is the current installation destination; the ModelGain Android directory lists the Android products.

Before installation: match the plugin release to your NetBox version

First confirm your running NetBox version, deployment method and change window. The upstream compatibility matrix is the authoritative reference, not a general assumption that the newest package works with every server. In the matrix checked on November 7, 2026, the plugin’s listed pairings include:

Installed NetBox branch Plugin release in the current matrix Decision
4.7.x 1.0.0 Use the matching release after testing in your environment.
4.6.x 0.0.21 Do not blindly upgrade to 1.0.0.
4.5.x 0.0.20 Pin the branch-appropriate package.
4.4.x 0.0.19 Follow its corresponding released documentation.
Earlier NetBox Consult upstream matrix Verify compatibility and support rather than guessing.
Version pairings are a dated documentation snapshot, not proof of successful testing on your server. Recheck upstream immediately before installation or a NetBox upgrade.

Plugin installation is an administrator task. For a conventional NetBox Python virtual-environment deployment, the upstream installation guide calls for installing the matching package in the NetBox virtual environment, enabling netbox_qrcode in the PLUGINS list, retaining the dependency in local_requirements.txt, and restarting the appropriate NetBox services. The exact command and deployment target differ for Docker, managed services and custom installations. No NetBox database migration is required by this plugin according to its current README. Test the change and rollback plan outside production first; a field technician should not modify the server just to print one label.

Step 1. Generate a QR label for an individual device

  1. Open an approved test Device in NetBox, such as edge-sw-01, and confirm the visible site, rack, asset tag and serial against the asset record.
  2. With a compatible plugin enabled, locate its QR label panel on the Device detail view. The plugin renders the QR code and associated text directly on that object’s page; it is not an Android button or a separate scanner.
  3. Check the text and QR destination before printing. The default intent is a link to the actual NetBox object. For example, a device URL may take the form https://netbox.example.org/dcim/devices/393/. This is a fictional example, not a production ID.
  4. Keep a human-readable identifier alongside the QR code: preferably device name plus an asset tag or serial fragment if permitted by your labeling policy. The code should not be the only way to distinguish two adjacent chassis.
  5. Use the label panel’s Print control and review the actual physical output; do not treat an attractive browser preview as proof that the printer is calibrated.

Do not embed API tokens, session cookies, login links containing credentials, private access parameters or personal information in a QR payload. A QR code is readable by anyone who can photograph the label. Even a hostname or inventory reference can be sensitive in some facilities; follow the site owner’s labeling policy.

Step 2. Generate a QR label for a rack—without confusing it with a device

The same upstream plugin also supports labels on Rack object detail pages. Open a known Rack, inspect the QR panel and confirm that the encoded destination identifies that rack, not one of its installed devices. The rack’s human-readable name, Site and Location (where used) should remain visible on the printed label.

Label type Illustrative payload What the technician must verify
Device https://netbox.example.org/dcim/devices/393/ Correct NetBox instance, device and physical chassis.
Rack https://netbox.example.org/dcim/racks/17/ Correct site, rack and location. Do not mistake rack identity for device identity.
Plain-text asset tag LAB-0042 Confirm that the chosen mobile/search workflow can actually find that identifier; do not assume arbitrary text is indexed.
Fictional examples. Always decode a real generated sample and compare its destination with the current source record.

Important Android compatibility boundary: In the reviewed Field Companion source, a recognized device detail URL can be resolved to a device ID against the connected NetBox server. A rack detail URL is not established as a supported direct-rack-opening shortcut; it goes through the generic search path instead. The standard camera or web browser may display a rack URL as a link, but that does not prove that the Android app will resolve it directly to the rack record. When your team uses rack labels, test the actual installed Android release with a pilot rack code. If that lookup is not reliable, search for the rack by a verified name and use the authoritative NetBox web interface as the fallback.

For on-site device/rack identity checks after decoding, use the existing find-the-right-device-at-a-rack guide. Avoid assuming an object ID remains meaningful across NetBox environments: 393 on two different servers can refer to different devices.

Guide content map: The practical answer: generate in NetBox, print in the browser, verify in the field; Before installation: match the plugin release to your NetBox version; Step 1. Generate a QR label for an individual device; Step 2. Generate a QR label for a rack—without confusing it with a device
Overview of major sections; not a chronological workflow.

Step 3. Customize the physical label layout only where needed

The plugin supplies defaults, so custom configuration is optional. When your label stock or inventory fields differ, its configuration reference documents physical dimensions, text, QR rendering, object-specific overrides and multiple designs. For example, the upstream reference shows this kind of optional configuration in NetBox’s configuration.py:

PLUGINS_CONFIG = {
    'netbox_qrcode': {
        'label_width': '56mm',
        'label_height': '32mm',
        'font_size': '3mm',
    },
}

These dimensions are an upstream example, not a universal recommended label size. Choose dimensions for your actual printer, stock and camera distance. The official label examples include designs with a device name, zero-padded ID, logo or rearranged text. If you rely on custom text templates or object-specific configuration, test those exact settings on your installed plugin version; do not assume placeholder images in an example are shipped assets.

For a crowded rack, favor a short machine-readable destination and a legible human identifier over a miniature spreadsheet of attributes. Make the intended rack or device distinguishable with the naked eye. Keep sufficient clear space around the QR symbol and avoid placing adhesive over ventilation, hot components, port legends, safety labels or manufacturer serial labels.

Step 4. Print at actual size and test the label

From the plugin’s QR panel, select Print and inspect the browser print dialogue. The upstream printing guide emphasizes that both the printer driver and browser can add margins or scale dimensions. If a label looks correct in NetBox but comes out too small, too large or clipped, check the physical paper size and scale before editing the QR design.

  1. Calibrate the printer separately. Confirm its configured stock width, height, orientation and feed behavior with a simple non-NetBox test page first.
  2. Open the QR panel’s Print action. In Chrome, use one page per sheet, no margins where supported, and 100% or the plugin-documented default scale. Disable unexpected headers, footers and background graphics. Firefox and some label drivers have different choices.
  3. Print a single device sample and one rack sample. Measure the printed label and look for text clipping, fuzzy QR modules, inadequate contrast and missing white space around the code.
  4. Scan under actual rack-room conditions. Use the intended field phone, protective case, lighting, normal working distance and authorized network connection. Confirm the decoded value, not just that a camera showed a check mark.
  5. Compare the result with reality. Check the target server, correct object type, Site/Rack, and a second physical identifier. Stop if a stale code resolves to a different item or the mobile client shows an offline/cached result.

If the code prints pixelated, the plugin’s printing guide documents qr_box_size as a resolution control. If the code cannot be decoded, review quiet space and error correction. If the text is clipped, change layout and font sizing. Do not invent a single minimum millimetre size that will work for every encoded URL, print resolution and mobile camera.

Bulk labels: pilot before you print hundreds

The upstream netbox-qrcode workflow described here renders labels on individual object detail views. Do not assume it includes multi-object sheet imposition, batch exports, direct fleet printer control, a label inventory database or automated replacement of worn stickers. A team that needs bulk-print workflows should evaluate that requirement separately and verify any alternative against its own NetBox version and printer. The NetBox Labels project describes its own template and bulk-print features; it is a distinct plugin, not a capability to attribute to netbox-qrcode or the Android app.

For operational rollout, define a consistent label owner, production change record, placement rule and reprint trigger. At minimum, repeat the pilot after major NetBox URL/domain changes, migrations, inventory merges or chassis replacements. A QR path containing a numeric object ID can still produce an apparently valid record lookup against the wrong server; the printed sticker must never be treated as physical verification by itself.

Common failure: locate the problem before replacing every label

Observed problem Check first Next action
No QR label panel appears Plugin installed and enabled, compatible NetBox branch, correct object type, actual service restart and deployment method. Follow upstream installation and compatibility docs; avoid adding unrelated plugins.
Print is cropped or scaled Printer stock size, driver, Chrome/Firefox scale, margins and label dimension configuration. Recalibrate and print one sample at actual size.
QR cannot be decoded Contrast, focus, abrasion, glare, code resolution and clear zone. Reprint a sample; keep the human-readable identifier usable.
Decoded device link opens the wrong object Connected NetBox instance, object ID, moved or copied label and real serial/asset tag. Stop the field task and ask the inventory owner to reconcile the record and label.
Rack URL decodes but the Android app does not open the rack Scanner payload interpretation versus browser link behavior; the current Android app’s direct device URL support does not imply rack URL support. Use supported rack-name search or NetBox’s authenticated web UI.
Link opens a login/error page Phone VPN/DNS/reverse proxy, NetBox authorization and hostname changes. Use the mobile connection troubleshooting guide; do not embed credentials in the QR.
A cached record appears instead of live inventory Current network access and the app’s Cached/Offline indication. Reconnect and compare the current NetBox record before physical changes. See offline data limitations.
Printing accuracy, QR decoding, server authentication, object matching and physical identification are five separate acceptance checks.

Choose the next action for your label rollout

Use this local decision guide during a pilot. It does not operate a printer, contact a server, access a phone camera or collect identifiers.

What happened when you tested the printed QR label?

Applies when: A static printing and identification decision helper. It does not read camera feeds, print labels, query NetBox, process credentials or record inventory.

Quick answer

Separate plugin compatibility, physical print fidelity, successful decoding, correct NetBox object lookup and verified physical identity. Prove all five with one device and one rack before printing a batch.

What to do

  1. Select the plugin release matching your NetBox branch and work from one known Device and one known Rack record.

  2. Match the printer's stock size, margins and scale. Examine the printed QR and the human-readable device/rack identifier, not only the screen preview.

  3. Device QR paths can be resolved by the reviewed Field Companion Android implementation; rack URLs are not confirmed as direct rack shortcuts. Always decode and verify the exact printed payload.

  4. Verify the intended NetBox installation, Site/Rack and a second independent asset identifier. A scan that opens a record is not permission to modify physical equipment.

Where did the first test fail?

All paths are listed below. Select a symptom to focus on the most relevant path.

Check the plugin release and object page

Confirm the exact NetBox and netbox-qrcode compatibility pairing, enabled PLUGINS entry, deployment/restart state and whether the object type is supported. Use the upstream installation instructions; do not assume the Android app generates labels.

Recalibrate the printer and browser

Verify label stock size, printer driver, browser scale (normally 100%), margins and plugin dimensions. Print one fresh sample rather than editing the whole inventory.

Fix the physical QR before testing lookup

Check contrast, focus, missing quiet space, print sharpness, damage and suitable QR/error-correction settings. Use readable fallback text on the equipment.

Differentiate QR content from mobile lookup support

A valid device detail URL is not equivalent to a rack URL or a plain asset-tag search. Confirm the connected server, network, permissions and actual payload; use a known rack name or NetBox web UI when direct rack URL lookup is unsupported.

Stop: wrong instance or stale printed identity

Check the NetBox hostname, decoded object ID, device serial/asset tag and physical rack. The same numeric ID can represent another object in a second NetBox installation. Do not touch the device until the mismatch is reconciled.

Approve only the label pilot

Document the tested printer settings, supported payload shape, correct server, independent asset identifier and replacement owner. This validates identification, not any permission to update NetBox records or make a physical change.

Field-ready acceptance checklist

  • The NetBox and QR-plugin versions match the upstream compatibility matrix; plugin changes have been tested by the authorized NetBox administrator.
  • One real Device and one real Rack test label printed at the correct dimensions, with readable text, contrast and quiet space.
  • Each decoded QR destination was compared with its source NetBox record; no credential or token is encoded.
  • Device lookups were tested on the intended Android build against the intended NetBox server. Rack URL handling was checked separately rather than assumed.
  • Any scan result was matched to the physical asset by site/rack and at least one independent identifier; cached or ambiguous results were rejected for change authorization.
  • The team knows when to replace labels and how to handle stale URLs, damaged printouts and equipment swaps.

After the labels have been printed, the next task is scan a NetBox QR label and verify the device identity. To choose a released Android read-only lookup client, see Field Companion for NetBox, its support page and the verified Google Play listing. Printing and inventory mutation remain NetBox-side administrator workflows, not mobile-scanner features.

This article is maintained as a practical reference. Check the linked official documentation for version-specific behavior and validate changes in a safe test environment.
More Android guides ↗