nv-l

Re: [nv-l] Formatting trap message

2004-12-29 14:36:32
Subject: Re: [nv-l] Formatting trap message
From: Demis Gonçalves <demisgc AT ig.com DOT br>
To: <nv-l AT lists.us.ibm DOT com>
Date: Wed, 29 Dec 2004 17:35:32 -0200
Thanks James, you explained exactly what i wanted to know. My system run on 
Windows. I would like to use the description of the varbind 5 to format a 
message description, but now i know that it´s impossible. If i use the $5 to 
format the message it only display to me Alert: Virus Found and dont show the 
content of var5. I´ll try other things to capture this message!

Once more thanks!

Demis
  ----- Original Message ----- 
  From: James Shanks 
  To: nv-l AT lists.us.ibm DOT com 
  Sent: Wednesday, December 29, 2004 5:12 PM
  Subject: Re: [nv-l] Formatting trap message


  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
  Demis Gonçalves <demisgc AT ig.com DOT br>


                Demis Gonçalves <demisgc AT ig.com DOT br> 
                Sent by: owner-nv-l AT lists.us.ibm DOT com 
                12/29/2004 01:44 PM Please respond to
                      nv-l 

       

              To 
              "NV" <nv-l AT lists.us.ibm DOT 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

GIF image

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