9872 Syslog and Cisco - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old February 17th, 2012, 19:03
erohal erohal is offline
Junior Member
 
Join Date: Feb 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Syslog and Cisco

I reconfigured syslog on my unix machine and configured a switch. It is on local LAN. Somehow, the status messages are not logging to the file but on the console of the syslog server only.
The syslog.conf is
Code:
#	Consult the syslog.conf(5) manpage.
*.err;kern.warning;auth.notice;mail.crit		/dev/console
*.notice;local7.none;authpriv.none;kern.debug;lpr.info;mail.crit;news.err	/var/log/messages
security.*					/var/log/security
auth.info;authpriv.info				/var/log/auth.log
mail.info					/var/log/maillog
lpr.info					/var/log/lpd-errs
ftp.info					/var/log/xferlog
cron.*						/var/log/cron
*.=debug					/var/log/debug.log
*.emerg						*
# uncomment this to log all writes to /dev/console to /var/log/console.log
#console.info					/var/log/console.log
# uncomment this to enable logging of all log messages to /var/log/all.log
# touch /var/log/all.log and chmod it to mode 600 before it will work
#*.*						/var/log/all.log
# uncomment this to enable logging to a remote loghost named loghost
#*.*						@loghost
# uncomment these if you're running inn
# news.crit					/var/log/news/news.crit
# news.err					/var/log/news/news.err
# news.notice					/var/log/news/news.notice
!ppp
*.*						/var/log/ppp.log
local7.*					/var/log/syslog/cisco.log
*.*
!*
And the rc.conf is:
Code:
# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter="10.10.10.1"
hostname="test-bed"
ifconfig_em0="inet 10.10.10.11  netmask 255.255.255.128"
inetd_enable="YES"
syslogd_flags="-a 10.10.10.0/24:*"
The intendent file for logging is /var/log/syslog/cisco.log
Code:
total 4
drwxr-xr-x  2 root  wheel  512 Feb 15 13:51 .
drwxr-xr-x  3 root  wheel  512 Feb 16 03:04 ..
-rw-rw-rw-  1 root  wheel    0 Feb 15 13:51 cisco.log
Could you please tell me where I am making a mistake.
Thank you.

Last edited by DutchDaemon; February 17th, 2012 at 19:23.
Reply With Quote
  #2  
Old February 17th, 2012, 19:28
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,820
Thanks: 30
Thanked 1,883 Times in 1,329 Posts
Default

Run syslogd in debug mode on the console to see what actually gets received and processed. Run tcpdump on udp/514 to see if anything arrives.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco VS HP VS Alcatel eng_ahmedas System Hardware 3 May 23rd, 2011 14:54
[Solved] FreeBSD 7 -> CISCO switches are in trunk mode spartacus Networking 2 April 2nd, 2011 08:41
VPNC - Cisco IP Bad Keyword BarryCarlyon Networking 2 March 1st, 2011 12:45
[Solved] new to wireless. With a cisco syslink wusb600n. ericturgeon System Hardware 12 September 24th, 2010 17:26
DOT1Q between FBDS7.2 (on vmware) and Cisco 3750 nikorun Networking 6 September 10th, 2009 08:27


All times are GMT +1. The time now is 17:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0