zoukankan      html  css  js  c++  java
  • Cisco配置发送日志到日志服务器

    Cisco配置发送日志到日志服务器
    logging 172.16.6.22
    logging on
    logging trap 7  //指定日志消息的级别 (0:紧急(Emergencies) 1:告警(Alerts) 2:严重的(Critical) 3:错误(Errors) 4:警告(Warnings) 5:通知(Notifications) 6:信息(Informational) 7:调试(Debugging))
    logging facility localx
    交换机x一般配置成5,路由器一般配置为4
    logging source-interface e0  //日志发出用的源ip地址

    service timestamps log datetime localtime  //日志记录的时间戳设置,可根据需要具体配置
    =================================================
    在PIX上启用LOG服务,并将其发送到LOG服务器上.
    启动log服务

    第一步:启动log                         logging on
    注:By default, the logging level is set to 3 (error).
    默认log的级别为3(error)

    第二步:设置log级别          logging trap severity_level (1-7)

    第三步:检查log设置          show logging

  • 相关阅读:
    图片处理
    define 常量的定义和读取
    curl
    stream_get_contents 和file_get_content的区别
    php flock 文件锁
    字符串函数
    php 常量
    debug_backtrace()
    pathlib模块替代os.path
    Python中对 文件 的各种骚操作
  • 原文地址:https://www.cnblogs.com/minseo/p/7643953.html
Copyright © 2011-2022 走看看