Sun N1 System Manager 1.2 Administration Guide

ProcedureTo List Servers and Server Groups

This procedure describes how to list servers and server groups by using the browser interface. The example that follows the procedure provides a command-line equivalent.

Steps
  1. Log in to the N1 System Manager.

    See To Access the N1 System Manager Browser Interface for details.

  2. Navigate to the table that contains the server or the server group by performing one of the following actions:

    • Choose All Servers from the View Selector menu.

      The Servers table appears.

    • Choose Servers By Group from the View Selector menu.

      The Server Groups table appears.


Example 4–1 Listing Servers Through the Command Line

The following example shows how to view all servers in the system by using the show command.


N1-ok> show server all

A list of all servers in the system appears. See show server in Sun N1 System Manager 1.2 Command Line Reference Manual for details.



Example 4–2 Filtering Servers Through the Command Line Based on IP Address

The following example shows how to filter a list of provisionable servers in the system based on the server's management network IP address by using the show command:


N1-ok> show server ip 192.168.200.4

The following example shows how to filter a list of provisionable servers in the system based on a range of management network IP addresses:


N1-ok> show server ip 192.168.200.4-192.168.200.60

The following example shows how to filter a list of provisionable servers in the system based on subnet and mask length. In this case the subnet is 10.0.8 and the mask length is 24:


N1-ok> show server ip 10.0.8/24


Example 4–3 Filtering Servers Through the Command Line Based on Job Count

The following example shows how to filter a list of provisionable servers in the system based on job count. In this case the job count is 0:


N1-ok> show server jobcount 0


Example 4–4 Filtering Servers Through the Command Line Based on Model

The following example shows how to filter a list of provisionable servers in the system based on the server model. In this case the server model is Sun Fire v240 machines:


N1-ok> show server model SF-V240


Example 4–5 Filtering Servers Through the Command Line Based on Name

The following example shows how to filter a list of provisionable servers in the system based on the server name. In this case the server name is server3:


N1-ok> show server name server3

The following example shows how to filter a list of provisionable servers in the system based on the server name. In this case the server name is s 3:


N1-ok> show server name "s 3"


Example 4–6 Filtering Servers Through the Command Line Based on Running OS

The following example shows how to filter a list of provisionable servers in the system based on the OS that is running on the server. In this case an implicit, case-sensitive wildcard is used for SUSE Linux:


N1-ok> show server runningos SLES


Example 4–7 Filtering Servers Through the Command Line Based on OS Health

The following example shows how to filter a list of provisionable servers in the system based on the health of the OS that is running on the server. In this case, all servers that have OS health monitored are listed:


N1-ok> show server oshealth monitored

The following example shows how to filter a list of provisionable servers in the system based on the health of the OS that is running on the server. In this case, all servers that do not have OS health monitored are listed:


N1-ok> show server oshealth unmonitored

The following example shows how to filter a list of provisionable servers in the system based on the health of the OS that is running on the server. In this case, all servers that are sending no OS health information because the OS monitoring feature has not been added, are listed:


N1-ok> show server oshealth uninitialized

For information on adding the OS monitoring feature, see Supporting Monitoring.



Example 4–8 Listing Groups Through the Command Line


N1-ok> show group all

A list of all server groups in the system appears. See show group in Sun N1 System Manager 1.2 Command Line Reference Manual for details.