CANOGA PERKINS CanogaOS Configuration Guide User Manual

Page 347

Advertising
background image

CanogaOS Configuration Guide

Proprietary & Confidential Canoga Perkins Metro Ethernet Switches

Page 347 of 350


DUT#terminal monitor

Enable logging on terminal lines.

DUT#configure terminal

Enter global configuration mode.

DUT(config)#logging file disable

Disable logging to local file.

DUT(config)#logging server enable

Enable remote syslog server.

DUT(config)#logging alarm-trap enable

Enable logging alarm message to SNMP trap receivers.

DUT(config)#exit

Exit the Configure mode

DUT#show logging

Verify logging configuration.

48.1.3 Setting the Message Display Destination Device
If message logging is enabled, you can send messages to specific locations.
To configure message display destination device, follow these steps:

DUT#terminal monitor

Enable logging on current monitor

DUT#configure terminal

Enter global configuration mode.

DUT(config)#logging buffer 800

Log messages to an internal buffer. The default buffer
size is 4096.

DUT(config)#logging server address 192.168.1.1

Specify the IP address of the host to be used as the
syslog server.

DUT#end

Return to privileged EXEC mode.

DUT#show logging

Verify logging configuration.

The logging buffered global configuration command copies logging messages to an internal
buffer. The buffer is circular, so newer messages overwrite older messages after the buffer is full.
To display the messages that are logged in the buffer, use the show logging buffer privileged
EXEC command. The first message displayed is the oldest message in the buffer. To clear the
contents of the buffer, use the clear logging buffer global configuration command.

48.1.4 Configuring Message Timestamps
By default, log messages timestamp is BSD style.
To configure message timestamps, follow these steps:

DUT#configure terminal

Enter global configuration mode.

DUT(config)#logging timestamp date

Change message timestamp to date

DUT(config)#end

Return to privileged EXEC mode.

DUT#show logging

Verify logging configuration

Advertising