The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
assitance with sed (repeating patterns) metalwarrior UNIX for Dummies Questions & Answers 7 02-02-2008 05:14 AM
need assistance: sed and repeating patterns metalwarrior UNIX for Advanced & Expert Users 1 02-02-2008 05:00 AM
Repeating variables in the code mahalakshmi Shell Programming and Scripting 1 02-08-2007 07:33 AM
Repeating commands in a script Dave2874 Shell Programming and Scripting 4 03-14-2005 10:34 AM
repeating kernel message progressdll UNIX for Advanced & Expert Users 2 07-29-2002 05:18 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-24-2005
antalexi's Avatar
antalexi antalexi is offline
Registered User
  
 

Join Date: May 2004
Location: Southern California
Posts: 53
Filter out repeating messages

The unix servers at my site are constantly receiving "community check" messages from a server located on our WAN, in another city. Here is the example:

Jan 23 15:41:08 eagles/usr/lib/snmp/snmpdx: [ID 686298 daemon.error] community_check();bad community from rams.nw.sw.ournetwork.com

How can I filter out these messages so that /var/adm/messages doesn't fill up with them?

Thanks
  #2 (permalink)  
Old 01-28-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Check the man pages for:
syslog.conf
syslogd

Also look at /usr/lib/newsyslog - for moving log files before they get too big.

As far as filtering out, you can't - not without losing other errors that may not be showing up now, but you would want to see if they did show up. The syslog isn't configured to cut out one specific item. Use (e)grep -v when viewing the file to 'remove' the error.
  #3 (permalink)  
Old 01-31-2005
antalexi's Avatar
antalexi antalexi is offline
Registered User
  
 

Join Date: May 2004
Location: Southern California
Posts: 53
The solution for this particular situation was to use egrep -v to filter out the unwanted messages (per your suggestion). I then went through the filtered messages file to check for any other unwanted messages (there were none). I deleted the original messages file, touched a new messages file and I'm done! The size of the new filtered messages file is only 10% of the HUGE original file.

Thanks RTM, you is my guru.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0