The seemingly simple
zato --version command packs in several interesting details that are helpful in understanding
what Zato version one currently uses - let's find out what they all mean.
When you run
zato --version, it will return output similar to what is below.
Each time, the output follows the same, general pattern:
Major version - this is a major Zato version that you use, e.g. 3.1, 3.2 and similar. Each major version has its own
branch on GitHub whose name is in the format of support/[major.version],
e.g. support/3.2 for Zato 3.2.
Git commit ID - the exact Git commit ID (revision) that this Zato installation is built from. The commit is taken from the support branch
indicated by the major version field. This lets you compare if you have the newest revision for the particular support branch.
Simply go to GitHub, select the support branch and check if there are any newer commits.
If there are, run update.sh to bring your installation to the latest revision.
Python version - the Python version that your Zato installation uses.
Operating system - the name of the operating system that the command is executed on. It will be "windows" for Windows systems
and a distribution's name for Linux systems.
OS Version - more details about the operating system's version. How much is returned depends on the system - Windows installations
return particulars, such as the service pack in use, while Linux systems do not return such details.
OS Codename (optional) - some systems have a codename, e.g. Bionic for Ubuntu 18.04 or Focal for Ubuntu 20.04. The field will not
exist unless a given OS has a codename.
Note that the output from the command does not change whether Zato is installed directly in a given system or via Vagrant or Docker / Kubernetes. For instance, an Ubuntu system running under Docker quickstart will be identified simply as Ubuntu.
Here are more examples taken from systems that Zato 3.2 currently supports.
Note below that the system is Windows Server 2019 but it is still reported as Windows 10 because this is what the OS reports and it is the "ServerDatacenter" part that identifies it as a server edition.
Note that, in the case of Suse, there is no OS codename because the system does not report any.
So, now, you know how to check your version of Zato and what each part of the output means.