You must discover servers to manage them with the N1 System Manager. This procedure describes how to use the browser interface to initiate and track discovery. Example 2–1 at the end of this procedure provides the command-line equivalent.
Discovered servers are automatically monitored for hardware health.
Before you discover a new hardware component, read Chapter 2, Sun N1 System Manager System and Network Preparation, in Sun N1 System Manager 1.1 Site Preparation Guide.
Log in to the N1 System Manager.
See To Access the N1 System Manager Browser Interface for details.
The All Servers page appears.
Click the Discover button in the Servers table.
The Discover Servers wizard appears.
Use the wizard steps to guide you through the screens.
Click the Finish button to begin the discovery operation.
The wizard window closes and a job ID appears in the Command Line pane.
To view the Discovery job, click the Jobs tab.
The Discovery job appears in the Jobs table.
When the job completes successfully, do one of the following:
Choose All Servers from the View Selector menu.
The discovered server appears in the list.
If you selected a group for the discovered servers, view the list of server groups as follows:
The server or servers are available for OS provisioning.
If you installed an OS on a server before it was discovered, add the OS monitoring feature.
The SSH user account that is used in the following command must have root privileges on the remote machine.
N1-ok> add server server feature osmonitor agentip agentip agentssh username/password |
See add server in Sun N1 System Manager 1.1 Command Line Reference Manual for details.
IP addresses, IP address ranges, and IP subnets can be input as a comma-separated list. Overlapping IP address ranges are allowed. Security credentials for IPMI, Simple Network Management Protocol (SNMP), SSH, and Telnet are optional. However, for Sun Fire X4000 series servers, username is required by IPMI. If credentials are not specified, the manufacturer defaults are used. See Sun N1 System Manager 1.1 Site Preparation Guide for information about the default accounts.
N1-ok> discover IP,IP-IP,subnet/mask [group group] [ipmi username/password] [snmp credential/credential] [ssh username/password] [telnet username/password] |
The following example of the discover command shows how to discover servers that have the following management network IP addresses: 192.168.1.1–192.168.1.3 , 192.168.1.5-192.168.1.95, and 192.168.1.107.
N1-ok> discover 192.168.1.1-192.168.1.3,192.168.1.5-192.168.1.95,192.168.1.107 group dev ssh root/admin Job 3 started. |
The group subcommand adds the successfully discovered servers into a server group called dev. The ssh option specifies the user name and password configured for access on the management port. In this example, the SSH user name root and password admin are used to authenticate the hardware discovery.
The following example command shows how to view the Discovery job and the job status.
N1-ok> show job all Job ID Date Type Status Owner 3 2005-06-28T06:53:53-0700 Discovery Completed root 2 2005-06-28T06:01:20-0700 Create OS Distribution Completed root 1 2005-06-28T05:57:14-0700 Create OS Distribution Completed root |
The following example command shows how to verify that the discovered servers were added to the server group.
N1-ok> show group all Name Status Jobs Servers Spare dev 7 |
The following example command shows how to view the list of servers in the group and the power and hardware health status.
N1-ok> show group dev Name Hardware Hardware Health Power OS Usage OS Resource Health 192.168.1.1 V20z Good On -- Uninitialized 192.168.1.2 V20z Good On -- Uninitialized 192.168.1.5 V40z Good On -- Uninitialized 192.168.1.15 NETRA-240 Good On -- Uninitialized 192.168.1.25 X4100 Good On -- Uninitialized 192.168.1.95 X4200 Good On -- Uninitialized 192.168.1.107 SF-V240 Good On -- Uninitialized |
The following example of the discover command shows how to discover any servers that have management network IP addresses assigned in the 192.168.1.0/8 netmask.
N1-ok> discover 192.168.1.0/8 ssh root/admin Job 18 started. |
The following example shows how to view the discovered servers.
N1-ok> show server all Name Hardware Hardware Health Power OS Usage OS Resource Health 192.168.1.1 V20z Good On -- Uninitialized 192.168.1.2 V20z Good On -- Uninitialized 192.168.1.5 V40z Good On -- Uninitialized 192.168.1.15 NETRA-240 Good On -- Uninitialized 192.168.1.25 X4100 Good On -- Uninitialized 192.168.1.95 X4200 Good On -- Uninitialized 192.168.1.107 SF-V240 Good On -- Uninitialized 192.168.1.200 V20z Good On -- Uninitialized 192.168.1.245 V40z Good On -- Uninitialized 192.168.1.255 NETRA-240 Good On -- Uninitialized |
The following example of the add command shows how to add the OS monitoring feature to a server that had an OS installed prior to being discovered.
N1-ok> add server 192.168.1.1 feature osmonitor agentip 192.168.10.10 agentssh admin/admin |
The agentip parameter sets the IP address of the provisionable server's data network interface to be monitored by the management server. The ssh user name admin and password admin are used for root access authentication.
The following example of the show command shows how to verify that the OS monitoring feature was added successfully to a server that had an OS installed prior to being discovered.
N1-ok> show server 192.168.1.1 Name Hardware Hardware Health Power OS Usage OS Resource Health 192.168.1.1 V20z Good On Solaris Good |
The discover command credential attributes are used for security. SSH, IPMI, and Telnet require a username and a password. SNMP requires that you input a valid value for the read security community string. If credentials are not specified, the discovery process uses the default credentials that were defined during installation. See Discovering Servers for default credentials.
Discovery might fail due to stale SSH entries on the management server. If the discover command fails with an error message indicating that there are invalid credentials and no true security breach has occurred, remove the /root/.ssh/known_hosts file or the specific entry in the file that corresponds to the provisionable server. Then, retry the discover command.
The OS does not belong to the server in question if the add command fails with the following error:
Internal error: No mac address match found
Sun N1 System Manager 1.1 Site Preparation Guide