On 24 July 2012 12:19, mohamad hosein jafari <[email protected]> wrote:
> yes I think because my agent and server is on 1 system
No - ther's absolutely no problem about running an SNMP agent
and a trap receiver on the same system. They are different
services, and listen on different network ports. They shouldn't
interfere with each other in the slightest.
> I do your instruction to kill snmptrapd and then I rewrite that
> instruction snmptrapd -f -Le
> this is my output
>
> NET-SNMP version 5.3.2.2
Good - that seems to be working.
> but my output take long time and I didn't receive anything so I stopped it
<sigh>
No - please don't do that.
You are quite correct - it's running for a "long time".
In fact it will keep running for ever, until you explicitly stop it.
That's the whole point - you are running this as a trap receiver.
It's expected to keep running - waiting to receive incoming traps,
and logging them. It will do that for as long as the system is up.
Eventually we'll look at having this run in the background,
but for the time being - let's concentrate on checking that
the basic sending/receiving of traps is working.
Please re-start the 'snmptrapd' command again,
and make sure it gives the same
NET-SNMP version 5.3.2.2
output. (With no mention of "access control")
Assuming that works, and while it is still running in one terminal window.
try running the
snmptrap -v 1 -c public 192.168.150.227
NET-SNMP-EXAMPLES-MIB::netSnmpExampleNotification "" 6 17 ""
\netSnmpExampleInteger i 123456
command you mentioned, in a different terminal window.
Do you see anything in the first window?
Dave
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users