On 9 April 2010 03:16, Fatima Peter <fatima.pe...@gmail.com> wrote:
> I sent an inform message to the trap-server with the following command:
>
> $ sudo snmptrap ....

Why "sudo"?
Sending an SNMP request does not require special privileges,
so there seems no reason to run this as root.

>   ....-Ci -v 3 -e 0x80001f888085b94c4882d8bc4b -l noauth -u inter localhost

OK so far.

>   ....  0 linkUp.0

Why "linkUp.0" ?
The OID of the notification is simply "linkUp" - .1.3.6.1.6.3.1.1.5.4

Don't get confused between notifications and scalar objects.

(Strictly speaking, the linkUp trap also needs several payload varbinds,
but it's sensible to get the basic request working first)


> t->local =
> t->remote =
> sock = 3 flags = 0x0
> local_addr: 0.0.0.0 0.0.0.0 162

What are these?
I assume they're not specified on the command line,
so presumably this is output from the snmptrap command.

They look like debug statements, but I'm unclear where they are coming
from.   You don't seem to be turning on any debugging....


> snmpinform: Timeout (Sub-id not found: (top) -> linkUp)
>
> Since snmptrap did not complain....

Err.... what do you think the line immediately above is?
It's the "snmptrap -Ci" command (i.e. "snmpinform"), complaining
that it doesn't recognise the trap OID that you have asked for.


>  .... it did send the message out and did not get response from snmptrapd.

My guess is that the trap was *not* sent (because of the error above),
and this is why it wasn't received by snmptrapd, not any acknowledgement
received.

If you want to check whether the request is sent or not (rather than guessing)
use the '-d' flag.   This works for both "snmptrap" (was the request sent?)
and "snmptrapd"  (was it received?)

To specify the trap OID robustly, use the MIB name as well
i.e.
    IF-MIB::linkUp

Dave

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to