华为设备推送syslog到日志服务器配置

方法步骤:推送交换机syslog到日志服务器;其他设备类似操作;

配置交换机日志推送到日志主机: eg:日志主机IP地址:10.10.10.1
    system-view
    info-center channel 6 name loghost(名称随意)         此条可省略;
    info-center source default channel loghost(名称和上面对应) log state on
    info-center loghost source *******
    info-center loghost 10.10.10.1 channel loghost1
    commit
 ———————————————————————————————— 
释义
#进入用户视图
    system-view
    #指定发送消息基本,表示从0-7都发送
    info-center source default channel 2 log level debugging
    #指定从哪个接口发送
    info-center loghost source *******
    #指定远程syslog服务器ip
    info-center loghost 10.10.10.1
 ———————————————— 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章