Of course there is. It all depends upon what you have coded as the Event
Log Message. From the way this is formatted, I would guess that it says
something like
$E $G $S $# args: $*
which, if you read he man page on trapd.conf, says to display
$E -- the enterprise name (ibm3584MIBTraps)
$G -- the generic traps id (6)
$S -- the specific trap id (2)
$# -- the number of trap variables (8)
"args :" this is just literal text added to make things readable
$* -- list all trap variables in order preceded by their MIB OIDs, for
example [1] private.enterprises.ibm.ibmProd.182.1.2.11.0.0 (OctetString): "THIS
IS
A TEST"
If you don't want to see all the variables, then you can just code entries
for the ones you want, using xnmtrap to edit trapd.conf.
Pick the ones you want, 1 - 8. Do you just want to see the contents? Then
code them as $1, $2, $3 ... $8.
Want to see the MIB OIDs too, as above? Then code them as $-1, $-2, $-3,
... $-8. Just want them preceded by the variable number in square
brackets like this [1]? Then code them as $+1, $+2, $+3, ... $+8 as the
man page says. The ones you don't include won't be shown in the message.
You can wrap as much or as little fixed literal text around them as you
want, to make a readable message. From the look of this, my guess is that
just
$8
would be enough.
Hope this helps
James Shanks
Level 3 Support for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group
"Bursik, Scott {PBSG}" <Scott.Bursik@pbsg.com>
11/05/2002 03:15 PM
To: "'nv-l@lists.tivoli.com'" <nv-l@lists.tivoli.com>
cc:
Subject: [nv-l] Display Trap Messages
NetView 6.0.3 AIX 4.3.3
I have a device that is sending traps to NetView and the trap messages have 7
args. Which result in a 10 line message in the trapd.log. I am interested in
doing
some other things with these messages. Is there a way to remove the new lines
in the Event Log Message section of
the Modify Event window so the trap comes through as one line?
Here is a sample from the trapd.log
1036525041 7 Tue Nov 05 13:37:21 2002 PBSWUL00044.fritolay.pvt Q
ibm3584MIBTraps 6 2 8 args: [1]
private.enterprises.ibm.ibmProd.182.1.2.11.0.0 (OctetString): "THIS IS A
TEST"
1036525041 7 Tue Nov 05 13:37:21 2002 PBSWUL00044.fritolay.pvt Q [2]
private.enterprises.ibm.ibmProd.182.1.2.11.0.0 (OctetString): "3584 L32
1311736"
1036525041 7 Tue Nov 05 13:37:21 2002 PBSWUL00044.fritolay.pvt Q [3]
private.enterprises.ibm.ibmProd.182.1.2.21.0.0 (OctetString): "04 44 00"
1036525041 7 Tue Nov 05 13:37:21 2002 PBSWUL00044.fritolay.pvt Q [4]
private.enterprises.ibm.ibmProd.182.1.2.31.0.0 (OctetString): "40 88"
1036525041 7 Tue Nov 05 13:37:21 2002 PBSWUL00044.fritolay.pvt Q [5]
private.enterprises.ibm.ibmProd.182.1.2.41.0.0 (OctetString): "02"
1036525041 7 Tue Nov 05 13:37:21 2002 PBSWUL00044.fritolay.pvt Q [6]
private.enterprises.ibm.ibmProd.182.1.2.51.0.0 (OctetString): "B308"
1036525041 7 Tue Nov 05 13:37:21 2002 PBSWUL00044.fritolay.pvt Q [7]
private.enterprises.ibm.ibmProd.182.1.2.61.0.0 (OctetString): "00 00"
1036525041 7 Tue Nov 05 13:37:21 2002 PBSWUL00044.fritolay.pvt Q [8]
private.enterprises.ibm.ibmProd.182.1.2.71.0.0 (OctetString): "There is a
problem with the library mechanism. If the problem persists, call the
library supplier helpline."
Thank you,
Scott Bursik
Event Systems Management
Pepsico Business Solutions Group
(972) 334-3757
scott.bursik@pbsg.com---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
|