Chapter 36 Logs

36.1.2.1 System Log Command Examples

The following command displays the current status of the system log.

Router# configure terminal

 

 

Router(config)# show logging status system-log

 

 

512 events logged

: yes

 

 

suppression active

 

 

suppression interval:

10

 

 

category settings

:

: normal , forward-web-sites

: no

,

content-filter

 

blocked-web-sites

: normal , user

: normal ,

myZyXEL.com

 

: normal , zysh

: normal ,

idp

 

: normal , app-patrol

: normal ,

ike

 

: normal , ipsec

: normal ,

firewall

 

: normal , sessions-limit

: normal ,

policy-route

 

: normal , built-in-service

: normal ,

system

 

: normal , connectivity-check: normal ,

device-ha

 

: normal , routing-protocol

: normal ,

nat

 

: normal , pki

: normal ,

interface

 

: normal , interface-statistics: no

,

account

 

: normal , port-grouping

: normal ,

force-auth

 

: normal , l2tp-over-ipsec

: normal ,

anti-virus

 

: normal , white-list

: normal ,

black-list

 

: normal , ssl-vpn

: normal ,

cnm

 

: normal , traffic-log

: no

,

file-manage

 

: normal , dial-in

: normal ,

adp

 

: normal , default

: all

,

36.1.3 Debug Log Commands

This table lists the commands for the debug log settings.

Table 140 logging Commands: Debug Log Settings

COMMAND

DESCRIPTION

show logging debug status

Displays the current settings for the debug log.

show logging debug entries [priority pri]

Displays the selected entries in the debug log.

[category module_name] [srcip ip] [dstip ip]

pri: alert crit debug emerg error info notice

[service service_name] [begin <1..1024> end

warn

<1..1024>] [keyword keyword]

keyword: You can use alphanumeric and ()+/

 

:=?!*#@$_%- characters, and it can be up to 63

 

characters long. This searches the message,

 

source, destination, and notes fields.

 

 

show logging debug entries field field [begin

Displays the selected fields in the debug log.

<1..1024> end <1..1024>]

field: time msg src dst note pri cat all

[no] logging debug suppression

Enables log consolidation in the debug log. The no

 

command disables log consolidation in the debug

 

log.

 

 

[no] logging debug suppression interval

Sets the log consolidation interval for the debug

<10..600>

log. The no command sets the interval to ten.

clear logging debug buffer

Clears the debug log.

 

243

NXC CLI Reference Guide