Cisco device logs sent to the log log server

Source: Internet
Author: User
Tags log log system log

En

Conf t

Clock timezone gmt+8 #设置北京时间

Exit

Clock set HH:MM:SS Day MONTH #设置当前时间


Service Timestamps Debug Uptime #开启debug调试模式


Service Timestamps log datetime localtime #开启log日志增加时间戳


Log on #启动log功能


Loggin 192.168.1.100 #配置日志发送到192.168.1.100 on the host


Loggin facility Local2 #将记录时间类型定义为local2


Loggin Trap 7 #cisco device alarm level is divided into 0---7 levels, 0 levels highest, 7 level lowest


Logging Source-inter loopback0 #指定log日志记录内容发送的源地址为Loopback0的IP地址


Service Timestamps log datetime localtime #发送log日志时发送时间戳



End


wr


--------------------------------------

Severity level of log messages

Parameter level system Log description description

Emergencies 0 Log_emerg System not available

Alerts 1 Log_alert is required for immediate operation under the port

Critical 2 A critical state exists on the Log_crit router

Errors 3 An error state exists on the Log_err router

Warnings 4 A warning state exists on the log_warning router

Notifications 5 a common but important event occurred on the Log_notice router

Informational 6 An informational event occurred on the Log_info router

Debugging 7 Log_debug output from the DEBUG command




Configuration on the switch

C3560#config T
C3560 (config) #logging on
C3560 (config) #logging the IP address of the 10.86.20.10//log server
C3560 (config) #logging facility local0//facility identity
C3560 (config) #logging trap 3 (log log)//logging Level
C3560 (config) #logging source-interface G0/3//Source IP address for log emit
C3560 (config) #service timestamps debug datetime localtime//log record timestamp settings, which can be configured as needed
C3560 (config) #exit
View C3560#show Logging


This article from the "Moon Empty" blog, please be sure to keep this source http://13001500368.blog.51cto.com/2905946/1875780

Cisco device logs sent to the log log server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.