Sun N1 System Manager 1.3 Discovery and Administration Guide

Starting, Stopping, and Resetting Managed Servers and Groups

This section describes the following activities:

Starting Managed Servers and Groups

Use the start server or start group commands to power on a server or a server group. If boot PROMS are configured, the servers boot. You can also use the Actions menu on the Servers By Group page in the browser interface to initiate the start operation. See the Sun N1 System Manager 1.3 Online Help for details.

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

ProcedureTo Power On and Boot a Managed Server or a Group

Steps
  1. Log in to the N1 System Manager.

  2. Use the start server or start group commands.


    N1-ok> start server server
    

    The server is powered on and, if boot PROMs are configured, the server boots. See start server in Sun N1 System Manager 1.3 Command Line Reference Manual for syntax details.


    N1-ok> start group group
    

    The group is powered on and, if boot PROMs are configured, the manageable servers in the group boot. Job completion takes longer for large groups. See start group in Sun N1 System Manager 1.3 Command Line Reference Manual for syntax details.


    Note –

    RSC servers can take several minutes to start. The job status for the RSC server can indicate that the server has already started or rebooted before the startup or reboot process has actually completed with the server's OS running. Any subsequent jobs started on the RSC server before the startup or reboot process has completed and before the server's OS is running will fail.

    For details about setting up RSC servers, see Preparing RSC-based Manageable Servers in Sun N1 System Manager 1.3 Site Preparation Guide. See also Discovery of RSC Servers in Sun N1 System Manager 1.3 Troubleshooting Guide.



Example 5–12 Starting a Managed Server From the Network

The following example shows how to boot a managed server from the network.


N1-ok> start server 10.5.7.2 netboot=true


Example 5–13 Starting a Group From the Network

The following example shows how to boot a group of managed servers from the network.


N1-ok> start group dev netboot=true

Stopping Managed Servers and Groups

To shut down and power off a managed server or a group, use the stop server or stop group commands. Stopping a server or server group initiates graceful shutdown of the operating systems and subsequent power off the managed servers. If managed servers do not have an OS installed or do not shutdown, you can use the force subcommand to power off the server group.

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

ProcedureTo Shut Down and Power Off a Managed Server or a Group

Steps
  1. Log in to the N1 System Manager.

  2. Type one of the following commands:


    N1-ok> stop server server
    

    The managed server is stopped. See stop server in Sun N1 System Manager 1.3 Command Line Reference Manual for syntax details.


    N1-ok> stop group group
    

    The group is stopped. See stop group in Sun N1 System Manager 1.3 Command Line Reference Manual for syntax details.


Example 5–14 Forcing a Managed Server to Power Off

The following example shows how to force the shutdown of the OS.


N1-ok> stop server 10.0.7.2
This operation is not supported. Please use the force option.
N1-ok> stop server 10.0.7.2 force=true
Server 10.0.7.2 powered off.


Example 5–15 Forcing a Group of Servers to Power Off

The following example shows how to force shutdown of the OS for a server group.


N1-ok> stop group dev
This operation is not supported. Please use the force option.
N1-ok> stop group dev force=true
Group dev powered off.

Troubleshooting

If you use the force option, run one of the following file system check commands on the client via the console that you access from the service processor, when the server reboots.

To find out how to run the fsck command on a managed servers, see Issuing Remote Commands on Servers and Server Groups.

Resetting Managed Servers and Groups

To initiate graceful shutdown of the operating system followed by power off for managed server or group, use the reset server or reset group commands. The managed servers are powered on and, if boot PROMs are configured, the servers reboot. If servers do not have an OS installed or do not shutdown, you can use the force subcommand to reboot the server or group.

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

ProcedureTo Reboot a Managed Server or a Group

Steps
  1. Log in to the N1 System Manager.

  2. Use one of the following commands:


    N1-ok> reset server server [force=true]

    The managed server is rebooted. See reset server in Sun N1 System Manager 1.3 Command Line Reference Manual for details.


    N1-ok> reset group group [force=true]

    The servers in the group reboot. See reset group in Sun N1 System Manager 1.3 Command Line Reference Manual for details.


Example 5–16 Forcing Reset of a Managed Server

The following example shows how to force reset of the OS.


N1-ok> reset server 10.5.7.2 force=true


Example 5–17 Forcing Reset of a Group

If the OS does not gracefully shut down, the following example shows the forced reset of the operating systems for servers in the group.


N1-ok> reset group dev force=true


Example 5–18 Rebooting a Managed Server From the Network

The following example shows how to reboot a managed server from the network.


N1-ok> reset server 10.5.7.2 netboot=true


Example 5–19 Rebooting a Group from the Network

The following example shows how to reboot a server group from the network.


N1-ok> reset group dev netboot=true

Troubleshooting

If you use one of the above force commands, run one of the following file system check commands on the service processor when the server reboots.

To find out how to run the fsck command on managed servers, see Issuing Remote Commands on Servers and Server Groups for instructions.