Chinaunix首页 | 论坛 | 博客
  • 博客访问: 156564
  • 博文数量: 42
  • 博客积分: 852
  • 博客等级: 准尉
  • 技术积分: 430
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-10 09:59
文章分类

全部博文(42)

文章存档

2015年(2)

2013年(9)

2012年(21)

2011年(4)

2009年(6)

我的朋友

分类: 系统运维

2013-01-08 10:30:19

1, check how many model:
 
~# svcs "svc:/milestone/*"
STATE          STIME    FMRI
online         Jan_05   svc:/milestone/unconfig:default
online         Jan_05   svc:/milestone/config:default
online         Jan_05   svc:/milestone/devices:default
online         Jan_05   svc:/milestone/network:default
online         Jan_05   svc:/milestone/name-services:default
online         Jan_05   svc:/milestone/single-user:default
online         Jan_05   svc:/milestone/self-assembly-complete:default
online         Jan_05   svc:/milestone/multi-user:default
online         Jan_05   svc:/milestone/multi-user-server:default
 
2, How to use the command:
# svcadm
Usage: svcadm [-v] [cmd [args ... ]]
        svcadm enable [-rst] ...      - enable and online service(s)
        svcadm disable [-st] ...      - disable and offline service(s)
        svcadm restart ...            - restart specified service(s)
        svcadm refresh ...            - re-read service configuration
        svcadm mark [-It] ... - set maintenance state
        svcadm clear ...              - clear maintenance state
        svcadm milestone [-d]        - advance to a service milestone
 
3, use command,such as below, to entered on model and OS wll be maintence on the screen
#svcadm milestone -d svc:/milestone/multi-user:default
 
4, restore it to before:
#svcadm milestone -d all
 
 
5, check current level
#who -r
阅读(1364) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~