• 关于archive(feature)


    配置如下archive命令,可以记录登录到设备,具体配置了哪些命令:

    R3(config)#archive
    R3(config-archive)#log config
    R3(config-archive-log-cfg)#
    R3(config-archive-log-cfg)#logging enable
    R3(config-archive-log-cfg)#notify syslog


    R3#sho logging
    Syslog logging: enabled (11 messages dropped, 0 messages rate-limited,
                    0 flushes, 0 overruns, xml disabled, filtering disabled)
        Console logging: level debugging, 35 messages logged, xml disabled,
                         filtering disabled
        Monitor logging: level debugging, 0 messages logged, xml disabled,
                         filtering disabled
        Buffer logging: level debugging, 16 messages logged, xml disabled,
                        filtering disabled
        Logging Exception size (4096 bytes)
        Count and timestamp logging messages: disabled

    No active filter modules.

        Trap logging: level informational, 38 message lines logged

    Log Buffer (4096 bytes):

    *Mar  1 00:19:35.555: %SYS-5-CONFIG_I: Configured from console by console
    *Mar  1 00:19:52.779: %SYS-5-CONFIG_I: Configured from console by console
    *Mar  1 00:20:44.227: %PARSER-5-CFGLOG_LOGGEDCMD: User:console  logged command:logging enable
    *Mar  1 00:20:47.935: %SYS-5-CONFIG_I: Configured from console by console
    *Mar  1 00:20:56.847: %PARSER-5-CFGLOG_LOGGEDCMD: User:console  logged command:interface Ethernet0/0
    *Mar  1 00:21:00.967: %PARSER-5-CFGLOG_LOGGEDCMD: User:console  logged command:ip address 23.1.1.3 255.255.255.0
    *Mar  1 00:21:01.731: %SYS-5-CONFIG_I: Configured from console by console
    *Mar  1 00:22:12.543: %PARSER-5-CFGLOG_LOGGEDCMD: User:console  logged command:username cisco password cisco
    *Mar  1 00:22:12.543: %PARSER-5-CFGLOG_LOGGEDCMD: User:console  logged command:!config: USER TABLE MODIFIED
    *Mar  1 00:22:13.327: %SYS-5-CONFIG_I: Configured from console by console
    *Mar  1 00:22:45.299: %PARSER-5-CFGLOG_LOGGEDCMD: User:console  logged command:archive
    *Mar  1 00:22:50.751: %PARSER-5-CFGLOG_LOGGEDCMD: User:console  logged command:log config
    *Mar  1 00:23:00.003: %PARSER-5-CFGLOG_LOGGEDCMD: User:console  logged command:notify syslog
    *Mar  1 00:23:12.295: %PARSER-5-CFGLOG_LOGGEDCMD: User:console  logged command:logging enable
    *Mar  1 00:33:32.739: %PARSER-5-CFGLOG_LOGGEDCMD: User:console  logged command:notify syslog
    *Mar  1 00:33:38.299: %SYS-5-CONFIG_I: Configured from console by console


    好好学习,天天向上!
  • 相关阅读:
    vs2005发布生成自定义dll
    模拟msn消息提示(右下角)
    通过GridView导出Excel
    在ASP.NET 2.0中直接得到本页面生成的HTML代码
    asp.net实现SQL Server备份还原
    通用分页存储过程算法(.net类实现)
    超链接打开自定义的协议
    GridView技巧2
    sql语句获取本周、本月数据
    asp.net开发自定义控件
  • 原文地址:https://www.cnblogs.com/MomentsLee/p/10162865.html
Copyright © 2020-2023  润新知