Show TOC

Function documentationOperating System Command Adapter

 

The OS Command Adapter enables you to use third-party incident management tools to create or close tickets, based on alerts created by the SAP Solution Manager alerting infrastructure. To pass alert information to and create alerts in the third-party tool, you can create and execute OS commands on your SAP Solution Manager system. You can, for example, do the following:

  • Write information to a log file

  • Execute additional OS scripts on the SAP Solution Manager system

To use the OS Command Adapter which creates the OS commands, create a BAdI implementation defining the alerting information to be processed by.the OS command.

Integration

In the SAP Solution Manager Monitoring Architecture, end user alerts are forwarded to several alert consumers, for example Alert Inbox, IT Service Management and Notification Engine provided by SAP Solution Manager.

The OS Command Adapter is integrated in the Monitoring Architecture (MAI). It is one way of forwarding alert information provided by MAI BAdI implementations, to third-party tools. You can also use MAI BAdI implementations to send, for example, e-mails or SNMP traps.

Note Note

For more information about these topics, see the configuration guides in http://wiki.scn.sap.com/wiki/display/TechOps/Alert+Consumer+BAdI+InterfaceInformation published on SAP site.

End of the note.

Prerequisites

  • In the SAP Solution Manager Configuration work center, under Start of the navigation path Application Operations Next navigation step System & Application Monitoring Next navigation step System, Host & DB End of the navigation path, you have set up the System Monitoring.

  • You have configured your third-party tool according to the use case. For example, to process SNMP traps which you send via an OS command, you have configured an SNMP trap executable (SNMP trap sender).

Activities

To use the OS Command Adapter, you perform the following activities:

  1. To specify the alert information to be processed by the OS command, create an MAI BAdI implementation.

  2. To specify the OS command to be executed, the command options, and the command parameters containing the alert information, configure the OS command.

  3. To specify the alerts to trigger the execution of the OS command, in the Monitoring and Alerting Infrastructure specify the monitoring objects to define the scope of the alert reaction.

  4. To ensure the OS commands are executed correctly, check the application log.