%Schriftgröße, Layout, Papierformat, Art des Dokumentes
\documentclass[10pt,oneside,a4paper,headsepline,footsepline]{scrartcl}

%Einstellungen der Seitenränder
\usepackage[left=2cm,right=2cm,top=1.5cm,bottom=1.5cm,includeheadfoot]{geometry}

%neue Rechtschreibung
\usepackage[ngerman]{babel}

%Umlaute ermöglichen
\usepackage[utf8]{inputenc}

%Gesamtseitenzahl
\usepackage{lastpage}

% Kopf- und Fußzeile
% \usepackage[automark]{scrpage2} deprecated
\usepackage[automark]{scrlayer-scrpage}

%Quellcode-Listings
\usepackage{listings}

%Hyperlinks
\usepackage{hyperref}

% \text{}
\usepackage{amsmath}

%multi-row
\usepackage{multirow}

\usepackage{array}

%Kopfzeile
\ihead{CCNA v7.0 Enterprise Networking, Security, and Automation}
\chead{}
\ohead{kohnlehome.de/netz/CCNA-3-10.pdf}
% \setheadsepline{0.5pt} DEPRECATED

%Fußzeile
% \setfootsepline{0.5pt} DEPRECATED
\ifoot{Franz Kohnle}
\cfoot{Seite \thepage\ von  \pageref{LastPage}}
\ofoot{\today}

\pagestyle{scrheadings}

\begin{document}

% Überschrift 
\begin{center}
    \LARGE % Schriftgröße
    \bfseries % Fettdruck
    \sffamily % Serifenlose Schrift
    10 Network Management
\end{center}

\section*{10.1 Device Discovery with CDP (Cisco Discovery Protocol)}
\subsection*{CDP an- und ausschalten}
\begin{verbatim}
ROUTER(config)# no cdp run
ROUTER(config)# cdp run

SWITCH(config-if)# cdp enable
\end{verbatim}

\subsection*{Informationen über CDP}
\begin{verbatim}
ROUTER# show cdp
ROUTER# show cdp interface
\end{verbatim}

\subsection*{Informationen über benachbarte Cisco-Geräte}
\begin{verbatim}
ROUTER# show cdp neighbors
ROUTER# show cdp neighbors detail
\end{verbatim}

\begin{itemize}
    \item Device ID (Nachbar)
    \item Local Intrfce (dieses Gerät)
    \item Holdtme
    \item Capability (Nachbar)
    \item Platform (Nachbar)
    \item Port ID (Nachbar)
\end{itemize}

\section*{10.2 Device Discovery with LLDP (Link Layer Discovery Protocol)}
\subsection*{LLDP an- und ausschalten}
\begin{verbatim}
ROUTER(config)# no lldp run
ROUTER(config)# lldp run

SWITCH(config-if)# lldp transmit
SWITCH(config-if)# lldp receive
\end{verbatim}

\subsection*{Informationen über LLDP}
\begin{verbatim}
ROUTER# show lldp
\end{verbatim}

\subsection*{Informationen über benachbarte Geräte}
\begin{verbatim}
ROUTER# show lldp neighbors
ROUTER# show lldp neighbors detail
\end{verbatim}

\begin{itemize}
    \item Device ID (Nachbar)
    \item Local Intrfce (dieses Gerät)
    \item Holdtme
    \item Capability (Nachbar)
    \item Port ID (Nachbar)
\end{itemize}


\section*{10.3 NTP (Network Time Protocol)}
\begin{itemize}
    \item Stratum 0: atomic and GPS clocks (non-network high-precision) 
    \item Stratum 1: directly connected to the authoritative time sources
    \item Stratum 2 and Lower: connected to network connections
    \item \dots
    \item Stratum 15: max hop count
    \item Stratum 16: unsynchronized
\end{itemize}

\subsection*{Configuration}
\begin{verbatim}
ROUTER# show clock detail

ROUTER(config)# ntp server 209.165.200.225

ROUTER# show ntp associations
ROUTER# show ntp status
\end{verbatim}

\section*{10.4 SNMP (Simple Network Management Protocol)}
nur Theorie

\section*{10.5 Syslog}
\subsection*{Serverport} UDP 514

\subsection*{Router/Switch als Syslog-Client}
\texttt{Router(config)\# logging host 1.2.3.4  } \# IP-Adresse des Servers\\ 
\texttt{Router(config)\# logging trap debugging } \# Alles mit Level $\le 7$ mitloggen\\
\texttt{Router(config)\# service timestamps log datetime msec } \# Zeit mitloggen

\subsection*{Severity Level (Schwere des Fehlers)}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{c|l|l|l|c}
Level & Name & Erklärung\\ \hline\hline
0 & Emergencies & System Unusable \\ \hline
1 & Alerts & Immediate Action Needed \\ \hline
2 & Critical & Critical Condition \\ \hline
3 & Errors & Error Condition \\ \hline
4 & Warnings & Warning Condition \\ \hline
5 & Notifications & Normal, but Significant Condition \\ \hline
6 & Information & Informational Message \\ \hline
7 & Debugging & Debugging Message \\ \hline
\end{tabular}

\subsection*{Message Format}
\begin{verbatim}
*Mär 01, 00:37:41.3737: %SYS-5-CONFIG_I: Configured from console by console

Mär 01, 00:37:41.3737               Timestamp
SYS                                 Sylog reporting facility
5                                   Severity level
CONFIG_I                            Mnemonic
Configured from console by console  Description
\end{verbatim}


\section*{10.6 Router and Switch File Maintenance}
\subsection*{Befehle zum Dateisystem}
\begin{verbatim}
ROUTER# show file systems
ROUTER# dir
ROUTER# cd nvram: 
ROUTER# pwd
\end{verbatim}

\subsection*{Backup and Restore Configuration in Textfiles}

\subsection*{Backup and Restore Configuration with TFTP}
\begin{verbatim}
ROUTER# copy running-config tftp
ROUTER# copy tftp running-config
\end{verbatim}

\subsection*{USB Ports on a Cisco Router}
\begin{verbatim}
ROUTER# dir usbflash0: 
ROUTER# copy running-config usbflash0: 
ROUTER# copy usbflash0:/... running-config 
\end{verbatim}

\subsection*{Password Recovery Procedures}
\begin{enumerate}
    \item Enter the ROMMON mode
    \item Change the configuration register
    \item Copy the startup-config to the running-config
    \item Change the password
    \item Save the running-config as the new startup-config
    \item Reload the device
\end{enumerate}

\section*{10.7 IOS Image Management}
\subsection*{IOS Image on TFTP-Server}
\begin{verbatim}
ROUTER# show flash0: 
ROUTER# copy flash: tftp: 
ROUTER# copy copy tftp: flash: 
\end{verbatim}

\subsection*{The boot system Command}
\begin{verbatim}
ROUTER(config)# boot system flash0:isr4200-universalk9_ias.16.09.04.SPA.bin
ROUTER# copy running-config startup-config
ROUTER# reload
ROUTER# show version
\end{verbatim}

\end{document}
