The following procedure describes how to use the command line to enable the monitoring of hardware health and operating system health of a server or a server group. Hardware health and OS health monitoring are both enabled with this command, provided that the OS monitoring feature has been installed on the server or the server group. If the OS monitoring feature has not been installed on the server or server group, then only hardware health monitoring is enabled.
To enable the management agent IP and security credentials on a server named server, add the management features on the server as explained in Supporting Monitoring.
Log in to the N1 System Manager.
See To Access the N1 System Manager Command Line for details.
Set the monitored attribute to true by using the set server command.
N1-ok> set server server monitored true |
In this procedure, server is the name of the provisionable server that you want to monitor.
For a server group, set the monitored attribute to true by using the set group command.
N1-ok> set group group monitored true |
This command is executed for the group of servers that you have already named. See set group in Sun N1 System Manager 1.2 Command Line Reference Manual for details. In this procedure, group is the name of the group of provisionable servers that you want to monitor.
View the server details.
N1-ok> show server server |
For a server group, view the server group details to determine if monitoring is enabled for each server in the group.
N1-ok> show group group |
Detailed monitoring information appears in the output. Information is displayed about hardware health, OS health and network reachability. OS health monitoring threshold values are also displayed.Monitoring threshold values are explained in Monitoring Threshold Values.