xmppping

xmppping - just like ping, but over XMPP, not ICMP

xmppping is a simple script for XMPP pinging (based on XEP-0199). It's a command-line tool mimicking standard ping command.

Requirements

Notes

  1. This is a very early version, so watch out for bugs! ;)
  2. You may need to adjust python path in the very first line of the script. Use which python to get the right path for your system.
  3. If -e option is given, responses with these errors:
      • type=cancel, condition=service-unavailable
      • type=cancel, condition=feature-not-implemented
      when pinging servers/components (without node part in JID)
      • type=cancel, condition=feature-not-implemented
      when pinging other entities (with node part in JID)
    are treated as valid ping responses. All other errors are treated as... errors ;)
    -E option is default, it is provided to enable you to override -e from config file.
  4. Return codes
    If there was at least on successful reply, 0 is returned. If there were no pongs, or something bad happened (making sending pings impossible), non-zero value is returned. Meanings of these non-zero values will be defined in future versions.
  5. -j option can now optionally include server hostname override. You may write things like -j localhost//you@example.org (yes, I really need to do something like this, so maybe you'll find it useful, too)

Source

*Download xmppping-0.2.tar.gz