[ 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
|