Setting up SNMP notifications using the CLI

You can set up event notifications using the command-line interface (CLI).

The notification settings apply to the entire cluster. You can specify the types of events that cause the cluster to send a notification. The cluster sends a Simple Network Management Protocol (SNMP) notification. The SNMP setting represents the type of notification.

The possible types of event notifications are error, warning, and information. Event notifications are reported to the SNMP destinations of your choice. To specify an SNMP destination, you must provide a valid IP address and SNMP community string.
Note: A valid community string can contain up to 60 letters or digits (most characters). A maximum of six SNMP destinations can be specified.

In configurations that use SNMP, the SAN Volume Controller uses the notifications settings to call home if errors occur. You must specify Error and send the trap to the IBM® System Storage® Productivity Center or the master console if you want the SAN Volume Controller to call home when errors occur.

To configure the SNMP notification settings, use the following commands:

  1. To create a new SNMP server to receive notifications, use the svctask mksnmpserver CLI command. For example, enter one of the following commands:
    svctask mksnmpserver -ip 9.11.255.634 

    where 9.11.255.634 is the IP addresses for this server.

    svctask mksnmpserver -ip 9.11.255.634 -port  remoteportnumber  
    where 9.11.255.634 is the IP addresses for this server and remoteportnumber is the port number for the remote SNMP server.
  2. To change the settings of an existing SNMP server, enter the svctask chsnmpserver command. For example:
    svctask chsnmpserver -name newserver snmp_server_name_or_id 
    where newserver is the new name or ID of the server and snmp_server_name_or_id is the name or ID of the server to be modified.
  3. To remove an existing SNMP server from the system, enter the svctask rmsnmpserver command. For example:
    svctask rmsnmpserver snmp_server_name_or_id
    where snmp_server_name_or_id is either the name or the ID of the SNMP server to be deleted.
  4. To display either a concise list or a detailed view of the SNMP servers that are detected by the cluster, enter the svcinfo lssnmpserver command. For example, to display a concise view, enter the following command:
    svcinfo lssnmpserver -delim :
    To display a detailed view of an SNMP server, enter the following command:
    svcinfo lssnmpserver snmp_server_name_or_id
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2003, 2009. All Rights Reserved.