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 AT us DOT ibm.c
om> To
Sent by: nv-l AT lists.us.ibm DOT 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 AT firstam DOT com>"Clinkscales, Charles"
<cclinkscales AT firstam DOT 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 AT lists.us.ibm DOT
com
01/07/2005 04:09 '"
PM <nv-l AT lists.us.ibm DOT
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
pic10637.gif
Description: GIF image
pic20693.gif
Description: GIF image
pic29417.gif
Description: GIF image
pic30937.gif
Description: GIF image
pic24313.gif
Description: GIF image
pic15541.gif
Description: GIF image
pic02528.gif
Description: GIF image
pic23019.gif
Description: GIF image
pic21618.gif
Description: GIF image
|