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: jeff.ctr.vandenbussche@faa.gov
Date: Fri, 14 Mar 2003 11:34:04 -0500
Cc: nv-l@lists.tivoli.com
Delivered-to: mailing list nv-l@lists.tivoli.com
Delivery-date: Fri, 14 Mar 2003 17:44:55 +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
Scott,

What about setting up the traps to be Log Only, and having the trap call a
script.  The script could then count the # of args, and then reissue a trap
back to Netview in whatever format you need (proper text, # of args, etc).
I recently had to do this for a trap that was being sent with several args,
that I had to split up and send a separate trap (and status) for each of
the args that Netview received.

Jeff





                                                                                
                           
                      "Bursik, Scott                                            
                           
                      {PBSG}"                  To:       nv-l@lists.tivoli.com  
                           
                      <Scott.Bursik@pbs        cc:                              
                           
                      g.com>                   Subject:  RE: [nv-l] Trap 
Customization                     
                                                                                
                           
                      03/14/03 10:54 AM                                         
                           
                                                                                
                           
                                                                                
                           




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