HDBVersion - Commands¶
Shared parser for parsing output of the sudo -iu <SID>adm HDB version
commands.
-
class
insights.parsers.sap_hdb_version.
HDBVersion
(context, extra_bad_lines=None)[source]¶ Bases:
insights.core.CommandParser
,dict
Class for parsing the output of HDB version command.
Typical output of the command is:
# sudo -iu sr1adm HDB version HDB version info: version: 2.00.030.00.1522210459 branch: hanaws machine config: linuxx86_64 git hash: bb2ff6b25b8eab5ab382c170a43dc95ae6ce298f git merge time: 2018-03-28 06:14:19 weekstone: 2018.13.0 cloud edition: 0000.00.00 compile date: 2018-03-28 06:19:13 compile host: ld2221 compile type: rel
-
version
¶ the raw HDB version
Type: str
-
major
¶ the major version
Type: str
-
minor
¶ the minor version
Type: str
-
revision
¶ the SAP HANA SPS revision number
Type: str
-
patchlevel
¶ the patchlevel number of this revision
Type: str
-
sid
¶ the SID of this SAP HANA
Type: str
Examples
>>> type(hdb_ver) <class 'insights.parsers.sap_hdb_version.HDBVersion'> >>> hdb_ver.sid 'sr1' >>> hdb_ver.version '2.00.030.00.1522210459' >>> hdb_ver.major '2' >>> hdb_ver.minor '00' >>> hdb_ver.revision '030' >>> hdb_ver.patchlevel '00' >>> hdb_ver['machine config'] 'linuxx86_64'
-