免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2483 | 回复: 13
打印 上一主题 下一主题

SUN服务器的自动当机及自动唤醒 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-09-26 18:36 |只看该作者 |倒序浏览
文件的要求是:每天晚上10点关机,第2天的8点开机,因为我不会用crontab命令,先谢谢了!!!因为老板要求每天关机,怕发火,因为公司发过一次火,所以要求关机

论坛徽章:
0
2 [报告]
发表于 2003-09-26 18:38 |只看该作者

SUN服务器的自动当机及自动唤醒

关机容易,开机用手动吧。
gang5415 该用户已被删除
3 [报告]
发表于 2003-09-26 18:45 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
gang5415 该用户已被删除
4 [报告]
发表于 2003-09-26 18:46 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
5 [报告]
发表于 2003-09-26 19:08 |只看该作者

SUN服务器的自动当机及自动唤醒

crontab -e增加一行
0 22 * * * shutdown
根据情况自已修改关机命令

开机不知道行不行

论坛徽章:
0
6 [报告]
发表于 2003-09-26 19:09 |只看该作者

SUN服务器的自动当机及自动唤醒

crontab-操作每个用户的守护程序和该执行的时间表。  

部分参数说明  
crontab file [-u user]-用指定的文件替代目前的crontab。  
crontab-[-u user]-用标准输入替代目前的crontab.  
crontab-1[user]-列出用户目前的crontab.  
crontab-e[user]-编辑用户目前的crontab.  
crontab-d[user]-删除用户目前的crontab.  
crontab-c dir- 指定crontab的目录。  
crontab文件的格式:M H D m d cmd.  
M: 分钟(0-59)。  
H:小时(0-23)。  
D:天(1-31)。  
m: 月(1-12)。  
d: 一星期内的天(0~6,0为星期天)。  
cmd要运行的程序,程序被送入sh执行,这个shell只有USER,HOME,SHELL这三个环境变量。  
下面是一个例子文件:  
#MIN HOUR DAY MONTH DAYOFWEEK COMMAND  
#每天早上6点  
106* * * date  

#每两个小时  
0*/2* * * date  

#晚上11点到早上8点之间每两个小时,早上部点  
0 23-7/2,8* * * date  

#每个月的4号和每个礼拜的礼拜一到礼拜三的早上11点  
0 11 4* mon-wed date  

#1月份日早上4点  
0 4 1 jan* date  
范例  
lark:~>;crontab-1 列出用户目前的crontab.  
#MIN HOUR DAY MONTH DAYOFWEEK COMMAND  
10 6* * * date  
0*/2* * * date  
0 23-7/2,8 * * * date

论坛徽章:
0
7 [报告]
发表于 2003-09-26 19:55 |只看该作者

SUN服务器的自动当机及自动唤醒

看来还是要问race了,好象我问的问题还没有回答不出的。

论坛徽章:
0
8 [报告]
发表于 2003-09-27 10:23 |只看该作者

SUN服务器的自动当机及自动唤醒

关机了crontab还怎么运行啊。如果主板支持的话可以考虑网络唤醒。

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
9 [报告]
发表于 2003-10-13 09:31 |只看该作者

SUN服务器的自动当机及自动唤醒

System AutoShutdown and AutoWakeup Controls

You can use the Dtpower program to specify times for your system to shut down automatically. This feature is called AutoShutdown. If you have a sun4u desktop machine, you can also set your system to power on automatically at a specified time. This feature is called AutoWakeup.


--------------------------------------------------------------------------------

Note - Read "Choosing to Use Suspend-Resume" before you change the AutoShutdown settings.


--------------------------------------------------------------------------------

AutoShutdown uses the Suspend feature to automatically power off your system. When the system powers up again, the system resumes in the state in which the system was suspended.

Through the Dtpower window, you can activate or deactivate the AutoShutdown and AutoWakeup features. You can also specify the following values:

The number of minutes of idle time before AutoShutdown attempts to suspend the system

The start and finish times when AutoShutdown can occur during each day. If you specify the same time for both start and finish, AutoShutdown can occur at any time of day. See Figure 23-11.

The time of day when the system automatically powers on and resumes (AutoWakeup) after being suspended by AutoShutdown. This feature is only available on sun4u desktop systems.

Figure 23-11 AutoShutdown Configuration for All Day



Note - AutoWakeup does not occur after you suspend a system manually. AutoWakeup can occur only after an AutoShutdown.


--------------------------------------------------------------------------------

To Set an Idle Time for AutoShutdown
Start Dtpower.


--------------------------------------------------------------------------------

Note - Consecutive executions of AutoShutdown do not occur less than five minutes apart, even if the idle time setting is under five minutes.


--------------------------------------------------------------------------------

In the Dtpower basic window, click More.

The window expands to show the Quick Edit tab.

In the Quick Edit tab, check Enable AutoShutdown.

Click Edit.

The AutoShutdown window is displayed.

Figure 23-12 AutoShutdown Window



Enter the time you want the AutoShutdown feature to start to be active.

Enter the time you want the AutoShutdown feature to cease being active.

In the numerical box for Shutdown During This Interval If Idle for, enter the duration for which the computer must be idle before shutting down.

In Figure 23-12, the AutoShutdown occurs after 1 hour of idle time between the hours of 6:00 p.m. and 8:00 a.m.

Click OK when all the settings you want are displayed.

If you want to reject the displayed settings, select Cancel. The currently active settings are displayed in the window.

To Disable AutoShutdown
Start Dtpower.

In the Dtpower basic window, click More.

The window expands to show the Quick Edit tab.

In the Quick Edit tab, uncheck Enable AutoShutdown.

Click OK.

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
10 [报告]
发表于 2003-10-13 09:33 |只看该作者

SUN服务器的自动当机及自动唤醒

自动唤醒只有SUN4U才可实现

This is list of sun4u:

http://sunsolve.sun.com/handbook ... BootPROM_Sun4u.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP