| To: | nv-l@lists.us.ibm.com |
|---|---|
| Subject: | Re: [nv-l] Specific traps to a different log |
| From: | Francois Le Hir <flehir@ca.ibm.com> |
| Date: | Fri, 7 Jan 2005 16:37:17 -0500 |
| Delivery-date: | Fri, 07 Jan 2005 21:37:55 +0000 |
| Envelope-to: | nv-l-archive@lists.skills-1st.co.uk |
| In-reply-to: | <OFE2FBED8B.968D075B-ON87256F82.007572D9-85256F82.0075D016@us.ibm.com> |
| Reply-to: | nv-l@lists.us.ibm.com |
| Sender: | owner-nv-l@lists.us.ibm.com |
If you want more information about the traps than what is available in
trapd.log (and you don't want to change the message of the events) you can
use the "command for automatic action" and look at all the env variables
that are made available to the script you run. Running a script with just
the set command redirected to a file will show you what is available,
Salutations, / Regards,
Francois Le Hir
Network Projects & Consulting Services
IBM Global Services
Phone: (514) 964 2145
James Shanks
<jshanks@us.ibm.c
om> To
Sent by: nv-l@lists.us.ibm.com
owner-nv-l@lists. cc
us.ibm.com
Subject
Re: [nv-l] Specific traps to a
01/07/2005 04:26 different log
PM
Please respond to
nv-l
I think you'd be better off just post -processing the trapd.log. grep for
the records you want and log 'em
grep <unique_trap_string> /usr/OV/log/trapd.log > my.trap.log
You see trapd uses undocumented internal routines to read the trapd.conf
file and merge that with the trap variables to produce the text you see in
the trapd.log. You'd have to write your own script to do that.
Post-processing is much better. It keeps the original log intact and let's
you make another at your leisure., a lot less overhead
James Shanks
Level 3 Support for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group
(Embedded image moved to file: pic10637.gif)Inactive hide details for
"Clinkscales, Charles" <cclinkscales@firstam.com>"Clinkscales, Charles"
<cclinkscales@firstam.com>
"Clinkscales,
Charles"
<cclinkscales@fi
rstam.com> (Embedded image moved to file:
Sent by: pic20693.gif)
owner-nv-l@lists To
.us.ibm.com (Embedded image moved
to file: pic29417.gif)
"'nv-l@lists.us.ibm.com
01/07/2005 04:09 '"
PM <nv-l@lists.us.ibm.com>
(Embedded image moved to file:
pic30937.gif)
Please respond to cc
nv-l (Embedded image moved
to file: pic24313.gif)
(Embedded image moved to file:
pic15541.gif)
Subject
(Embedded image moved
to file: pic02528.gif)
[nv-l] Specific traps
to a different log
(Embedded image moved to file:
pic23019.gif)
(Embedded image moved to
file: pic21618.gif)
Hello All,
I am running Netview 7.1.4 fixpatch1 on AIX 5.1
I would like to log a specific trap into a different file besides
trapd.log. I think I can use the "Command for Automatic Action" option
within the trap configuration. But what is the command I should use? I
would like for the log file to contain all of the same information that is
written to trapd.log.
Thanks for your help,
Charlie Clinkscales
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [nv-l] Specific traps to a different log, James Shanks |
|---|---|
| Next by Date: | [nv-l] About NetView, Daniela León |
| Previous by Thread: | Re: [nv-l] Specific traps to a different log, James Shanks |
| Next by Thread: | [nv-l] About NetView, Daniela León |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Archive operated by Skills 1st Ltd
See also: The NetView Web