Outputting log information to the console
Network requirements
Configure the device to send ARP and IP log information that has a severity level of at least informational to the console.
Figure 21: Network diagram
Configuration procedure
# Enable the information center.
<Sysname> system-view [Sysname] info-center enable
# Use channel console to output log information to the console. (This step is optional because it is the default setting.)
[Sysname] info-center console channel console
# To avoid outputting unnecessary information, disable the output of log, trap, and debug information of all modules on channel console.
[Sysname] info-center source default channel console debug state off log state off trap state off
# Configure an output rule to output to the console ARP and IP log information that has a severity level of at least informational. (The source modules that are allowed to output information depend on the switch model.)
[Sysname] info-center source arp channel console log level informational state on [Sysname] info-center source ip channel console log level informational state on [Sysname] quit
# Enable the display of log information on a terminal. (Optional, this function is enabled by default.)
<Sysname> terminal monitor Info: Current terminal monitor is on. <Sysname> terminal logging Info: Current terminal logging is on.
Now, if the ARP and IP modules generate log information, the information center automatically sends the log information to the console.