level informational=收 0–6;配 warning=收 0–4,依此类推。
info-center source default loghost level informational(0–6 全收,覆盖绝大多数运维/安全事件)
undo info-center source default loghost,再按模块配):
warning 或 notification,登录成功/失败、权限变更必留;安全事件至少 warning。
informational(端口闪断排障靠这个;若某口疯狂 up/down 再用 filter 限频)
informational 或 notification;温度/电源/风扇可保持默认 informational,关键环境提 warning 起报更干净。
informational,留谁在什么时间敲了什么。
debugging;核心交换机全模块 debug 会产生海量日志、影响转发与控制平面。
info-center logbuffer level informational,大小按内存设(默认 512 条,核心可加到 1024/更大,具体看版本上限)
info-center source xxx logbuffer level debugging,看完改回。
info-center logfile enable
informational;安全/AAA 单独 notification 或 warning 留审计
info-center logfile size-quota 6(MB,老平台上限约10MB);新版本按诊断日志/日志文件 quota 调整。核心箱建议同时开诊断日志(diagnostic-logfile)但单独限额,不直接发 syslog。
info-center source default console level notification(或 warning),避免控制台被日志刷屏、且防止高负载时交互卡顿
terminal monitor + 按需 terminal logging,debug 只在本会话开、用完关。
system-view
info-center enable
# 时间同步先做好,日志才有意义
clock protocol ntp
ntp-service enable
ntp-service unicast-server 10.0.0.1
# Syslog 主机,管理源地址固定
info-center loghost 10.10.10.100 port 514 facility local7
info-center loghost 10.10.10.101 port 514 facility local7 # 双机主备
info-center loghost source Vlan-interface100 # 管理VLAN/LOOPBACK均可
info-center timestamp loghost date
# 先清默认,再按模块分级(不同版本模块名以 display/? 为准)
undo info-center source default loghost
info-center source default loghost level informational
info-center source AAA loghost level notification
info-center source SEC loghost level warning
info-center source SSH loghost level notification
info-center source LOGIN loghost level notification
info-center source IFNET loghost level informational
info-center source STP loghost level informational
info-center source LAGG loghost level informational
info-center source IRF loghost level informational
info-center source ARP loghost level informational
info-center source MAC loghost level informational
info-center source OSPF loghost level informational
info-center source BGP loghost level informational
info-center source SNMP loghost level warning
info-center source NTP loghost level notification
info-center source DEVM loghost level warning # 风扇/电源/温度,按本机模块名调整
# 本地
info-center logbuffer size 1024
info-center logbuffer level informational
info-center logfile enable
info-center logfile size-quota 6 # 老版本口径;新版本按实际命令/存储调
# console 别刷屏
undo info-center source default console
info-center source default console level notification模块名以本机为准:在系统视图敲info-center source ?看支持列表;S10506X 不同 Comware 版本可能用 IFNET/STP/LAGG/IRF/OSPF/BGP/AAA/SEC/SSH/SNMP/DEVM 等,也可能有更细子模块。
info-center filter 限级别,或先在接口层排查,不要全局关 IFNET informational,否则真链路问题看不到。
暂无评论
1. 推荐的采集模块
信息中心模块本身负责统一管理各业务模块生成的日志,并非直接“采集”特定模块。但为了全面监控设备状态,建议开启以下关键模块的日志输出:
default,覆盖所有未单独配置的模块,确保基础信息不遗漏。DRVPLAT、DRVMNT,有助于发现硬件异常(如文档中提到的ECMP资源不足问题)。2. 推荐的日志收集级别
对于日常运维和故障排查,推荐将日志级别设置为 informational(6级)。
理由如下:
3. 配置参考
您可以使用如下命令进行基础配置:
system-view
info-center enable
info-center source default loghost level informational
info-center source default logbuffer level informational
如需调整特定模块(如仅允许FTP模块的日志),可参考文档中的示例,使用info-center source命令进行精细化控制。
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论