lib/sles4sap/sap_host_agent.pm

SYNOPSIS

Package with functions related to interaction with SAP Host Agent (Command saphostctrl). Those can be used for collecting data about instances and performing various operations. Keep in mind that command needs to be executed using either root or sidadm.

parse_instance_name

parse_instance_name($instance_name);

Splits instance name into SID and instance ID. Example: DBH01 -> sid=DBH, id=01

saphostctrl_list_instances

saphostctrl_list_instances([as_root=>1, running=>'yes']);

Lists all locally installed instances. Executes command 'saphostctrl -function ListInstances' and returns parsed result in HASHREF.