Sap¶
This combiner combines the following parsers for SAP instances:
insights.parsers.saphostctrl.SAPHostCtrlInstances
and
insights.parsers.hostname.Hostname
-
insights.combiners.sap.
NETW_TYPES
= ('D', 'ASCS', 'DVEBMGS', 'J', 'SCS', 'ERS', 'W', 'G', 'JC')¶ Tuple of the prefix string of the functional SAP instances:
D : NetWeaver (ABAP Dialog Instance) ASCS : NetWeaver (ABAP Central Services) DVEBMGS: NetWeaver (Primary Application server) J : NetWeaver (Java App Server Instance) SCS : NetWeaver (Java Central Services) ERS : NetWeaver (Enqueue Replication Server) W : NetWeaver (WebDispatcher) G : NetWeaver (Gateway) JC : NetWeaver (Java App Server Instance)
Type: tuple
-
class
insights.combiners.sap.
SAPInstances
(name, hostname, sid, type, full_type, number, fqdn, version)¶ Bases:
tuple
namedtuple: Type for storing the SAP instance.
-
fqdn
¶
-
full_type
¶
-
hostname
¶
-
name
¶
-
number
¶
-
sid
¶
-
type
¶
-
version
¶
-
-
class
insights.combiners.sap.
Sap
(hostname, insts)[source]¶ Bases:
dict
It combines the following parsers for SAP instances:
insights.parsers.saphostctrl.SAPHostCtrlInstances
andinsights.parsers.hostname.Hostname
-
all_instances
¶ List of all the SAP instances listed by the command.
Type: list
-
function_instances
¶ List of functional SAP instances E.g. Diagnostics Agents SMDA97/SMDA98
Type: list
-
business_instances
¶ List of business SAP instances E.g. HANA, NetWeaver, ASCS, or others
Type: list
-
local_instances
¶ List of all SAP instances running on this host
Type: list
Examples
>>> type(saps) <class 'insights.combiners.sap.Sap'> >>> 'DVEBMGS12' in saps True >>> saps['DVEBMGS12'].number '12' >>> saps.sid('ASCS10') 'R4D' >>> saps.hostname('ASCS10') 'host_1' >>> len(saps.business_instances) 3 >>> saps.is_hana False >>> saps.is_netweaver True >>> saps.is_ascs True
-
data
¶ Dict with the instance name as the key and instance details as the value.
Type: dict
-
is_ascs
¶ Is any ABAP Central Services instance detected?
Type: bool
-
is_hana
¶ Is any SAP HANA instance detected?
Type: bool
-
is_netweaver
¶ Is any SAP NetWeaver instance detected?
Type: bool
-