RE: [tkined] EngineID of nmtrapd

From: Sanapoori, Hari (Hari.Sanapoori@marconi.com)
Date: Tue Jun 27 2000 - 15:34:42 MET DST


Hi,

I did the same thing you specified, here is the output ...

% Tnm::snmp generator
snmp0
% set nr [ Tnm::snmp listener -version SNMPv3 ]
snmp1

% $nr bind inform { puts "got %V" }

% set no [ Tnm::snmp notifier -version SNMPv3 ]
snmp2

% $no inform coldStart {}
noResponse 0 {}
got {1.3.6.1.2.1.1.3.0 TimeTicks {0d 0:02:54.65}} {1.3.6.1.6.3.1.1.4.1.0
{OBJECT IDENTIFIER} SNMPv2-MIB!coldStart}
got {1.3.6.1.2.1.1.3.0 TimeTicks {0d 0:02:54.65}} {1.3.6.1.6.3.1.1.4.1.0
{OBJECT IDENTIFIER} SNMPv2-MIB!coldStart}
got {1.3.6.1.2.1.1.3.0 TimeTicks {0d 0:02:54.65}} {1.3.6.1.6.3.1.1.4.1.0
{OBJECT IDENTIFIER} SNMPv2-MIB!coldStart}
got {1.3.6.1.2.1.1.3.0 TimeTicks {0d 0:02:54.65}} {1.3.6.1.6.3.1.1.4.1.0
{OBJECT IDENTIFIER} SNMPv2-MIB!coldStart}
expected integer but got "0d 0:02:54.65"
    (snmp trap event)
expected integer but got "0d 0:02:54.65"
    (snmp trap event)
expected integer but got "0d 0:02:54.65"
    (snmp trap event)
expected integer but got "0d 0:02:54.65"
    (snmp trap event)

I figured out that for the type TimeTicks, the TnmMibScanValue function is
returning NULL with out any conversion for the syntax of type TimeTicks. I
know know why it is not taken care. I saw in the mib files, to get the
low-level syntax for TimeTicks, but the only level I can go is upto
TimeTicks.

Any help would be appreciated....

Thanks,

=Hari

#-----Original Message-----
#From: Juergen Schoenwaelder [mailto:schoenw@ibr.cs.tu-bs.de]
#Sent: Tuesday, June 27, 2000 8:51 AM
#To: Sanapoori, Hari
#Cc: tkined@ibr.cs.tu-bs.de
#Subject: Re: [tkined] EngineID of nmtrapd
#
#
#
#>>>>> Sanapoori, Hari writes:
#
#Hari> First of all, Sorry to write to you straightaway. I posted the
#Hari> similar kind of request to tkined mailing lists, but there is no
#Hari> response. So, I am writing directly to you. I hope you will help
#Hari> me to solve this issue/doubts. The problem is...
#
#Hari> I created listener and notifier session on a host A. While I
#Hari> create the notifier sessions, I specified the engineID and
#Hari> username of the listener session. The same values which I
#Hari> provided for -engineID option of listener session.
#
#Hari> After binding the listener session, when I try to send a cold
#Hari> start inform message to listener, I got the following dump and
#Hari> eventually, my script failed saying noResponse. The dump is
#
#[...]
#
#Hari> I came to know that, the notifier is trying to send a request
#Hari> for engineID to listener session. But the listerner side, it is
#Hari> not responding for the report request. If I am correct, Why
#Hari> nmtrapd program is not responding for engineID request by
#Hari> agent/notifier side? Is nmtrapd is fully working including the
#Hari> inform messages? If not, Let me know the place I can start
#Hari> looking into so that I can develop a patch for it.
#
#I do not really understand your question. Here is something I just
#tried and which seems to work fine.
#
#notification originator script:
#
# set no [Tnm::snmp notifier -version SNMPv3]
# $no inform coldStart {}
#
#notification receiver script:
#
# Tnm::snmp generator
#
# set nr [Tnm::snmp listener -version SNMPv3]
# $nr bind inform { puts "got %V" }
#
#The only strange thing here is that you need to have a generator
#session on the receiving side. This is indeed a bug - but nothing
#which has to do with reports.
#
#In fact, the scotty snapshot right now only support noAuth/noPriv and
#reports are pretty useless in a noAuth/noPriv exchange.
#
#/js
#
#--
#Juergen Schoenwaelder Technical University Braunschweig
#<schoenw@ibr.cs.tu-bs.de> Dept. Operating Systems & Computer Networks
#Phone: +49 531 391 3289 Bueltenweg 74/75, 38106
#Braunschweig, Germany
#Fax: +49 531 391 5936 <URL:http://www.ibr.cs.tu-bs.de/~schoenw/>
#
#

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.



This archive was generated by hypermail 2b29 : Mon Jan 08 2001 - 15:27:47 MET