nv-l
[Top] [All Lists]

Re: [nv-l] Formatting trap message

To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] Formatting trap message
From: James Shanks <jshanks@us.ibm.com>
Date: Wed, 29 Dec 2004 14:12:32 -0500
Delivery-date: Wed, 29 Dec 2004 19:11:57 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
In-reply-to: <001601c4edd6$77c240a0$2331eac8@Lazarus>
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com

I don't quite see you problem, so perhaps you should explain what you are trying to ultimately do, and whether this is on Windows or UNIX.

Is what you put in bold actually part of the trap as shown in trapd.log?
If so, then varbind 5 contains all that information, so simply formatting the message as $5 should display it as that same string.

But there is no way to get trapd to do more with it the variable than just that. The data type is "octet string" and that's all that trapd will do with it, display the string. There is no mechanism to substring the varbind and display just part of it in the log or the events window.

Of course, if what you ultimately want to do is send parts of the staring in an pager alert, or e-mail message, then you would be using a ruleset or command for automatic action, and those offer the possibility of extracting the sub-elements of the string for further processing.


James Shanks
Level 3 Support for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group
Inactive hide details for Demis Gonçalves <demisgc@ig.com.br>Demis Gonçalves <demisgc@ig.com.br>


          Demis Gonçalves <demisgc@ig.com.br>
          Sent by: owner-nv-l@lists.us.ibm.com

          12/29/2004 01:44 PM
          Please respond to
          nv-l


To

"NV" <nv-l@lists.us.ibm.com>

cc


Subject

[nv-l] Formating trap message

Hi people, i have a Norton Server sending traps to my Netview server. I´m trying to format the trap message but i have found some limitations! The information that i need to format my message is the bold in the trap below, but on netview i only can format the traps 1 - 7. How do i do to use the information inside de trap 5?



[1] private.enterprises.343.2.5.1.1.12.0 (OctetString): SRRF08SRV09
[2] private.enterprises.343.2.5.1.1.8.0 (Integer): 1104344801
[3] private.enterprises.343.2.5.1.1.9.0 (Integer): 0
[4] private.enterprises.343.2.5.1.1.10.0 (OctetString): Intel Alert Management System II
[5] private.enterprises.343.2.5.1.1.11.0 (OctetString): Alert: Virus Found

Computer: DERATSPO044C
Date: 29/12/2004
Time: 16:26:41
Severity: Critical
Source: Norton AntiVirus Corporate Edition
Virus: Trojan.ByteVerify
Actual Action: Leave Alone

[6] private.enterprises.343.2.5.1.1.7.0 (Integer): 16
[7] private.enterprises.343.2.5.1.1.13.0 (Integer): 0


TIA,

===========================
Demis Gonçalves
Sr. Support Analyst
NetControl Network Management
São Paulo - Brazil
Mobile: 55 11 9904-9684
===========================

GIF image

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

Archive operated by Skills 1st Ltd

See also: The NetView Web