MQTT Ping Test Tool-Python Script

mqtt-ping-iconThis test tool is a simple python script that tests if a broker is up and how long messages take, just like the traditional IP ping utility.

MQTT Ping Usage

The utility is designed to be run from the command line.

The script requires only a single parameter which is the broker IP or domain name.Type python mqtt-ping.py -h

mqtt-ping-usage

Examples

  • 1.use -c 10 for 10 pings
  • 2. Use -d 5 for 5 second delay between pings
  • use -s to only print end result

Example Run:

MQTT-Ping-Example

Comments and FeedBack

Was there enough detail in this tutorial for you to follow?

Please help me improve these tutorials by leaving your comments,rating them,asking questions.

Resources:

You can download the script here.

Related Tutorials

 

Please rate? And use Comments to let me know more

Leave a Reply

Your email address will not be published. Required fields are marked *