A.7 Debugging
The aim is to audit events as they occur. We will be interested in the following two types:
- Events that occurred during the running of the system. That includes, for example, an interface switched into the Up or Down mode, whether the router configuration has been changed, etc.
- Events defined by the administrator. The administrator defines a trap, such as writing a report when a protocol data packet has been sent.
First, we have to specify in the configuration where the individual event records will be written. This can be done by entering the logging command in the configuration file:
Router# configure terminal Router(config)# logging console 7
This command will print out the output of event records onto the console. The number 7
specifies the most detailed statement. Lower numbers indicate less detailed statements, with 0
being the least detailed. If we also want to have traps recorded, then we add another command (which is important especially for recording events via a network...