Sun N1 System Manager 1.3 Discovery and Administration Guide

Creating and Maintaining Groups of Managed Servers

This section describes the following tasks:

Creating Groups and Adding Managed Servers to Groups

After successful completion of the Discovery job, a managed server is identified by its management name. The managed server's management name is initially set to the server's management IP address. You can rename managed servers at any time.

For aggregate installation of firmware updates, you can create groups of managed servers, according to the make and model. Then, you can create functional groups for the aggregate installation of operating systems, or OS profiles, and OS updates. For details about provisioning operating systems, see Sun N1 System Manager 1.3 Operating System Provisioning Guide. Managed servers can belong to more than one group, so you can create new groups for aggregate maintenance tasks as needed.

To create groups, use the create group command. To add managed servers to a group, use the add group command with the server subcommand.

To create a group and add managed servers in a single operation, use the create group command and the server subcommand. This task can also be performed during the service processor discovery process. Add an option to the discover command to create a new group and add the servers to the new group. See To Discover Manageable Servers Using SP-Based Discovery Using the Command Line or To Discover Manageable Servers Using OS-Based Discovery Using the Command Line for instructions.

For syntax and parameter details, type help create group or help add group at the N1–ok command line.

ProcedureTo Create a Group of Managed Servers

This task shows you how to create groups of managed servers. Managed nodes can belong to more than one server group, so you can create new groups for aggregate maintenance tasks as needed.

Steps
  1. Log in to the N1 System Manager.

  2. Use the following command:


    N1-ok> create group group
    

    The new group is created. See create group in Sun N1 System Manager 1.3 Command Line Reference Manual for details.


Example 5–1 Creating a Group and Adding Servers in a Single Operation

The following example shows how to create a group named dev and add managed servers named server1 and server2. Then, the show group command output provides the list of servers in the dev group.


N1-ok> create group dev server server1,server2
N1-ok> show group dev
Name		Hardware	Power		Health		OS Usage  	
server1   	V20z       On       	Good		   --			  
server2   	V20z       On       	Good         RH30       

ProcedureTo Add a Managed Server to a Group


Note –

Managed Servers can belong to more than one group.


Steps
  1. Log in to the N1 System Manager.

  2. Use the following command:


    N1-ok> add group group server server
    

    The managed server is added to the group. See add group in Sun N1 System Manager 1.3 Command Line Reference Manual for details.

Removing A Managed Server From A Group

To remove a managed server from a group, use the remove group command with the server subcommand. For syntax and parameter details, type help remove group at the N1–ok command line.

ProcedureTo Remove a Managed Server From a Group

Steps
  1. Log in to the N1 System Manager.

  2. Use the following command:


    N1-ok> remove group group server server
    

    The server is removed from the group. See remove group in Sun N1 System Manager 1.3 Command Line Reference Manual for details.