nv-l

Re: Trap variables

1999-08-25 10:50:49
Subject: Re: Trap variables
From: James Shanks <James_Shanks AT TIVOLI DOT COM>
To: nv-l AT lists.tivoli DOT com
Date: Wed, 25 Aug 1999 10:50:49 -0400
Larry -

The trap you show does not contain the IP address in  tsLineUser [2].  What you
show is that this has the simple integer value "5".  The IP address is not part
of this variable.  I cannot tell you where it is, if it is anywhere.  But you
are looking in the wrong place.

I cannot tell from what you have shown what is in variable 6.  Could that octet
string be what you want?  Are you confused about the difference bewteen
"tsLineUser [2]" (which is the second trap variable) and "tsLineUser.2" (which
is the MIB object represented by the sixth trap variable)?

James Shanks
Tivoli (NetView for UNIX) L3 Support



"Chance, Larry" <lchance AT SFBCIC DOT COM> on 08/25/99 10:14:11 AM

Please respond to Discussion of IBM NetView and POLYCENTER Manager on NetView
      <NV-L AT UCSBVM.UCSB DOT EDU>

To:   NV-L AT UCSBVM.UCSB DOT EDU
cc:    (bcc: James Shanks/Tivoli Systems)
Subject:  Trap variables




[ NetView for NT ]

How do I capture (or can I capture) the IP addresses shown below and pass
them through
the batch file I'm trying to use?
Trap Notification:
c:\\usr\\ov\\doThisBatch.bat "$x"

What is x?
I want to get the IP information from tsLineUser [2] which has the
destination and
source IP.  As it is, I only get the Integer 5.

tcpConnectionClose trap received from enterprise mynetwork with 6 arguments:
tslineSesType=5;
tcpConnState=5;
loctcpConnElapsed=892;
loctcpConnInBytes=41;
loctcpConnOutBytes=84;
tsLineUser=
 [1] ltsLineSessionEntry.tslineSesType.2.1 (Integer): 5
 [2] tcpConnState.10.0.1.19.23.10.0.1.163.1112 (Integer): 5
 [3] loctcpConnElapsed.10.0.1.19.23.10.0.1.163.1112 (Ticks): 892
 [4] loctcpConnInBytes.10.0.1.19.23.10.0.1.163.1112 (Integer): 41
 [5] loctcpConnOutBytes.10.0.1.19.23.10.0.1.163.1112 (Integer): 84
 [6] local.lts.ltsLineTable.ltsLineEntry.tsLineUser.2 (OctetString)

Thanks,

Larry


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