Sponsored Content
Operating Systems AIX What's your favorite AIX Error? Post 302811367 by HayekSplosives1 on Thursday 23rd of May 2013 01:05:03 PM
Old 05-23-2013
My crude test would go something like this:

fill fs
see alert hit errpt
delete file I used to fill fs
fill fs again
no error hits errpt

Code:
#cd to the unlucky fs
cd /opt

#fill fs
dd if=/dev/zero of=./blah bs=1M

#verify error hit errpt
errpt -a | more

#del file
rm blah

#fill fs again
dd if=/dev/zero of=./blah bs=1M

#verify error hit errpt
errpt -a | more

Only one JFS2_FULL message in errpt for /opt, no entry for the second filling.


I redirect errpt to syslog using an additional to the ODM with this bad boy:
Code:
errnotify:
en_pid = 0
en_name = "errptToSyslog"
en_persistenceflg = 1
en_method = "/usr/bin/logger Error Log: `/usr/bin/errpt -l $1 | /usr/bin/grep -v TIMESTAMP` "

and add the appropriate syslog.conf entries to ensure I have the forwarded logs going the files/server I want and get them rolling (touch the files,
Code:
stopsrc -s syslogd; startsrc -a -n -s syslogd

).

I think the process goes:
*Error Hits* -> errpt entry -> errpt sends to syslog

Sorry if I'm throwing info out there, I figured I'd share what I'm doing in its completeness.
 

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

What's your favorite Xscreensaver?

Out of the 100s of screensavers in xscreensaver, what is your favorite? I think mine is definitely juggle. I can sit and watch that juggler forever. I haven't looked into the code, but it must be amazingly complex to deal with all that's going on. From the random throwing pattern, to the arm... (0 Replies)
Discussion started by: tjlst15
0 Replies

2. What is on Your Mind?

Where Is Your Favorite Continent?

Where is your favorite continent to enjoy life? (14 Replies)
Discussion started by: Neo
14 Replies

3. UNIX and Linux Applications

Favorite Firefox tweaks

Can everyone please list there favorite firefox tweaks? These are my favorite tweaks. Config.trim_on_minimize true Allow Windows to swap out memory when the program is minimized. false Prevent Windows from swapping out memory when the program is minimized. (Default) Enter... (0 Replies)
Discussion started by: cokedude
0 Replies

4. Web Development

What is Your Favorite Web Browser?

OK, please vote on your favorite web browser and comment why! Only currently supported browers please! Thanks. PS: I am a big FireFox fan. FireFox add-ons rock! (61 Replies)
Discussion started by: Neo
61 Replies

5. What is on Your Mind?

What is your favorite TED talk?

The TED talk (Technology Entertainment Design) non-profit initiative started many years ago as a platform for sharing knowledge to a wide audience. Since 2006 the talks are available online under a Creative Commons license. There are now 1000+ TED talks from a wide range of subjects and I wanted to... (3 Replies)
Discussion started by: figaro
3 Replies

6. UNIX for Dummies Questions & Answers

What is your favorite terminal?

And how does one executes a command there? Mine is: lxterminal -e ./script.sh (23 Replies)
Discussion started by: sea
23 Replies

7. Open Source

What is your favorite Linux distro?

What is your favorite Linux distro? and possibly why? Personally, I have Fedora 3 on my computer. I have used Ubuntu and Slackware, too. But I think I liked Ubuntu more, maybe because of its speed and easy installation of packages. (192 Replies)
Discussion started by: milhan
192 Replies
LOGGER(1)						    BSD General Commands Manual 						 LOGGER(1)

NAME
logger -- make entries in the system log SYNOPSIS
logger [-is] [-f file] [-p pri] [-t tag] [message ...] DESCRIPTION
Logger provides a shell command interface to the syslog(3) system log module. Options: -i Log the process id of the logger process with each line. -s Log the message to standard error, as well as the system log. -f file Log the specified file. -p pri Enter the message with the specified priority. The priority may be specified numerically or as a ``facility.level'' pair. For example, ``-p local3.info'' logs the message(s) as informational level in the local3 facility. The default is ``user.notice.'' -t tag Mark every line in the log with the specified tag. message Write the message to log; if not specified, and the -f flag is not provided, standard input is logged. The logger utility exits 0 on success, and >0 if an error occurs. EXAMPLES
logger System rebooted logger -p local0.notice -t HOSTIDM -f /dev/idmc SEE ALSO
syslog(3), syslogd(8) STANDARDS
The logger utility conforms to IEEE Std 1003.2-1992 (``POSIX.2''). 4.3 Berkeley Distribution June 6, 1993 4.3 Berkeley Distribution
All times are GMT -4. The time now is 04:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy