Apple Mac OS X Server Network Card User Manual


 
54 Chapter 4 Restarting or Shutting Down a Computer
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
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
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
Parameter Description
disk
The name of the disk that contains the desired startup volume.
Parameter Description
computer
The IP address or DNS name of the computer.