NetPulse can receive port state, counters and the MAC forwarding table directly from a compatible Realtek switch running RTLPlayground. The switch sends UDP datagrams to NetPulse, so no Linux agent or intermediate scraper is required.
This is an advanced firmware setup. The NetPulse beacon is maintained in the gnacho/RTLPlayground fork, not in upstream RTLPlayground. Installing it replaces the switch firmware.
With a current beacon build, NetPulse can show:
ie and oe.The beacon does not provide CPU, RAM or switch temperature. LLDP transmission and RMA handling are switch configuration features documented in the firmware guide.
A build that receives LLDP can also send the neighbours it learned, as an optional lldp section (#2184). Each entry carries the local port number, the remote chassis id or system name, the first management address, the enabled capabilities and the remote port description. The section is optional and bounded: 64 neighbours at most and 128 characters per text field, so it costs roughly 80 to 120 bytes per neighbour in the datagram. A build without the section simply does not send it, and the server then keeps the last known neighbours; an empty list means the switch received nothing, which is a different thing from not knowing.
A beacon-fed device cannot currently use SNMP as a second NetPulse source. Optional SNMP support in the firmware can be used independently, but it does not add another source to the same NetPulse device.
MACHINE profile. Check the supported device list.Follow the firmware and beacon guide for the reproducible build, firmware installation, port configuration and datagram reference. The guide uses a fixed tag and distinguishes fields added in later commits.
Set the listener address in the NetPulse server environment and restart the server through your normal deployment process:
NETPULSE_BEACON_LISTEN=:5140
An empty value disables the listener. Allow inbound UDP port 5140 from the switch through any firewall between them.
Create an external router in NetPulse, then create its agent token through the admin API:
POST /api/agents
Content-Type: application/json
{"slug":"edge-switch"}
The endpoint requires an admin session and returns the token. Creating or rotating a token invalidates the previous one.
Use the same edge-switch identifier in the two compiled slug literals in beacon.c before building the firmware. Do not reuse a slug from another switch.
From the RTLPlayground command console, set the NetPulse address and the agent token:
beacon 192.0.2.10 <agent-token>
Replace 192.0.2.10 with the NetPulse server address. This command starts both periodic state and FDB transmission. It takes two arguments, because the slug is already compiled into the firmware.
Useful commands:
beacon # show status
beacon fdb # show whether FDB transmission is enabled
beacon fdb off # disable FDB at runtime
beacon fdb on # enable FDB at runtime
beacon off # stop the beacon
To announce the switch through LLDP without forwarding reserved LLDP frames to other ports, the firmware guide also documents:
lldp on
rma 0e drop
Save the startup configuration with the normal RTLPlayground configuration save mechanism. Current beacon branches include the flash-save fixes. The firmware guide distinguishes those branches from older alpha builds.
The v1 beacon sends its token in clear text and does not sign UDP datagrams. Use it only on a trusted LAN or management network. Keep UDP 5140 unreachable from untrusted networks and the internet.
NetPulse validates the token hash, applies rate limiting by source IP and logs suspicious sequence changes. These controls do not encrypt the traffic.
beacon.[netpulse:beacon] messages in the server log. Malformed datagrams, invalid tokens and sequence anomalies are logged there.The FDB datagram has a fixed size budget. A missing MAC in one update does not prove that the client disappeared.
The RTLPlayground web server handles one connection at a time. Avoid parallel requests against its console. This does not affect UDP beacon transmission.