SAP's System Landscape Directory (SLD) supplies an overview of installed software components. You can configure the SAP agent in a way that it registers at the SLD whenever it starts.
The following steps are required:
The SAP agent now tries to register at the SLD whenever it starts. It can successfully start even if a registration is not possible (e.g. due to incorrect connection parameters).
The SAP agent's log file contains a message which indicates whether the registration to the SLD was successful.