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 system. You can specify the types of events that cause the system to send a notification. The system sends a Simple Network Management Protocol (SNMP) notification. The SNMP setting represents the type of notification.

SNMP is the standard protocol for managing networks and exchanging messages. SNMP enables the Lenovo Storage V series to send external messages that notify personnel about an event. You can use an SNMP manager to view the messages that the SNMP agent sends.

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. If no community string is specified, the default string of public is used. A maximum of six SNMP destinations can be specified.

In configurations that use SNMP, theLenovo Storage V series uses the notifications settings to call home if errors occur. You must specify Error and send the trap to theSystem Storage® Productivity Center or the master console if you want the Lenovo Storage V series to call home when errors occur.

In configurations that use SNMP, the Lenovo Storage V series uses the notifications settings to call home if errors occur. You must specify Error and send the trap to the master console if you want the Lenovo Storage V series 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 mksnmpserver CLI command.
    For example, enter one of the following commands:
    mksnmpserver -ip 9.11.255.634

    where 9.11.255.634 is the IP address for this server.

    mksnmpserver -ip 9.11.255.634 -port  remoteportnumber
    where 9.11.255.634 is the IP address 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 chsnmpserver command.
    For example:
    chsnmpserver -name server_namesnmp_server_name_or_id
    where server_name is the new name of the server and snmp_server_name is the name or ID of the server to be modified.
  3. To remove an existing SNMP server from the system, enter the rmsnmpserver command.
    For example:
    rmsnmpserver snmp_server_name
    where snmp_server_name is either the name 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 system, enter the lssnmpserver command.
    For example, to display a concise view, enter the following command:
    lssnmpserver -delim :
    To display a detailed view of an SNMP server, enter the following command:
    lssnmpserver snmp_server_name