Configuring Listeners

IBM® Serviceable Event Provider uses these SNMP traps to report problems and send service information to registered listeners. IBM Serviceable Event Provider uses an available intranet connection to transmit traps to the registered listeners.

About this task

You can use the IBM Serviceable Event Provider command-line interface to configure your service connection through the following steps:

Procedure

  1. Log in to the IBM PowerKVM system.
  2. In command line, go to /opt/ibm/seprovider/bin.
  3. Use the command subscribe.

Subscribe trap listeners

Use the subscribe command to subscribe to Serviceable Event Provider.

Syntax

./subscribe [-h hostname] [-p port] [-c Community name]

Description

The subscribe command configures the service contact information of the trap listener. The subscribe command sets the configuration information for IBM Serviceable Event Provider instance that is associated with the service contact information. All fields must be entered to run this command. When the command getSubscriber is specified, the new settings are displayed.

Options

-h hostname
Specifies the host name or IP address of the subscriber (registered listener) to be configured.
-p port
Specifies the port number at which the registered listener listens to the SNMP traps that are sent by Serviceable Event Provider.
-c community
Specifies the SNMP community name.

Examples

  • Display the current contact settings

    This example shows how to use getSubscriber to display the current settings.

    ./getSubscriber
    Subscriber_1
    		hostname =	 9.57.20.130
    		port = 		 245
    		community = public
    Subscriber_2
    		hostname =	 10.0.0.1
    		port = 		 163
    		community = public
    
  • Subscribe the listener

    This example shows how to use subscribe to configure the trap listener.

    ./subscribe -h 9.57.20.130 -p 162 -c public
    Subscription is successfull
    
  • Listeners are not configured

    When the listeners are not configured, the following message is displayed.

    ./getSubscriber
    There are no subscribers configured