Go to main content

SPARC M7 系列服务器管理指南

退出打印视图

更新时间: 2015 年 10 月
 
 

关闭 OS(shutdown 命令)

您必须具有 console 角色 (c) 才能完成此任务。

  1. 登录到 Oracle ILOM。

    请参见登录到 Oracle ILOM (CLI)

  2. 启动主机控制台。

    请参见启动主机控制台

  3. 如果使用除 root 用户以外的用户帐户登录到了 Oracle ILOM,请使用 su 命令切换到 root 帐户。
  4. 关闭 OS。

    将以下命令选项与 shutdown 命令一起使用:

    • -g0-将宽限期指定为 0 秒。

    • -i0-指定运行级别 0(等效于 init 0 命令)。

    • -y-预先回答确认问题,以便在无需用户干预的情况下运行该命令。

    # shutdown -g0 -i0 -y
    
    Shutdown started.    Mon Oct 10 20:03:04 PDT 2015
    
    Changing to init state 0 - please wait
    Broadcast Message from root (console) on host-name-pd0 Mon Oct 10 20:03:04...
    THE SYSTEM host-name-pd0 IS BEING SHUT DOWN NOW ! ! !
    Log off now or risk your files being damaged
    
    root@host-name-pd0:~# svc.startd: The system is coming down.  Please wait.
    svc.startd: 136 system services are now being stopped.
    syncing file systems... done
    Program terminated
    NOTICE: Entering OpenBoot.
    NOTICE: Fetching Guest MD from HV.
    NOTICE: Starting additional cpus.
    NOTICE: Initializing LDC services.
    NOTICE: Probing PCI devices.
    NOTICE: Finished PCI probing.
    
    SPARC M7-8, No Keyboard
    Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
    OpenBoot 4.37.3.build_xx, 509.5000 GB memory available, Serial #105357064.
    Ethernet address 0:10:e0:47:9f:14, Host ID: 12345f01.
    
    {0} ok

相关信息