54

Changing a Remote Computer’s Startup Disk

You can change a remote computer’s startup disk using SSH.

To change the startup disk:

Log in to the remote computer using SSH and enter:

$ bless -folder "/Volumes/disk/System/Library/CoreServices" -setBoot

ParameterDescription

disk

The name of the disk that contains the desired startup volume.

For information about using SSH to log in to a remote computer, see “Sending Commands to a Remote Computer” on page 28.

Shutting Down a Computer

You can use the shutdown tool to shut down a computer at a specific time. See the shutdown man page for more information.

To shut down a remote computer immediately:

$ ssh -l root computer shutdown -h now

To shut down the local computer in 30 minutes:

$ shutdown -h +30

ParameterDescription

computer

The IP address or DNS name of the computer.

Manipulating Open Firmware NVRAM Variables

You can use the nvram tool to manipulate Open Firmware NVRAM variables. If you modify a value with nvram, the value is saved only if the computer cleanly restarts or shuts down. See the nvram man page for more information.

To view the different NVRAM variables:

$ nvram -p

Chapter 4 Restarting or Shutting Down a Computer

Page 54
Image 54
Apple Mac OS X Server manual Changing a Remote Computer’s Startup Disk, Shutting Down a Computer