qacafe - ip test solutions
Knowledge Base > Basic Configuration > How to I configure CDRouter to display syslog messages?

How to I configure CDRouter to display syslog messages?

CDRouter can display syslog messages using both the -decode option and the -pt (or -ptc) option. To create a syslog host, configure a staticHost entry for the syslog messages receiver that is configured on the device.

For example, if the device was configured to send syslog messages to 192.168.1.254, the following would be added to your local.conf file:

testvar staticHost 192.168.1.254

CDRouter will answer any ARP requests for staticHost entries, allowing the syslog message to be sent. With the -decode option, the syslog message will be displayed in the packet decode. With the -pt option, the syslog message will be logged.

NOTE: The IP address for a staticHost must be on the same subnet as the LAN configuration (testvar lanIp).

PACKET-IN(eth1): received eth proto type 0800
ETH: ---- Ethernet Packet (length = 124) ----
ETH: 
ETH: Source                     = 00:0c:41:d5:da:f3
ETH: Destination                = 00:c0:95:e0:40:3c
ETH: Type                       = IPv4 (0x0800)
ETH:
IPv4: ---- IPv4 Header ----
IPv4: 
IPv4: Version                   = 4
IPv4: Header Length             = 5
IPv4: TOS byte                  = 0x00
IPv4: Total Length              = 110
IPv4: ID                        = 0x0000
IPv4: Flags/Offset              = 0x4000
IPv4:   Don't Fragment          = 1
IPv4:   More Fragments          = 0
IPv4:   Offset                  = 0
IPv4: TTL                       = 64
IPv4: Protocol                  = UDP (0x11)
IPv4: Checksum                  = 0xb42f
IPv4: Src                       = 192.168.2.1
IPv4: Dest                      = 192.168.2.254
IPv4:
UDP: ---- UDP Packet ----
UDP: 
UDP: Source Port                = 1026 
UDP: Destination Port           = 514 (SYSLOG)
UDP: Length                     = 90
UDP: Checksum                   = 0xb85b
UDP:
SYSLOG: ---- SYSLOG Packet ----
SYSLOG: 
SYSLOG: Facility                = 3
SYSLOG: Severity                = INFORMATION (INFORMATION)
SYSLOG: <30>Jan  1 00:00:57 2003 router CONF: Configuration started (Mode: Activate)
SYSLOG:
SYSLOG: ---- End SYSLOG Packet ----