nv-l
[Top] [All Lists]

Re: [nv-l] Trap Customization

To: "Bursik, Scott {PBSG}" <Scott.Bursik@pbsg.com>
Subject: Re: [nv-l] Trap Customization
From: Paul Stroud <pstroud@bellsouth.net>
Date: Fri, 14 Mar 2003 11:25:24 -0500
Cc: nv-l@lists.tivoli.com
Delivered-to: mailing list nv-l@lists.tivoli.com
Delivery-date: Fri, 14 Mar 2003 16:27:38 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
List-help: <mailto:nv-l-help@lists.tivoli.com>
List-post: <mailto:nv-l@lists.tivoli.com>
List-subscribe: <mailto:nv-l-subscribe@lists.tivoli.com>
List-unsubscribe: <mailto:nv-l-unsubscribe@lists.tivoli.com>
Mailing-list: contact nv-l-help@lists.tivoli.com; run by ezmlm
References: <42AF0749A8EB7448A661EC423CBE76FAAAE956@pbswmu00003.corp.pep.pvt>
User-agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
Scott,
You seem to be searching for an easy fix to a complex problem. There is no easy way to do this, especially if there are a different number of arguments available for the same trap number. I would suggest maybe creating a script to extract the information you would like to be available, then generate a trap using snmptrap containing only the information you wish to pass. You could create your own enterprise and traps and use that trap for either additonal processing or display, configuring the original trap as "Do Not
Log or Display".

Paul


Bursik, Scott {PBSG} wrote:

The problem is there are more than one message. There are about 30 for the
tape library and the number of args may change. Is there a way to do it
without hard coding the variables?

Scott Bursik
Pepsico Business Solutions Group
Event Systems Management
972-334-3757
scott.bursik@pbsg.com


-----Original Message-----
From: James Shanks [mailto:jshanks@us.ibm.com] Sent: Friday, March 14, 2003 9:50 AM
To: Bursik, Scott {PBSG}; nv-l@lists.tivoli.com
Subject: Re: [nv-l] Trap Customization

Just change Tape Library Message: From: $A,OID: $e, args($#):$* to Tape Library Message: From: $A,OID: $e, args($#):$1, $2, $3, $4, $5, $6, $7

It's the $* which uses the expanded format.
James Shanks
Level 3 Support  for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group




"Bursik, Scott {PBSG}" <Scott.Bursik@pbsg.com>
03/14/2003 10:37 AM


       To:     nv-l@lists.tivoli.com
cc: Subject: [nv-l] Trap Customization



AIX 4.3.3 NetView 7.1.3


I am customizing some traps and I need a method to remove some new line
characters. Here is what I am doing:


This is in the trap customization:
Tape Library Message: From: $A,OID: $e, args($#):$*

Here is the output:

1047607736 2  Thu Mar 13 20:08:56 2003 pbsglto01.fritolay.pvt    A Tape
Library Message: From: pbsglto01.fritolay.pvt,OID: ibm3584MIBTraps, args(7):
1047607736 2  Thu Mar 13 20:08:56 2003  pbsglto01.fritolay.pvt    A  [1]
ibm3584MIBGroupMTMNLSN.ibm3584MIBObjectsMTMNLSN.0 (OctetString): 3584 L32
1311736
1047607736 2  Thu Mar 13 20:08:56 2003  pbsglto01.fritolay.pvt    A  [2]
ibm3584MIBObjectsSKASCASCQ.0 (OctetString): 04 44 00
1047607736 2  Thu Mar 13 20:08:56 2003  pbsglto01.fritolay.pvt    A  [3]
ibm3584MIBGroupHECHECQ.ibm3584MIBObjectsHECHECQ.0 (OctetString): B8 81
1047607736 2  Thu Mar 13 20:08:56 2003  pbsglto01.fritolay.pvt    A  [4]
ibm3584MIBGroupTA.ibm3584MIBObjectsTA.0 (OctetString): 02
1047607736 2  Thu Mar 13 20:08:56 2003  pbsglto01.fritolay.pvt    A  [5]
ibm3584MIBGroupURC.ibm3584MIBObjectsURC.0 (OctetString): CD31
1047607736 2  Thu Mar 13 20:08:56 2003  pbsglto01.fritolay.pvt    A  [6]
ibm3584MIBGroupFFFD.ibm3584MIBObjectsFFFD.0 (OctetString): 06 01
1047607736 2  Thu Mar 13 20:08:56 2003  pbsglto01.fritolay.pvt    A  [7]
ibm3584MIBGroupTD.ibm3584MIBObjectsTD.0 (OctetString): There is a problem
with the library mechanism. If the problem persists, call the library
supplier helpline.

I am looking to have all of the args on one line, not separate lines.
Actually, if I could get the values for the args and not the descriptions
that would help a lot. Here is how I would like it to look:


1047607736 2  Thu Mar 13 20:08:56 2003 pbsglto01.fritolay.pvt    A Tape
Library Message: From: pbsglto01.fritolay.pvt,OID: ibm3584MIBTraps, args(7): 3584 L32 1311736, 04 44 00, B8 81, 02, CD31, 06 01, There is a problem with
the library mechanism. If the problem persists, call the library supplier
helpline.

Is this possible?

Thank You!

Scott Bursik
Pepsico Business Solutions Group
Event Systems Management
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)




---------------------------------------------------------------------
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)





---------------------------------------------------------------------
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)


<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web