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
Attributes: .. rubric:: 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.instances) 3 >>> saps.is_hana False >>> saps.is_netweaver True >>> saps.is_ascs True
- property all_instances
List of all the SAP instances listed by the command.
- Type:
list
- property business_instances
Warning
This property is deprecated and will be removed from 3.6.0. It’s recommended to use the instances attribute of
insights.combiners.sap.Sap
instead.list: List of business SAP instances.
- property daa_instances
List of the SAP Diagnostic Agent instances, e.g. Diagnostics Agents: SMDA97/SMDA98
- Type:
list
- property data
Warning
This property is deprecated and will be removed from 3.6.0.
dict: Dict with the instance name as the key and instance details as the value.
- property function_instances
Warning
This property is deprecated and will be removed from 3.6.0. It’s recommended to use the daa_instances attribute of
insights.combiners.sap.Sap
instead.list: List of functional SAP instances.
- property instances
List of the SAP instances that are NOT Diagnostic Agent instance, e.g. HANA, NetWeaver, ASCS, or other instances
- Type:
list
- property is_ascs
Is any ABAP Central Services instance detected?
- Type:
bool
- property is_hana
Is any SAP HANA instance detected?
- Type:
bool
- property is_netweaver
Is any SAP NetWeaver instance detected?
- Type:
bool
- property local_instances
Warning
This property is deprecated and will be removed from 3.6.0.
List: List of all SAP instances running on this host.