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.
Confirm that the problem is related to the fact that email alerts are not being received for the server. It is possible that the management server, or some other chosen server that can be accessed by the N1 System Manager, has not been configured correctly as an email server, or that email configuration has been invalidated due to other issues such as network error or domain name change.
Before trying the following procedure, verify that email sent from the ALOM server can be received by the designated email server, by configuring an independent mail client, such as Mozilla, with the same mail server IP, username and password. Then 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 follow this procedure.
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.
Before trying the following procedure, verify also that the N1 System Manager has access to the designated email server by using the telnet command to access an ALOM server, and executing the showsc command. Make sure the following parameters/values are set as shown:
The if_emailalerts value is set to true
The mgt_mailhost variable is set to the designated mail server's IP address.
The 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, follow this procedure.
Log in to the N1 System Manager.
Switch off monitoring for ALOM-based manageable servers.
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.
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.
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.
Switch on monitoring for the ALOM-based manageable 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.