SNTP配置命令
使用说明
显示sntp当前状态。
示例
Switch_config#show sntp
Master Mode: Yes Master Clock Stratum: 1 Debug Mode: Off Client Status: idle Interval to Query SNTP Server: 1 (minutes) Configured SNTP Server List:
IP: 1.1.1.1 Version: 4 Status: Off The local time (UTC): Date: 2011.6.23 Time: 21.26.33
1.1.5 debug sntp
使用该命令打开sntp 调试,使用带有no前缀的命令关闭调试开关: Debug sntp no debug sntp
参数
无
缺省
无
命令模式
管理态
使用说明
根据该命令输出信息,可以查看sntp的执行过程。
示例
无
- 4 -
SNTP配置命令
1.1.6 time-zone
使用该命令打开时区的功能,使用带有no前缀的命令关闭 time-zone name offset-hour offset-minute no time-zone
参数
参数
name offset-hour offset-minute
时区名称
本地时间到UTC时间的小时偏移(-23-23) 本地时间到UTC时间的分钟偏移(0-59)
参数说明
缺省
无
命令模式
全局配置态
使用说明
根据该命令将UTC转换为本地时间。
示例
Switch_config#time-zone london 0
- 5 -
相关推荐: