CCNA Notes

200-301 Exam Prep

Progress0/67

0% complete

Practice TestsNew
1Networking Devices2Interfaces And Cables3OSI Model and TCP/IP Suite4Intro to the CLI5Ethernet LAN Switching - Part 16Ethernet LAN Switching - Part 27IPv4 Addressing - Part 18IPv4 Addressing - Part 29Switch Interfaces10The IPv4 Header11Routing Fundamentals - Part 111Static Routing - Part 212Life of a Packet13Subnetting - Part 114Subnetting - Part 215Subnetting (VLSM) - Part 316VLANs - Part 117VLANs - Part 218VLANs - Part 319DTP / VTP20Spanning Tree Protocol - Part 121Spanning Tree Protocol - Part 222Rapid Spanning Tree Protocol23Etherchannel24Dynamic Routing25RIP / EIGRP26OSPF - Part 127OSPF - Part 228OSPF - Part 329First Hop Redundancy Protocol30TCP and UDP31IPv6 - Part 132IPv6 - Part 233IPv6 - Part 334Standard Access Control List35Extended Access Control List36CDP and LLDP37NTP - Network Time Protocol38DNS - Domain Name System39DHCP - Dynamic Host Configuration Protocol40SNMP - Simple Network Management Protocol41SYSLOG42SSH - Secure Shell43FTP and TFTP44NAT (Static) - Part 145NAT (Dynamic) - Part 246QoS (Voice VLAN) - Part 147QoS (Quality of Service) - Part 248Security Fundamentals49Port Security50DHCP Snooping51Dynamic ARP Inspection52LAN Architectures53WAN Architectures54Virtualization and Cloud - Part 154Virtualization (Containers) - Part 254Virtualization (VRF) - Part 355Wireless Fundamentals56Wireless Architectures57Wireless Security58Wireless Configuration59Introduction to Network Automation60JSON, XML, and YAML61REST APIs62Software Defined Networking63Ansible, Puppet, and Chef67CCNA Complete Cheatsheet
/SYSLOG
Topic 414 min read

SYSLOG

/
Tip: Select text to highlight or pin your reading position

41. SYSLOG

SYSLOG OVERVIEW

  • SYSLOG is an INDUSTRY-STANDARD PROTOCOL for message logging
  • On NETWORK DEVICES, SYSLOG can be used to LOG EVENTS
    • Changes in INTERFACE status (UP / DOWN)
    • Changes in OSFP NEIGHBOUR STATUS (UP / DOWN)
    • System Restarts
    • etc…
  • The messages can be displayed in the CLI, saved in the DEVICE’S RAM or sent to an external SYSLOG SERVER

imageClick to enlarge

  • Logs are essential when troubleshooting issues, examining the cause of incidents, etc.
  • SYSLOG and SNMP are both used for MONITORING and TROUBLESHOOTING of DEVICES. They are complementary, but their functionalities are different

SYSLOG MESSAGE FORMAT

seq: time stamp: %facility-severity-MNEMONIC:description

<aside> 💡 These TWO FIELDS may or may not be displayed, depending on the DEVICE’S configuration </aside>

seq = A SEQUENCE NUMBER indicating the order / sequence of messages

time stamp = A TIMESTAMP indicating the time the message was generated

facility = A VALUE that indicates which process on the DEVICE generated the message

severity = A NUMBER that indicates the severity of a logged event.

Official RFC for SYSLOG severity levels

<aside> 💡 LEVELS and KEYWORDS need to be MEMORIZED for the CCNA </aside>

imageClick to enlarge

<aside> 💡 MEMORIZATION MNEMONIC : (E)very (A)wesome (C)isco (E)ngineer (W)ill (N)eed (I)ce cream (D)aily </aside>

MNEMONIC = A SHORT CODE for the message, indicating what happened

description = Detailed information about the EVENT being reported

imageClick to enlarge

SYSLOG LOGGING LOCATIONS

  • CONSOLE LINE

    • SYSLOG messages will be displayed in the CLI when connected to the DEVICE via the CONSOLE port. By DEFAULT, all messages (Level 0-7) are displayed
  • BUFFER

    • Syslog messages will be saved to RAM. By default, ALL messages (Level 0-7) are displayed
  • VTY LINES

    • SYSLOG messages will be displayed in the CLI when connected to the DEVICE via Telnet/SSH (coming in a later video). Disabled by default.
  • EXTERNAL SERVER

    • You can configure the DEVICE to send SYSLOG messages to an external server

** SYSLOG SERVERS will listen for messages on UDP PORT 514 **


SYSLOG CONFIGURATION

imageClick to enlarge

level works from the chosen level and upward toward Level 0 (EMERGENCY)

level or keyword from the Severity Table works when choosing a level

TERMINAL MONITOR

  • Even if logging monitor level is enabled, by default SYSLOG messages will not be displayed when connected via Telnet or SSH
  • For the messages to be displayed, you must use the following command:
    • R1# terminal monitor
  • The command must be used every time you connect to the DEVICE via Telnet or SSH

LOGGING SYNCHRONOUS

  • By default, logging messages displayed in the CLI while you are in the middle of typing a command will result in something like this:

imageClick to enlarge

  • To prevent this, you should use logging synchronous on the appropriate line

imageClick to enlarge

  • This will cause a new line to be printed if your typing is interrupted by a message

imageClick to enlarge

SERVICE TIMESTAMPS and SERVICE SEQUENCE-NUMBERS

imageClick to enlarge


SYSLOG versus SNMP

  • SYSLOG and SNMP are both used for MONITORING and TROUBLESHOOTING of DEVICES. They are COMPLIMENTARY, but their FUNCTIONALITIES are different.

  • SYSLOG

    • Used for MESSAGE LOGGING
    • Events that occur within the system are categorized based on FACILITY / SEVERITY and LOGGED
    • Used for SYSTEM MANAGEMENT, ANALYSIS, and TROUBLESHOOTING
    • Messages are sent from the DEVICES to the SERVER.
      • The SERVER can’t actively pull information from the DEVICES (like SNMP ‘get’) or modify variables (like SNMP ‘set’)
  • SNMP

    • Used to retrieve and organize information about the SNMP managed DEVICES
      • IP ADDRESSES
      • Current INTERFACE status
      • Temperature
      • CPU Usage
      • etc…
    • SNMP SERVERS can use Get to query the CLIENTS and Set to MODIFY variables on the CLIENTS
PreviousSNMP - Simple Network Management Protocol
NextSSH - Secure Shell