sapcontrol - Commands sapcontrol

Shared parsers for parsing output of the sapcontrol [option] commands.

SAPControlSystemUpdateList- command sapcontrol -nr <NR> -function GetSystemUpdateList

class insights.parsers.sapcontrol.SAPControlSystemUpdateList(context, extra_bad_lines=None)[source]

Bases: CommandParser

This class provides processing for the output of the sapcontrol -nr <NR> -function GetSystemUpdateList command on SAP system.

Sample output of the command:

29.01.2019 01:20:36
GetSystemUpdateList
OK
hostname, instanceNr, status, starttime, endtime, dispstatus
vm37-39, 00, Running, 29.01.2019 00:00:02, 29.01.2019 01:10:11, GREEN
vm37-39, 02, Running, 29.01.2019 00:00:05, 29.01.2019 01:11:11, GREEN
vm37-39, 03, Running, 29.01.2019 00:00:05, 29.01.2019 01:12:36, GREEN

Examples

>>> rks.is_running
True
>>> rks.is_green
True
>>> rks.data[-1]['status'] == 'Running'
True
>>> rks.data[-1]['dispstatus'] == 'GREEN'
True
>>> rks.data[0]['instanceNr'] == '00'
True
is_running

The status of GetSystemUpdateList

Type:

Boolean

is_green

The display status of GetSystemUpdateList

Type:

Boolean

data

List of dicts where keys are the lead name of header line and values are the string value.

Type:

list

parse_content(content)[source]

This method must be implemented by classes based on this class.