Thanks my friend

I want to use snmptrap but I think first of all I should config snmptrapd
on my server to receive snmp information on server .Am I Right??? Or Please
tell me true thing

>> I run snmp trap demon and I get answer like this
>> ]# snmptrapd -f -C -c /tmp/snmptrapd.conf -Le
>>You are explicitly telling the trap receiver to use the
>>configuration file '/tmp/snmptrapd.conf'
>>   (That's the meaning of the -c option)

Ok what is this problem?

>>Have you created this file?
>>> /tmp/snmptrapd.conf: No such file or directory
>>Probably not :-)

No I can't find this file in this path . my snmptrapd.conf is
in /etc/snmp/snmptrapd.conf  . how I can make it in the path that you say?


>>> - but about I think I have problem in snmptrapd.conf because when I run
>>> snmptrap I don't have any error
>>Again - are you talking about snmptrap, or snmptrapd?
>>What exactly do you mean by "run snmptrap"
>>If you run the command "snmptrap" with no options,
>>then you *will* get an error, because that's not valid.
>>What is the *exact* command(s) that you are running?

I want to run snmp . I want to send information from agent to manager . I
run this sample
snmptrap -v 1 -c public 192.168.150.227
 NET-SNMP-EXAMPLES-MIB::netSnmpExampleNotification "" 6 17 ""
\netSnmpExampleInteger i 123456

>>> I set my snmptrapd.conf like this :
>>> logOption f /var/log/snmptraps.log
>>> authCommunity log,execute,net  public
>>And where is this file located?

in  /etc/snmp/snmptrapd.conf  I set this lines

>>> and in this path : /etc/sysconfig/snmpd.options   I set like this :
>>>  OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a -x (MY IP)"
>>That file, and those options are relating to the SNMP agent ('snmpd').
>>They are nothing to do with either the trap receiver ('snmptrapd')
>>or the trap sender ('snmptrap').
 >>  Please don't confuse the various elements - they are different commands
>>used for different purposes, and controlled by different files.

but I read in conf instruction level to set this line for agent

>>> and also I turnd my IPtable off for test but I dont have anything in my
log
>>> file after I run snmptrap .
>>> I TEST my request in debian and I get true answer but in CentOS I
didn't get
>>> any answer
>>Please report *exactly* what you are doing.
>>There's simply not enough detail in what you have said so far.

I used this command for this work

# /etc/init.d/iptables stop

# chkconfig iptables off


thanks for your help
------------------------------------------------------------------------------
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to