h3c交换机怎么配置syslog指向日志收集设备及交换机时间设置
[Device] info-center enable //默认开启
#配置发送日志信息到IP地址为1.2.0.1/16的日志主机
[Device] info-center loghost 1.2.0.1
设置H3C交换机,发送日志到日志服务器(ip:10.0.0.1)
system-view
info-center loghost 10.0.0.1 facility local5
info-center source default channel loghost log level informational state on
有两种时钟获取方式
- 开取NTP ,由网络时钟服务器获取时间
clock protocol ntp mdc mdc-id
- 不置时钟服务器,
clock protocol none
[H3C]clock protocol none #关闭protocol ,缺省情况下,默认开启,由缺省MDC获取系统时间 <H3C>clock datetime hh:mm:ss year/month/day #设置时间 [H3C]clock timezone beijing add 8 #设置时区 北京 在UTC偏移8小时 [H3C]dis clock 09:38:48 beijing Wed 07/14/2021 Time Zone : beijing add 08:00:00 [H3C]quit [H3C]dis cur | in ntp clock protocol ntp mdc 1 ntp-service enable ntp-service unicast-server 114.118.7.161
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。