nv-l
[Top] [All Lists]

Parsing msg string (Netview event) into TEC event.

To: nv-l@lists.tivoli.com
Subject: Parsing msg string (Netview event) into TEC event.
From: "Mull, John" <jmull@HERSHEYS.COM>
Date: Thu, 25 Mar 1999 16:06:47 -0500
Reply-to: Discussion of IBM NetView and POLYCENTER Manager on NetView <NV-L@UCSBVM.UCSB.EDU>
Sender: Discussion of IBM NetView and POLYCENTER Manager on NetView <NV-L@UCSBVM.UCSB.EDU>
Hi,

Trying to parse a message string from customized event using
/usr/OV/bin/snmptrap into TEC.  The customized event
hits trapd.log perfectly, and tecad_nv6k reads the event, but does not
format the message string into the TEC slot value.

I tried to format the tecad_nv6k.cds to map this string, but have been
unsuccessful in all attempts.

Here is the Netview event in trapd.log:

922395437  7  Thu Mar 25 15:57:17 1999 nv6000.hersheys.com       u  [1]
mgmt.mib
-2.system.sysDescr.0 (OctetString): HFC_errptS SRC            SOFTWARE
PROGRAM ERROR

Here is the Tivoli event:
HFC_errpt;
        server_handle=1;
        date_reception=922395437;
        event_handle=1;
        source=NV6K;
        sub_source=NET;
        origin=;
        sub_origin='';
        hostname=nv6000.hersheys.com;
        adapter_host=;
        status=OPEN;
        administrator='';
        acl=[ admin];
        severity=WARNING;
        date='Mar 25, 1999 15:57';
        duration=0;
        msg=";
        msg_catalog='';
        msg_index=0;
        num_actions=0;
        credibility=0;
        repeat_count=0;
        cause_date_reception=0;
        cause_event_handle=0;
        category=Agent;
END

Here is the tecad_nv6k.cds:

CLASS HFC_errpt
   SELECT
    1:  ATTR(=,$ENTERPRISE) , VALUE(PREFIX, "1.3.6.1.2.1.0" ) ;
    2:  $SPECIFIC = 2 ;
   FETCH
        1: IPNAME($SOURCE_ADDR) ;
   MAP
     hostname = $F1 ;
END

Does anyone know the correct Select statement to map this value for the msg
slot value?

Thanks for any help anyone can offer.
John Mull
Hershey Foods Corporation
Information Technology & Integration
Enterprise Systems Management
(717)534-7959
email:jmull@hersheys.com

Any comments or statements made are not
necessarily those of Hershey Foods Corporation

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

Archive operated by Skills 1st Ltd

See also: The NetView Web