version
This is the numeric method of indicating the file version, which is compact, convenient and fast. It makes use of a short string to define the version number. Version types are available as both client and core inspectors, so if you don't find what you want in one guide, please check the other.
The following file version string formats are supported:
- Windows: "Major.Minor.Patch.Build". For example "1.2.3.4".
- MacOS: "Major.Minor.BugStageBuild". For example "1.2.3a4".
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Creation
The product version of the BES application (BESClient or QnA).Note: On the Macintosh only, this inspector returns a <string>.Example: version of client as string - Returns a string like "4.0.3.7".
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Solaris |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns a version object that is the version of the server that the client last registered with. This may be a BES Relay or the BES root server.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
This returns the version information from "vers" resource 1 of the file. It is usually present in applications, and may exist in data files as well. It corresponds to what appears in the "Get Info" box for the specified filesystem object.
Version | Platforms |
---|---|
8.0.584.0 | Mac |
This inspector takes the specified service property and retrieves its version (file version). The service name must be passed between double quotes (e.g. "BESClient"). On Debian, Raspbian, Ubuntu, AIX, HP-UX and Solaris, the inspector only works for BigFix services. The BigFix service names are: BESClient, BESExplorer, BESFillDB, BESGatherDB, BESPluginPortal, BESRelay, BESRootServer, BESWebReportsServer and BESWebUI.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Red Hat, SUSE, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Returns a version if the string can be parsed as a version. The first numeric set of characters delimited with period, comma or comma-space is returned.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |
Properties
If the stage is present the bug revision is the number after the stage. If absent, zero is implied.
Example
// Only defined for Apple version strings
Q: bug revision of version "1.2.3.4"
E: The operator "bug revision" is not defined.
Q: bug revision of version "1.2.3a4"
A: 3
Version | Platforms |
---|---|
8.0.584.0 | Mac |
Returns the final component of a version (Major.Minor.Patch.Build).
Example
Q: build revision of version "1.2.3.4"
A: 4
Q: build revision of version "1.2.3a4"
A: 4
Version | Platforms |
---|---|
8.0.584.0 | Mac |
9.5.3.211 | AIX, Debian, Red Hat, SUSE, Session, Solaris, Ubuntu, Windows |
9.5.13.130 | Raspbian |
The number before the first period in the version string.
Example
Q: major revision of version "1.2.3.4"
A: 1
Q: major revision of version "1.2.3a4"
A: 1
Version | Platforms |
---|---|
8.0.584.0 | Mac |
9.5.3.211 | AIX, Debian, Red Hat, SUSE, Session, Solaris, Ubuntu, Windows |
9.5.13.130 | Raspbian |
The number immediately after the first period in the version string. If absent, zero is implied.
Example
Q: minor revision of version "1.2.3.4"
A: 2
Q: minor revision of version "1.2.3a4"
A: 2
Version | Platforms |
---|---|
8.0.584.0 | Mac |
9.5.3.211 | AIX, Debian, Red Hat, SUSE, Session, Solaris, Ubuntu, Windows |
9.5.13.130 | Raspbian |
The stage is represented by the letter in the version string. It may be 'a' for alpha, 'b' for beta, 'd' for development or 'f' for final. If absent, final is implied.
Example
// Only defined for Apple version strings
Q: stage of version "1.2.3.4"
E: The operator "stage" is not defined.
Q: stage of version "1.2.3a4"
A: a
Version | Platforms |
---|---|
8.0.584.0 | Mac |
Casts
Turns a version type into a string of the form "1.2.3.4".Example: version of regapp "bigfix.exe" as string = "1.0.45.0" - Returns True
if the BigFix application has the specified version.Example: version of package "BESAgent" of rpm as string = "3.1.0.19-1" - TRUE if the BESAgent program has the given version.
Version | Platforms |
---|---|
8.0.584.0 | AIX, HP-UX, Mac, Red Hat, SUSE, Session, Solaris, Windows |
8.1.535.0 | Debian, Ubuntu |
9.5.13.130 | Raspbian |