zoukankan      html  css  js  c++  java
  • 日志服务器 03-部署日志服务器(网络设备部分)

    日志消息的级别

    • 0:紧急(Emergencies)
    • 1:告警(Alerts)
    • 2:严重的(Critical)
    • 3:错误(Errors)
    • 4:警告(Warnings)
    • 5:通知(Notifications)
    • 6:信息(Informational)
    • 7:调试(Debugging)
    Cisco设备
    logging on
    logging 10.100.117.36 //配置日志主机地址
    logging trap 6 //指定日志消息的级别
    logging facility local6 //可根据实际应用配置
    logging source-interface e0 //日志发出用的源ip地址
    
    H3C设备
    info-center enable //打开信息中心
    inf-center loghost host-ip-addr channel 2 facility local-number //设置日志主机的IP地址
    info-center logging host host-ip-addr //设置日志主机的信息通道
    info-center host host-ip-addr channel {channel-number|channel-name}  //设置日志主机记录工具
    info-center timestamp loghost {date|iso[with-timezone]|no-year-date|none}  //配置发送的日志信息的时间戳格式
    
    华为设备
    info-center channel 6 name loghost1 //配置通道6的名称为loghost1                                         
    info-center source IP channel 6 log level informational //配置信息通道6允许输出IP模块的日志信息,允许输出的日志级别最低为informational                           
    info-center loghost source Ethernet1/0/0或Vlanif //配置发送日志信息的源接口                             
    info-center loghost x.x.x.x channel 6
    Info-center loghost1 192.168.1.2 facility local6 language English //配置日志信息输出到日志主机
    
    ASA设备
    logging device-id hostname
    logging device-id context-name
    ciscoasa(config)# logging enable 
    ciscoasa(config)# logging timestamp 
    ciscoasa(config)# logging trap informational 
    ciscoasa(config)# logging host inside 192.168.0.2
    
    博科设备
    syslogdipadd x.x.x.x (set log server IP)
    syslogdipshow (show log server IP)
    syslogdfacility -l 6 (set the facility level  to 6)
    
  • 相关阅读:
    hdu 5723 Abandoned country 最小生成树 期望
    OpenJ_POJ C16G Challenge Your Template 迪杰斯特拉
    OpenJ_POJ C16D Extracurricular Sports 打表找规律
    OpenJ_POJ C16B Robot Game 打表找规律
    CCCC 成都信息工程大学游记
    UVALive 6893 The Big Painting hash
    UVALive 6889 City Park 并查集
    UVALive 6888 Ricochet Robots bfs
    UVALive 6886 Golf Bot FFT
    UVALive 6885 Flowery Trails 最短路
  • 原文地址:https://www.cnblogs.com/liangjingfu/p/9314927.html
Copyright © 2011-2022 走看看