Chinaunix首页 | 论坛 | 博客
  • 博客访问: 42876
  • 博文数量: 13
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 140
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-21 16:58
文章分类
文章存档

2009年(13)

我的朋友

分类: 服务器与存储

2009-09-14 22:10:52

日期和时间设置

设置日期和时间

1)   连接到导向器,然后使用admin角色用户登录。

2)   使用以下语法,输入date命令:

date "mmddHHMMyy"

参数值解释如下:

mm is the month; valid values are 01 through 12.

dd is the date; valid values are 01 through 31.

HH is the hour; valid values are 00 through 23.

MM is minutes; valid values are 00 through 59.

yy is the year, valid values are 00-37 and 70-99 (year values from 70-99 are interpreted as 1970-1999, year values from 00-37 are interpreted as 2000-2037).

switch:admin> date

Fri Sep 29 17:01:48 UTC 2007

Stealth200E:admin> date "0204101008"

Mon Feb  4 10:10:00 UTC 2008

设置时区

1)   连接到导向器,然后使用admin角色用户登录。

2)   输入tsTimeZone命令如下:

switch:admin> tstimezone [--interactive]/ [, timezone_fmt]

• 使用不带参数的tsTimeZone命令显示当前的时区设置。

• 使用参数–interactive列出firmware支持的所有时区。

• 使用参数timeZone_fmt设置时区,通过指定Country/Citytime zone ID,如PST

下面的例子展示了如何显示当前时区的设置和如何改变时区到US/Central.

switch:admin> tstimezone

Time Zone : US/Pacific

switch:admin> tstimezone US/Central

switch:admin> tstimezone

Time Zone : US/Central

下面的过程描述了如何使用交互模式设置当前时区到Pacific Standard Time.

交互模式设置时区

1)   输入tsTimeZone命令如下:

switch:admin> tstimezone --interactive

提示选择一个常用地点。

Please identify a location so that time zone rules can be set correctly.

2)   输入合适的numberCtrl-D退出。

3)   在提示处,选择一个country location

4)   在提示处,输入合适的number去指定时区的区域或Ctrl-D退出

更详细设置请参阅Fabric OS Administrator’s Guide》。

 

<未完待续……>

阅读(1298) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~