How do I know where snmpd.cof file is?  A user may start Snmpd with a -c
option for snmpd.conf.  Does a NET-SNMP agent know where to send traps?  Is
it in a MIB?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Story
Sent: Tuesday, February 01, 2005 10:18 PM
To: Alex Koifman
Cc: [email protected]
Subject: Re: Sending Snmptrap to manager specified in snmpd.conf

On Tue, 1 Feb 2005 18:40:41 -0500 Alex wrote:
AK> I want to send a trap to a manager from snmpd.conf.
AK> 
AK> This is the command line I use to send to a manager specified on a
command
AK> line: 
AK> 
AK> snmptrap -v 1 -c public 192.168.2.32 enterprises.18997 192.168.13.170 6
1 "
AK> " 1.3.6.1.4.1.18997.2.1.0 i 3
AK> 
AK> But I want to be a able to send traps to the station that a user
configured
AK> in snmpd.conf:
AK> 
AK> # trapsink: A SNMPv1 trap receiver
AK> #   arguments: host [community] [portnum]
AK> 
AK> trapsink  192.168.2.32

snmptrap is a user tool, and as such does not read snmpd.conf. To do what
you
want, you'd have to write a wrapper script to parse snmpd.conf and extract
trapsinks and call snmptrap for each one...


-- 
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive:
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to