H3C配置日志主机
华三网络设备信息级别共有8级,从高到底分别为emergencies/alerts/critical/errors/warnings/notifications/infomational/debugging。信息级别数值描述
emergencies0系统不可用信息
alerts1需要立刻做出反应的信息
critical2严重信息
errors3错误信息
warnings4警告信息
notifications5正常出现但是重要的信息
infomational6需要记录的通知信息
debugging7调试过程产生的信息
这里我只整理几条交换机上配置日志主机时必须或者经常用到的配置命令。
info-center enable
info-center source default channel loghostdebug state offlogstate off trapstate off
info-center source default channel loghost log level informational state on//发送information以上级别的log日志
以上两条命令,可以配置指定日志模块并发送指定日志级别,以上例子为所有模块(default)。
info-center timestamp loghost no-year-date //将日志格式不显示年
这条命令可选择日志时间戳的格式。
info-center loghosthost-ipv4-addressport port-number facility local7
这条命令是设置日志服务器地址及端口,facility命令可以设置设备信息,以便在日志服务器上进行日志分类。
{:6_394:}
页:
[1]