Skip to content

Commands & np_admin ​

Console ​

One command, npnet, server console only. Players can't run it, also not with admin rights; staff use the np_admin tools.

Command What
npnet / npnet status Shimmed resources with their last push and Lua memory, client shims, series count, client reports, tick state and the endpoint state
npnet top [bytes|count|egress|handler] [n] The top n events (default 15) as a table, sorted by payload bytes, sends, server egress or handler time
npnet reset Zero every counter (events, drops, tick, state bags, reports, heatmap counters). Recorded heatmap days stay
npnet patch <resource|np_*|all> Add the shim line to the manifest(s). See Installation → patch
npnet unpatch <resource|np_*|all> Remove the lines np_net added
npnet heatmap Heatmap settings, today's layers with totals and cells, days on disk, the viewer path
npnet heatmap save Write the heatmap files now

Patterns: an exact resource name, all, or a * wildcard (np_*, *_jobs). np_net itself is always skipped.

> npnet status
np_net 1.0.0
server shims (4):
  es_extended                   last push 2s ago, lua 6.8 MB
  np_hud                        last push 2s ago, lua 1.2 MB
  np_inventory                  last push 3s ago, lua 4.1 MB
  np_payments                   last push 1s ago, lua 2.3 MB
client shims (3): es_extended, np_hud, np_inventory
series 312 (server 214, client 86, state bags 12; cap 2000 each), folded 0
client reports 1840 (every 30000 ms, 0 = off)
tick on, hitch > 150 ms, hitches 3
endpoint /np_net/metrics: open, bearer token set

npnet top reads the counters since start (or the last reset), not a rate. For "what is expensive right now", use the dashboard, or npnet reset, wait a minute and run npnet top again.

reset and Prometheus

npnet reset zeroes counters that Prometheus scrapes. rate() and increase() treat that as a counter reset and recover, but the scrape right after it is lost.

np_admin ​

Optional. Without np_admin nothing changes and only the console works. When np_admin runs, np_net registers through the vendored bridge/np_admin.lua:

Permissions ​

Node Allows
np_net.view Network: top events, Network: metrics status and Network: heatmap status
np_net.manage Everything in view, plus Network: reset counters

Grant them to groups in np_admin's Permissions. Without np_admin there are no staff tools to grant.

Staff tools ​

Registered as np_admin actions, so they run from the panel, the quick menu and the palette like every other staff tool. The server checks the node and writes the audit entry.

Tool Node Does
Network: top events (F8) np_net.view or np_net.manage Asks Sort by (bytes, count, egress, handler) and Rows (1–50, default 15), then prints the npnet top table into the staff member's F8 console
Network: metrics status (F8) np_net.view or np_net.manage Prints npnet status into F8
Network: heatmap status (F8) np_net.view or np_net.manage Prints npnet heatmap into F8
Network: reset counters np_net.manage Same as npnet reset, after a confirmation

np_admin shows only success and error toasts, which is why the tables go to F8.

Settings ​

Resource settings → np_net: client report interval, series cap, tick on/off, hitch threshold, state bags, state bag bytes and the heatmap settings. See Configuration → Editable in np_admin.

Audit log ​

Category np_net:

Action When
reset Counters reset, from the console (actor 0) or the staff tool
patch npnet patch changed at least one manifest; lists the resources
unpatch npnet unpatch changed at least one manifest; lists the resources