QStat

QStat is an open-source command-line tool that interacts with game server query protocols to gather statistics from online game servers. You can use QStat to retrieve information from your game servers after you’ve added support for a game server query protocol.

QStat natively supports most existing game server query protocols, but if it doesn’t have the protocol you are using, you can add support for a custom query protocol by adding a configuration file.

The basic syntax for the QStat CLI tool is:

qstat [options ...] [-f file] [-of|-af output-file] [-server-option host[:port]] [-raw delimiter] [-default server-type] host[:port[-port_max]]

QStat comes prepackaged with a collection of built-in game types, and you can define additional game types in the QStat configuration file. By default, the QStat configuration file is named qstat.cfg, but you can specify an alternative configuration file with the QSTAT_CONFIG environment variable and the -cfg command-line option.

For a full reference of the command-line options and commands, refer to the QStat reference.