发布时间:2019-09-02 07:46:23编辑:auto阅读(2284)
华三网络设备信息级别共有8级,从高到底分别为emergencies/alerts/critical/errors/warnings/notifications/infomational/debugging。
| 信息级别 | 数值 | 描述 |
| emergencies | 0 | 系统不可用信息 |
| alerts | 1 | 需要立刻做出反应的信息 |
| critical | 2 | 严重信息 |
| errors | 3 | 错误信息 |
| warnings | 4 | 警告信息 |
| notifications | 5 | 正常出现但是重要的信息 |
| infomational | 6 | 需要记录的通知信息 |
| debugging | 7 | 调试过程产生的信息 |
这里我只整理几条交换机上配置日志主机时必须或者经常用到的配置命令。
info-center enable
info-center source default channel loghost debug state off log state off trap state off
info-center source default channel loghost log level informational state on //发送information以上级别的log日志
以上两条命令,可以配置指定日志模块并发送指定日志级别,以上例子为所有模块(default)。
info-center timestamp loghost no-year-date //将日志格式不显示年
这条命令可选择日志时间戳的格式。
info-center loghost host-ipv4-address port port-number facility local7
这条命令是设置日志服务器地址及端口,facility命令可以设置设备信息,以便在日志服务器上进行日志分类。
上一篇: 用算号器来破解SAPR/3
下一篇: discuz X3全局变量$_G
51332
50786
41379
38182
32670
29562
28403
23279
23244
21569
1650°
2380°
1986°
1925°
2254°
1958°
2655°
4453°
4282°
3051°