shutdown command

Purpose

Ends system operation.

Syntax

shutdown
[-force][ -restart]

Description

The shutdown command halts the operating system. When the shutdown is complete, you receive a shutdown completion message.

Attention: Do not attempt to restart the system or turn off the system before the shutdown completion message is displayed; otherwise, file system gets corrupted.
The -force flag is used to bypass the following user prompt:
"Shutting down the VIOS could affect Client Partitions. Continue [y|n]?"

Flags

Flag name Description
-force Begins a system shut down without a user prompt.
-restart Restarts the system after a shut down.

Exit Status

See Exit status for Virtual I/O Server commands.

Security

Only prime administrator (admin) can run this command.

Examples

  1. To shut down the system, type the following command:
    shutdown
  2. To restart the system, type the following command:
    shutdown -restart
  3. To shut down the system and restart, without the user prompt, type the following command:
    shutdown -force -restart
Note: If you run long commands in the background while initiating the shutdown [-restart] option, you are notified through a prompt whether to continue the restart process.