NET-MQTT-TRACE(1)
π NET-MQTT-TRACE π
okay so bestie, this is net-mqtt-trace β a Perl script for decoding MQTT messages from IP packets, living its best life in the User Contributed Perl Documentation section. iykyk π«Ά
β¨ VERSION β¨
version 1.163170 β yes she has a version number and yes she's proud of it π
πΈ SYNOPSIS πΈ
net-mqtt-trace [options] {dev|dumpfile}
# live decode
# decode MQTT packets that are visible on the interface eth0
net-mqtt-trace eth0
# batch decode
# sniff 100 MQTT packets from eth0 and write them to mqtt.tcp
# then later decode MQTT messages from tcpdump file
tcpdump -w mqtt.tcp -i eth0 -c 100 -s 4096 tcp and port 1883
net-mqtt-trace mqtt.tcp
like, two whole moods: sniffs it live off an interface, or reads a tcpdump file later. both iconic β¨
π¦ DESCRIPTION π¦
so this script is literally an MQTT message decoder for IP packets, no cap. you can decode packets live by sniffing traffic on a network interface, or you can batch process them by reading them out of a tcpdump file. both are valid, both slay π
π OPTIONS π
-helpβ prints a brief help message. the "hi, what do you need" of flags π-manβ prints the manual page. very meta, very main character π-verboseβ gives you more verbose output. by default you only get a little output at the start and end of processing, but this turns on extra stuff β including a summary of the counts of the different packets decoded. the tea β-quietβ removes even the basic verbose output. she is silence, she is peace π-linkβ prints link layer info (assumed to be Ethernet). you can repeat this option to get further output. repeat for more, periodt π₯-ipβ prints ip layer information. also repeatable for further output β¨-tcpβ prints TCP layer information. repeatable too, bestie π-mqttβ prints MQTT message information. guess what β also repeatable for further output π¦-countNNN β stops processing after the given number of packets. default is to process all the packets, which is lowkey a lot π-snaplenNNN β maximum length of data to capture for each packet. default is65535. ngl this one only gets used when you're capturing directly from a device π-promiscβ turns on promiscuous mode. default is off. again, only used when capturing directly from a device π-timeoutNNN β the read timeout in milliseconds. default is0(aka no timeout). and yes, only used when capturing directly from a device πΈ
β SEE ALSO β
Net::MQTT::Message(3), Net::Pcap(3), tcpdump(8) β go read these, they're the supporting cast and they ate π
π AUTHOR π
Mark Hindess <soft-cpan@temporalanomaly.com> β the icon who made this happen π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2014 by Mark Hindess.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, free software fr fr π
and that's the whole vibe check, bestie β page brought to you by perl v5.42.2, dated 2026-02-15, from the NET-MQTT-TRACE(1) manual. mwah πβ¨
π¦ where this page comes from
- alpine 3.24: perl-net-mqtt-doc 1.163170-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms