Lssap - command /usr/sap/hostctrl/exe/lssap
¶
This module provides processing for the output of the lssap
command on
SAP systems. The spec handled by this command inlude:
"lssap" : CommandSpec("/usr/sap/hostctrl/exe/lssap")
Class Lssap
parses the output of the lssap
command. Sample
output of this command looks like:
- lssap version 1.0 -
==========================================
SID Nr Instance SAPLOCALHOST Version DIR_EXECUTABLE
HA2| 16| D16| lu0417|749, patch 10, changelist 1698137| /usr/sap/HA2/D16/exe
HA2| 22| D22| lu0417|749, patch 10, changelist 1698137| /usr/sap/HA2/D22/exe
HA2| 50| D50| lu0417|749, patch 10, changelist 1698137| /usr/sap/HA2/D50/exe
HA2| 51| D51| lu0417|749, patch 10, changelist 1698137| /usr/sap/HA2/D51/exe
Examples
>>> lssap.instances
['D16', 'D22', 'D50', 'D51']
>>> lssap.version('D51')
'749, patch 10, changelist 1698137'
>>> lssap.is_hana()
False
>>> lssap.data[3]['Instance']
'D51'
- class insights.parsers.lssap.Lssap(context, extra_bad_lines=None)[source]¶
Bases:
CommandParser
Class to parse
lssap
command output.- Raises:
SkipComponent -- Nothing needs to be parsed.
ParseException -- Raised if any error occurs parsing the content.
- data¶
List of dicts, where the keys in each dict are the column headers and each item in the list represents a SID.
- Type:
list
- sid¶
List of the SIDs from the SID column.
- Type:
list
- instances¶
List of instances running on the system.
- Type:
list
- instance_types¶
List of instance types running on the system.
- Type:
list