Sun N1 System Manager 1.3.1 Troubleshooting Guide

Resetting Email Accounts for ALOM-based Managed Servers

If you have configured a separate mail server and account for the N1 System Manager to receive hardware event notifications, and the N1 System Manager is not receiving hardware event notifications from ALOM architecture manageable servers, the following problems might exist:

To resolve the first three issues, log in to the management server as root (su - root) and run the command n1smconfig -A to start the email reconfiguration process. Then do one of the following actions:

To resolve the last issue, proceed as described by To Reset Email Accounts for ALOM-based Managed Servers

ProcedureTo Configure the ALOM Email Alert Settings

  1. Log in as root (su - root) to the management server management server.

  2. Type n1smconfig -A to start the ALOM email alert settings configuration process.

    You are notified that proper settings are required to send email alerts, and the existing values are displayed. You are then asked whether to modify the email alert settings.

  3. Choose whether to modify the email alert settings.

    • Type n to accept the displayed settings. The email alert configuration process exits to the system prompt.

    • Type y to modify the email alert configuration.

      You are prompted for the email alert user name.

  4. Type the account name that is to be used for the email alerts, for example n1smadmin.

    You are prompted for the email alert folder.

  5. Type the name of an email folder for the alert account, for example, inbox.

    You are prompted for the email protocol

  6. Type the name of the email protocol used by the management server.

    Valid entries are pop3 or imap.

    You are prompted for the email alert user account password.

  7. Type the password for the email alert user account.

    You are prompted for the email alert user account email address.

  8. Type the user account email address, for example n1smadmin@company.com.

    You are prompted for the IP address of the email server.

  9. Specify the IP address of the email server.

    • If you have installed and enabled an email server on the management server, type the IP address of the management server management network interface.

    • If you have installed and enabled an email server on a different machine that is accessible by the management server management network interface, type the IP address of that machine.

    The values you have specified are displayed, and you are asked whether you want to use the values.

  10. Choose whether to accept the displayed email alert settings.

    • Type n if the settings are not correct.

      The ALOM email alert settings process is restarted, and you are prompted to specify the email alert user name.

    • Type y to use the displayed email alert settings.

      The settings are displayed again, and you are asked whether you want to apply the settings.

      Type y to apply the settings, or type n to exit to the command prompt.

ProcedureTo Verify ALOM Server Email

This procedure provides the steps required to determine why ALOM server email alerts are not received by N1 System Manager. Failure to receive email alerts from ALOM servers might be caused by the following problems:

  1. Verify that email sent from the ALOM server can be received by the designated email server.

    Configure an independent mail client, such as Mozilla, with the same mail server IP, username and password.

  2. Use the telnet command to access an ALOM server and execute the resetsc -y command to generate a warning message.

    Check if the mail client is able to receive the ALOM warning message. If it is, you do not need to reset the email accounts for the server.

    See SP-Based Discovery in Sun N1 System Manager 1.3 Discovery and Administration Guide for information about default telnet login and passwords for servers.

  3. Verify that the N1 System Manager has access to the designated email server.

    Use the telnet command to access an ALOM server, and execute the showsc command. Make sure the following parameters and values are set as shown:

    • if_emailalerts value is set to true

    • mgt_mailhost variable is set to the designated mail server's IP address.

    • mgt_mailalert(1) variable is set to the email address to which alerts must be sent.

    If you do not see these settings, or if you see incorrect values for the mgt_mailalert email address, reset the email account as described in To Reset Email Accounts for ALOM-based Managed Servers.

ProcedureTo Reset Email Accounts for ALOM-based Managed Servers

This procedure provides the steps required to replace a compromised or corrupt ALOM email account on a managed server. The ALOM email addresses should be reserved for use only by the N1 System Manager.

Before You Begin

Confirm that the problem is related to the fact that email alerts are not being received for the server as described in To Verify ALOM Server Email.

  1. Log in to the N1 System Manager.

    See To Access the N1 System Manager Command Line in Sun N1 System Manager 1.3 Discovery and Administration Guide for details.

  2. Switch off monitoring for ALOM-based manageable servers.

    • For an individual server, set the monitored attribute to false by using the set server command.


      N1-ok> set server server monitored false
      

      In this example, server is the name of the ALOM-based manageable server for which you want to reset the email account. Executing this command disables monitoring of the server.

    • If the ALOM-based servers are in the same group, use the set group command to switch off monitoring for the server group.


      N1-ok> set group group monitored false
      

      In this example, group is the name of the group of ALOM-based manageable servers for which you want to reset email accounts. Executing this command disables monitoring of the server group.

  3. Change the email address for the server using the n1smconfig command with the -A option.

    ALOM-based servers support email addresses of up to 33 characters in length.


    Note –

    If you manually configured ALOM-based servers to send event notifications by email to other addresses, using the telnet command and the setsc mgt_mailalert command, those addresses will not be changed by running the n1smconfig command.


  4. Switch on monitoring for the ALOM-based manageable server.

    • For an individual server, set the monitored attribute to true by using the set server command.


      N1-ok> set server server monitored true
      
    • If the ALOM-based servers are in the same group, use the set group command to switch on monitoring for the server group.


      N1-ok> set group group monitored true
      

      In this example, group is the name of the group of ALOM-based manageable servers for which you want to reset email accounts. Executing this command enables monitoring of the server group.