RE: trap changes made for VRF

2021-02-11 Thread Joan Landry
Subject: Re: trap changes made for VRF External email: [bart.vanass...@gmail.com] Hi Joan, Did this help? Thanks, Bart. On 1/12/21 5:46 PM, Bart Van Assche wrote: Hi Joan, Please try the following: git clone g...@github.com:net-snmp/net-snmp.git<mailt

Re: trap changes made for VRF

2021-02-10 Thread Bart Van Assche
rs@lists.sourceforge.net Subject: Re: trap changes made for VRF   Hi Joan,   Pre-existing functionality shoul

Re: trap changes made for VRF

2021-01-12 Thread Bart Van Assche
Cc: net-snmp-users@lists.sourceforge.net Subject: Re: trap changes made for VRF   Hi Joan,   Pre-existing

RE: trap changes made for VRF

2021-01-12 Thread Joan Landry
Please tell me where to find these patches – links please. Thanks From: Bart Van Assche Sent: Saturday, January 9, 2021 5:47 PM To: Joan Landry ; stann...@cumulusnetworks.com Cc: net-snmp-users@lists.sourceforge.net Subject: Re: trap changes made for VRF External email: [bart.vanass

Re: trap changes made for VRF

2021-01-09 Thread Bart Van Assche
available? Thanks, Joan       From: Bart Van Assche Sent: Wednesday, January 6, 2021 11:28 PM To: stann...@cumulusnetworks.com Cc: Joan Landry ; net-snmp-users@lists.sourceforge.net

RE: trap changes made for VRF

2021-01-06 Thread Joan Landry
, January 6, 2021 11:28 PM To: stann...@cumulusnetworks.com Cc: Joan Landry ; net-snmp-users@lists.sourceforge.net Subject: Re: trap changes made for VRF External email: [bart.vanass...@gmail.com] Hi Sam, Can you submit a patch that documents how to use the changes

Re: trap changes made for VRF

2021-01-06 Thread Bart Van Assche
Hi Sam, Can you submit a patch that documents how to use the changes in the following two commits: * 02de400544de ("libsnmp: Set Linux VRF iface on Trap sink IP addresses") * 3ca90c2c1260 ("libsnmp/transports/UDP: Add support for VRF")

Re: Trap server address in snmpd.conf

2019-05-20 Thread Anders Wallin
I think that syntax will give you the octal value of "010", which will be decimal 8, so it will try to send to 192.168.1.8 Regards Anders Wallin On Mon, May 20, 2019 at 3:58 PM Deepak Sachan wrote: > Heĺlo > In snmpd.conf trap server address is defined as > Trap2sink 192.168.1.10 public 162 > I

Re: Trap event not passing snmptrapd

2017-10-09 Thread Bill Fenner
Per https://tools.ietf.org/html/rfc3416#section-4.2.6, "The first two variable bindings ... are sysUpTime.0 and snmpTrapOID.0". Your trap contains sysUpTime.0 and snmpTrapEnterprise (with no instance ID, making it invalid anyway). So, snmptrapd is probably just discarding it because it is malform

Re: Trap event not passing snmptrapd

2017-10-06 Thread Ilya Etingof
Hi Marian, I do not have an answer, though two minor things I wanted to note: * You are sending packets from a “privileged” port 162 rather than an ephemeral one * Well-formed TRAP message should include a bunch of well-known OIDs at fixed positions of the PDU (refer to SNMP RFCs for details)

RE: Trap OID translation with ambiguous symbolic values

2016-05-13 Thread o...@leferguson.com
Well, I may be able to partially answer my own question, in case it comes up for others. I had put the mibdirs setting in /etc/snmp/snmp.conf, as I was under the impression that applied to all of the utilities. It appears that it does not (I'm not even sure it applies to any of them; I am stil

RE: Trap description

2013-05-20 Thread Todd Bradley
FWIW, a few months ago I ran into the same issue you just wrote about. I didn't post it here, assuming "I must be doing something wrong, since this feature seems broken so badly they couldn't have released the software this way." Maybe I was wrong. I just learned to live with it. But I'd love t

Re: Trap destinaton problem

2012-06-19 Thread Dave Shield
On 17 June 2012 10:20, MANSOUR NASERI wrote: > snmpNotifyTable: > > Instance ---> internal0 > snmpNotifyStorageType --->readOnly(5) Remember that this is an entry which is being configured via the (static) snmpd.conf file. This is not something that the agent is expected to modify

Re: trap NAT 5.4.2.1

2011-12-13 Thread shay naveh
Thx! On Tue, Dec 13, 2011 at 1:59 PM, Dave Shield wrote: >[ First - *please* don't mail me privately, without copying > any responses to the mailing list. I don't have the time > or inclination to offer private, unpaid, SNMP consultancy. > Also, if I'm busy with my main (paid) wo

Re: trap NAT 5.4.2.1

2011-12-13 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Also, if I'm busy with my main (paid) work, it may well be some time before I can respond. Ke

Re: trap NAT 5.4.2.1

2011-12-06 Thread Dave Shield
On 6 December 2011 07:21, shay naveh wrote: > Is there already built-in parallel mechanism 'snmptrapd' ? e.x. 'snmptrapd' > will listen for incoming traps from these local 'snmpd' instances and will > redirect them to some receiver. $ man snmptrapd.conf : NOTIFICATION PROCESSING

Re: trap listener

2011-02-02 Thread th exterit
Nevermind, I am being an idiot. I don't need to use libpcap since traps are being broadcast. On Wed, Feb 2, 2011 at 3:40 PM, th exterit wrote: > After a little digging, it seems as though I need to look at snmp_read() > which calls snmp_parse(). snmp_parse() is a static function so can't call

Re: trap listener

2011-02-02 Thread th exterit
After a little digging, it seems as though I need to look at snmp_read() which calls snmp_parse(). snmp_parse() is a static function so can't call it directly, and it looks like it passes the parsed pdu to a call back function. I have no need for snmp_read() since I already have the packets hande

Re: trap daemon

2011-02-01 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 1 Fe

Re: trap daemon

2011-01-31 Thread Dave Shield
On 31 January 2011 14:52, th exterit wrote: > I've been tasked with writing a trap listener in C which will then take > specific device info from these traps and shove them in a database > (postgresql). Which version of the software are you using? The 5.6 release has an SQL module for snmptrapd,

RE: trap daemon

2011-01-31 Thread Ron Rader
Look at "snmptrapd," especially the tutorial http://www.net-snmp.org/wiki/index.php/TUT:Configuring_snmptrapd#Example _handler_script . You might be able to implement this by configuring snmptrapd appropriately, then writing scripts to extract trap information & insert into your DB. Ron

Re: Trap receivers, table_data.conf

2010-08-25 Thread Norasyikin MD Ali
Hello again, My registration table using table_data works fine. Now I'm trying to map values from this table to an internal table in my mib called the hosttable : table_entry = (regnms_entry *) netsnmp_tdata_extract_entry(request); //mapping registered manager

Re: Trap receivers, table_data.conf

2010-08-20 Thread Wes Hardaker
> On Fri, 20 Aug 2010 10:02:57 +0200, Norasyikin MD Ali > said: NMA> Currently I'm trying to create a dynamic registration table so that NMA> an NMS can register and de-register to via snmpset. Is that NMA> feasible using table_data.conf? And will it's handler take care of NMA> creating

RE: trap formatting

2010-07-22 Thread Mike Ayers
> From: Mike Ayers [mailto:mike_ay...@tva.tvworks.com] > Sent: Friday, July 16, 2010 11:32 AM > I put this line in my snmptrapd.conf: > > format2 %t %B %P %V,% %v\n > > ...which I thought would insert the varbind list with comma > separators, but it gags: > > [SNIP] > host> snmptra

Re: trap sending

2010-02-21 Thread Thomas Anders
maxim maxim wrote: > How i can to send a SNMPv1 and SNMPv2 traps by net-snmp api?, i need > some examples of code, i know how to do it from the command line, but > i need this in code. apps/snmptrap.c has the full source code of the command-line tool you're familar with. +Thomas --

Re: Trap forwarding

2010-02-08 Thread Dave Shield
On 8 February 2010 09:01, Michal Filka wrote: > I've found "forward" directive in snmptrapd.conf description. > Is it possible to use more instances of the directive to achieve > sending copy of the trap to each destination or only the first > forward directive which match the trap's OID is used?

Re: trap initializing ----what is the " /* insert index here */ " meaning?

2010-02-01 Thread Dave Shield
On 1 February 2010 11:29, Alexander King wrote: > I did not sent the that mail to the list,because the code file is sick. > Dave,if you have time to fix it I have told you exactly where the problem lies. And pointed you at an example of correct usage of the equivalent code. That is as much as I'

Re: trap initializing ----what is the " /* insert index here */ " meaning?

2010-02-01 Thread Alexander King
total permission to do it. Thank you very much! Alex -- Original -- From: "Dave Shield"; Date: Mon, Feb 1, 2010 07:18 PM To: "Alexander King"; Cc: "net-snmp-users"; Subject: Re: trap initializing what is the " /* inser

Re: trap initializing ----what is the " /* insert index here */ " meaning?

2010-02-01 Thread Dave Shield
On 1 February 2010 09:45, Alexander King wrote: > the "snmpd daemon auto termination" problem unsolved by now yet. Please check your use of "snmp_varlist_add_variable()". In particular, pay very careful attention to the fifth (value) parameter, and how this is used with integer-based values. Com

Re: trap initializing ----what is the " /* insert index here */ " meaning?

2010-02-01 Thread Dave Shield
> BTW,the "snmpd daemon auto termination" problem unsolved by now yet. > It make me headache for a long while.I am thinking the code file all days. Then perhaps you should post the code again, including the corrections you have made. Certainly, changing long int *intpp = 8; to long in

Re: trap initializing ----what is the " /* insert index here */ " meaning?

2010-02-01 Thread Alexander King
-- Original -- From: "Dave Shield"; Date: Mon, Feb 1, 2010 05:23 PM To: "Alexander King"; Cc: "net-snmp-users"; Subject: Re: trap initializing what is the " /* insert index here */ " meaning? On 1 February

Re: trap initializing ----what is the " /* insert index here */ " meaning?

2010-02-01 Thread Dave Shield
On 1 February 2010 03:33, Alexander King wrote: > int > send_fcPorttrap_trap( void ) > { >     netsnmp_variable_list  *var_list = NULL; >     oid fcPorttrap_oid[] = { 1,3,6,1,4,1,30901,2090,2092,0,1 }; >     oid fcPort_oid[] = { 1,3,6,1,4,1,30901,2090,7000,2,1,2,1,1,1, /* insert > index here */ };

Re: Trap Ip address on command line

2009-11-17 Thread forumde...@tataelxsi.co.in
Thanks! Dave Shield wrote: > 2009/11/17 forumde...@tataelxsi.co.in : > >> I am getting the SNMP v2 traps. I have trap2sink ipaddress >> configured in my snmpd.conf. >> Is there anyway where I can start the agent by giving the >> trap2sink ipaddress on the Command line, without modif

Re: Trap Ip address on command line

2009-11-17 Thread Dave Shield
2009/11/17 forumde...@tataelxsi.co.in : >       I am getting the SNMP v2 traps. I have trap2sink ipaddress > configured in my snmpd.conf. >       Is there anyway where I can start the agent by giving the > trap2sink ipaddress on the Command line, without modifying the code? snmpd --trap2sink=

Re: Trap SNMPv3

2009-07-23 Thread priya thangaraj
Ok... thanks for the initial reply, I got the relevant details from these sites http://www.mail-archive.com/net-snmp-cod...@lists.sourceforge.net/msg05469.html http://www.net-snmp.org/wiki/index.php/FAQ:Coding_19 snmpsess was missing in my snmpd.conf, I convinced myself thinking trapsink or trap2

Re: Trap SNMPv3

2009-07-23 Thread priya thangaraj
SNMP Variables: newMIBNotify OBJECT IDENTIFIER ::= { newMIB 3 } netSnmpExampleHeartbeatRate OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS accessible-for-notify STATUS current DESCRIPTION "A simple integer object, to act as a payload for the netSnmpExampleHear

Re: Trap SNMPv3

2009-07-23 Thread Dave Shield
2009/7/23 priya thangaraj : > I was successful in sending a snmptrap which was logged by snmptrapd in > SNMPv3. > > The current issue is that, I have developed my own TRAP-Variables, sending > it through send_trapv2() via Agentx. But the trap sent is not being received > by snmptrapd. > > is there

Re: Trap community

2009-07-21 Thread Dave Shield
2009/7/13 Raghavendra Prasad : > How to create the "Trap community", is it as below? > >        trapcommunity Either that, or given as part of the "trapsink" (or equivalent) line that specifies the trap destination. > what sort of authentication needs > to be done to recieve the trap in

Re: Trap to command rather than remote snmptrapd

2009-04-17 Thread Dave Shield
2009/4/17 Anthony Wright : > I suspect I know the answer to this, but is it possible to get snmpd to > run a command when it issues a trap rather than sending out a trap packet? Yes. Well, sort-of. It is certainly possible to configure the agent to run a command when it receives a SET request.

Re: Trap question: OID for variable from a table

2009-03-05 Thread Dave Shield
2009/3/5 McGowen, Wendy : > So since this is a single indexed table, the vmName would be the last > index, making .118.109.49 acceptable. Plus I've defined it with IMPLIED > (although is that really necessary?): No - it's not necessary. Whether you use implicit or explicit string indexes is totall

RE: Trap question: OID for variable from a table

2009-03-05 Thread McGowen, Wendy
riginal Message- From: Dave Shield [mailto:d.t.shi...@liverpool.ac.uk] Sent: Wednesday, March 04, 2009 3:20 PM To: McGowen, Wendy Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Trap question: OID for variable from a table 2009/3/4 McGowen, Wendy : > I haven't done anything

Re: Trap question: OID for variable from a table

2009-03-04 Thread Dave Shield
2009/3/4 McGowen, Wendy : > I haven't done anything with string indices > yet, but it looks like I just have to convert each character in the > string to its ASCII equivalent (for example, "vm1" would be .118.109.49, > correct?). Perhaps. It depends on whether the index is IMPLIED or not.

RE: Trap question: OID for variable from a table

2009-03-04 Thread McGowen, Wendy
correct?). Easy peasy! Thanks Dave!! -Original Message- From: Dave Shield [mailto:d.t.shi...@liverpool.ac.uk] Sent: Wednesday, March 04, 2009 11:03 AM To: McGowen, Wendy Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Trap question: OID for variable from a table 2009/3/4 McGowen, Wendy

RE: Trap question: OID for variable from a table

2009-03-04 Thread Sergio Cabaço
Hello, I'm trying to compile a net-snmp agent with authentication and cipher support. I've compiled the openssl for my target and gave the directory to the "--with-openssl=dir". Here's an example: Make openssl ---> ...openssl/include/openssl/*.h ---> ...openssl/lib/*.a Configu

Re: Trap question: OID for variable from a table

2009-03-04 Thread Dave Shield
2009/3/4 McGowen, Wendy : > Do I have to include the index > value in the OID for the vmName object in the trap I believe so, yes. >From RFC 2578: 8.1. Mapping of the OBJECTS clause The OBJECTS clause, which need not be present, defines an ordered sequence of MIB obje

Re: Trap

2009-03-04 Thread Dave Shield
2009/3/4 Pranesh Kulkarni : >> What about the SNMPv1 >   Instead of NOTIFICATION-TYPE  use TRAP-TYPE No! If you are writing your MIB using SMIv2, then you *always* use NOTIFICATION-TYPE. This MIB definition can then be used with SNMPv1 traps, SNMPv2c traps/informs, and SNMPv3 traps/informs You

RE: Trap

2009-03-04 Thread Tanisha Kashyap
Thanks. "If you think you can, or you think you can't...You are Right" -- Henry Ford From: Pranesh Kulkarni [mailto:pranes...@gmail.com] Sent: Wednesday, March 04, 2009 2:30 PM To: Tanisha Kashyap Cc: net-snmp-users@lists.sourceforge.net Su

Re: Trap

2009-03-04 Thread Pranesh Kulkarni
an't...You are Right" -- Henry > Ford > -- > > *From:* Pranesh Kulkarni [mailto:pranes...@gmail.com] > *Sent:* Wednesday, March 04, 2009 2:25 PM > *To:* Tanisha Kashyap > *Cc:* net-snmp-users@lists.sourceforge.net > *Subject:* Re: Tra

RE: Trap

2009-03-04 Thread Tanisha Kashyap
rge.net Subject: Re: Trap On Wed, Mar 4, 2009 at 12:25 PM, Tanisha Kashyap mailto:tanisha.kash...@aricent.com>> wrote: Hi, I want to send a trap to the NMS which contains just a text information indicating that a certain event is about to begin. Do I need a MIB variable for this or i

Re: Trap

2009-03-04 Thread Pranesh Kulkarni
On Wed, Mar 4, 2009 at 12:25 PM, Tanisha Kashyap < tanisha.kash...@aricent.com> wrote: > Hi, > > > > I want to send a trap to the NMS which contains just a text information > indicating that a certain event is about to begin. > > Do I need a MIB variable for this or is there a way to send text >

Re: Trap resyncronization

2009-01-23 Thread Wes Hardaker
> On Thu, 22 Jan 2009 14:49:15 -0500, Arvind Gupta > said: AG> Want to know that do we have some standard MIB or MIB element which shall be AG> used to trigger the trap resync from the NMS. There is no way to "resync" a bunch of traps. They're sent from the agent and never "queued". I

Re: Trap idea

2008-07-29 Thread Dave Shield
2008/7/29 Rabindra Paikaray <[EMAIL PROTECTED]> > trapsink 192.168.101.100( traplistener ip for v1 trap) > trap2sink 192.168.101.100( traplistener ip for v2 trap) Note that you only need *ONE* of these lines (depending on whether you want to send v1 or v2 traps) If you have both lines, then you wi

Re: Trap idea

2008-07-28 Thread Rabindra Paikaray
Hi , you can add these below lines to your configuration file to send trap for your trap listeners. trapcommunity public trapsink 192.168.101.100( traplistener ip for v1 trap) trap2sink 192.168.101.100( traplistener ip for v2 trap) authtrapenable 1(trap for authetication failure) Thanks Rabindra

RE: trap

2008-06-18 Thread Ron Rader
> From: kian [mailto:[EMAIL PROTECTED] > I run example.c and replace my oid trap, >TRAP6..1 from 192.168.10.138: Enterprise Specific >My trap dosen`t show. Sounds like you need to add more varbinds into your example.c to provide additional information in your trap. Check some of the other tra

Re: trap

2008-06-17 Thread Dave Shield
2008/6/17 kian <[EMAIL PROTECTED]>: > but I can not fill varlist for trap v2 in send_v2trap. > Please show sample, that varlist is filled. See 'agent/mibgroup/examples/example.c' in the Net-SNMP source for an example. Dave -

Re: trap

2008-06-17 Thread Dave Shield
2008/6/16 kian <[EMAIL PROTECTED]>: > How to I generate code for trap in snmpd with mib2c. Please see the FAQ entry How can I get the agent to generate a trap (or inform)? http://www.net-snmp.org/wiki/index.php/FAQ:Coding_15 Dave --

Re: Trap sending API

2008-04-18 Thread Dave Shield
On 18/04/2008, Ron Rader <[EMAIL PROTECTED]> wrote: > We have a piece of hardware with two interfaces that do not use the > regular Linux IP stack, and therefore do not natively populate ifTable. > I need to generate linkUp/linkDown notifications on these interfaces and > am trying to think of

RE: trap problem

2008-03-10 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of snmp girl > Sent: Sunday, March 09, 2008 10:42 AM > I send a trap from a linux agent to a windows manager , to > see the trap I use a trap watcher but the problem is that > when i receive the trap it gives me as a descriptio

Re: Trap Handler for Net-snmp 5.3.1

2008-03-04 Thread Dave Shield
On 03/03/2008, Shreya Shah <[EMAIL PROTECTED]> wrote: > The traps are logging and I can see them in the file as well as when I > do a tcpdump. Now I'm completely confused. You say that the traps are being logged, yet you've also said that you are running the trap receiver as snmptrapd -f

Re: Trap Handler for Net-snmp 5.3.1

2008-03-03 Thread Shreya Shah
I am using snmptrapd.conf to generate traps. I have the same snmp community string set in the snmptrapd.conf and the device I want to monitor and I have given a log and execute permission for logging the traps in the desired file. The traps are logging and I can see them in the file as well as when

Re: Trap Handler for Net-snmp 5.3.1

2008-03-03 Thread Dave Shield
On 03/03/2008, Shreya Shah <[EMAIL PROTECTED]> wrote: > Yes that is all that is displayed. I have already stopped firewall service > in iptables. How are you generating the traps? Dave - This SF.net email is sponsored by: Mi

Re: Trap Handler for Net-snmp 5.3.1

2008-03-03 Thread Shreya Shah
Thanks Dave for your help. Yes that is all that is displayed. I have already stopped firewall service in iptables. --Shreya. On Mon, Mar 3, 2008 at 4:03 AM, Dave Shield <[EMAIL PROTECTED]> wrote: > On 27/02/2008, Shreya Shah <[EMAIL PROTECTED]> wrote: > > I am a newbie to net-snmp and Linux,

Re: Trap Handler for Net-snmp 5.3.1

2008-03-03 Thread Dave Shield
On 27/02/2008, Shreya Shah <[EMAIL PROTECTED]> wrote: > I am a newbie to net-snmp and Linux, I have configured snmptrapd.conf > net-snmp 5.3.1 and when I start the daemon I receive traps but its just not > invoking the trap handler. When I use the command snmptrapd -f -Le > -Dsnmptrapd -d it just g

Re: Trap Handle directive not working

2008-01-24 Thread Joel Parker
c: net-snmp-users@lists.sourceforge.net Sent: Thursday, January 24, 2008 8:34:15 AM Subject: Re: Trap Handle directive not working It looks like it matched but, I still do not see the output from my hello world executable, which is owned by root and has 777 permissions 1970-01-01 11:27:38 192.168.2.201(via 19

Re: Trap Handle directive not working

2008-01-24 Thread Joel Parker
-- Joel Parker - Original Message From: Dave Shield <[EMAIL PROTECTED]> To: Joel Parker <[EMAIL PROTECTED]> Cc: net-snmp-users@lists.sourceforge.net Sent: Thursday, January 24, 2008 3:04:56 AM Subject: Re: Trap Handle directive not working On 23/01/2008, Joel Parker <[EMA

Re: Trap Handle directive not working

2008-01-24 Thread Dave Shield
On 23/01/2008, Joel Parker <[EMAIL PROTECTED]> wrote: > SNMPv2-SMI::enterprises.2682.1.2 Enterprise Specific Trap (8001) > traphandle .1.3.6.1.4.1.2682.1.2.8001 /usr/sbin/hello hello > traphandle SNMPv2-SMI::enterprises.2682.1.2.8001 /usr/sbin/hello hello Those two have the wrong OID.

RE: Trap Handle directive not working

2008-01-23 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Joel Parker > Sent: Wednesday, January 23, 2008 2:47 PM > I am running version : > > NET-SNMP Version: 5.1.2 > Web: http://www.net-snmp.org/ > Email: [EMAIL PROTECTED] > > I have a simple hello wor

RE: Trap

2008-01-16 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of DERIVRY Serge (EURIWARE) > Sent: Tuesday, January 15, 2008 7:13 AM > Unknown alert received from device xx of type Host_Device. Device > Time 0+22:02:42. > (Trap type 1.3.6.1.4.1.99.12.52.3.1.6.3) > Trap var bind data:

Re: trap size

2007-11-18 Thread Dave Shield
On 16/11/2007, Nikolett C <[EMAIL PROTECTED]> wrote: > Could someone tell me, how big a trap can be? 100 byte, 200 byte..? There's no fixed maximum size to an SNMP request - it depends on the implementations of the two applications concerned. > With maximal how many varbinds? Again, there's no e

Re: Trap OID has a 0 before it?

2007-09-03 Thread Dave Shield
On 03/09/07, Edison C. <[EMAIL PROTECTED]> wrote: > When I try the following the command on a sample MIB file(attached > below) > snmptranslate -M+. -mNSMAIL-MIB -Tp -IR netscape > I got the following output - > +--netscape(1450) >| >+--netscape#(0) >| | >| +--nsMailServe

RE: Trap send an engine ID

2007-08-03 Thread Adam Bell
Got it working, Thanks, I appreciate the response. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Friday, August 03, 2007 9:23 AM To: Adam Bell Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Trap send an engine ID On 03/08/07

Re: Trap send an engine ID

2007-08-03 Thread Dave Shield
On 03/08/07, Adam Bell <[EMAIL PROTECTED]> wrote: > Is the engine ID in this config line supposed to be the agent's or the trap > receiver's engine ID? If you are sending an SNMPv3 trap PDU, then the engineID should be that of the engine *sending* the trap (and the trap receiver would need to be

Re: trap sender

2007-07-05 Thread Dave Shield
On 04/07/07, Mirko Viviani <[EMAIL PROTECTED]> wrote: > I'm just writing my own trap "receiver", using the snmptrapd code for help. > How can I obtain the "sender IP" address? By using the suggestion that was given to you yesterday, when you asked exactly the same question. Dave

RE: trap sender ip

2007-07-04 Thread Pamidipati Suresh-G20238
Hi Snmptrapd when started with "%b" as format specification, prints PDU source address which is of form : []:. So, as snmptrapd handles this "%b" option, snmptrapd code walk might help you. Regards, Suresh. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: trap handling

2007-06-13 Thread Dave Shield
On 11/06/07, Daniel Coelho <[EMAIL PROTECTED]> wrote: > I received this when unplugging the network cable: > Sending 149 bytes to 172.18.50.92 > 2007-06-11 11:46:31 . >06 09 2B 06 01 06 03 01 01 05 04 That's a linkDown trap all right. > If so, can you suggest where to start looking

Re: trap handling

2007-06-06 Thread Dave Shield
On 29/05/07, Daniel Coelho <[EMAIL PROTECTED]> wrote: > I have configured net-snmp this way: > > /etc/snmp/snmpd.conf: > trap2sink 127.0.0.1 public 162 > createUser danielcoelho MD5 "danielcoelho" > rouser danielcoelho > rwuser danielcoelho > agentSecNamedanielcoelho > d

Re: trap handling

2007-05-29 Thread Daniel Coelho
I have configured net-snmp this way: /etc/snmp/snmp.conf: logtimestamp 1 defaultport 161 defversion 2c defcommunity public dodebugging 0 dumppacket 1 printNumericOids true /etc/snmp/snmpd.conf: trapcommunity public trap2sink 127.0.0.1 public 162 authtrapenable 1 syscontact [EMAIL PROTE

Re: trap handling

2007-05-29 Thread Dave Shield
On 29/05/07, Daniel Coelho <[EMAIL PROTECTED]> wrote: > I thought I needed the DisMan Event Handling > to receive traps... No. The DisMan Event handling is used to *generate* traps. > I want to send a trap to an IP when it occurs. > For example, when I unplug the network cable, > I want a trap

Re: trap information interchange: in text format

2007-03-22 Thread Joao Miguel Ferreira
Hi Dave, I just foun the time to make some tests... about your question: > > VARBIND_OID=".1.3.6.1.2.1.a.b.c.d.e" > > VARBIND_TYPE="Integer" > > VARBIND_VALUE="1000" > > VARBIND_OID=".1.3.6.1.2.13.45.w.v.z.q" > > VARBIND_TYPE="Srting" VARBIND_VALUE="Hello World" > > How would you handle string

Re: trap information interchange: in text format

2007-03-22 Thread Joao Miguel Ferreira
Thank you Dave. I got it. jmf On Wed, 2007-03-21 at 23:06 +, Dave Shield wrote: > On 21/03/07, Joao Miguel Ferreira <[EMAIL PROTECTED]> wrote: > > > At a minimum, you'll need to be able to handle: > > > > > >SNMPv1) trap type (2 integers) > > > enterprise (OID)

Re: trap information interchange: in text format

2007-03-21 Thread Dave Shield
On 21/03/07, Joao Miguel Ferreira <[EMAIL PROTECTED]> wrote: > > At a minimum, you'll need to be able to handle: > > > >SNMPv1) trap type (2 integers) > > enterprise (OID) > > + arbitrary varbind list > > I guess the agent will take care of all the

Re: trap information interchange: in text format

2007-03-21 Thread Joao Miguel Ferreira
On Wed, 2007-03-21 at 15:54 +, Dave Shield wrote: > On 21/03/07, Joao Miguel Ferreira <[EMAIL PROTECTED]> wrote: > > I need to find a suitable string format for receiving information to be > > sent as traps. > > Are you looking at generating SNMPv1-style traps, or SNMPv2 > notifications?

Re: trap information interchange: in text format

2007-03-21 Thread Dave Shield
On 21/03/07, Joao Miguel Ferreira <[EMAIL PROTECTED]> wrote: > I need to find a suitable string format for receiving information to be > sent as traps. Are you looking at generating SNMPv1-style traps, or SNMPv2 notifications?Will you need to specify version information (including community/

RE: Trap V1 and Trap V2 on the same company

2007-03-14 Thread Porat, Dan
[mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 4:14 PM To: Porat, Dan Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Trap V1 and Trap V2 on the same company On Wed, 2007-03-14 at 14:26 +0200, Porat, Dan wrote: > Hi there! > > I have a few questions . > > &g

Re: Trap V1 and Trap V2 on the same company

2007-03-14 Thread Joao Miguel Ferreira
On Wed, 2007-03-14 at 14:26 +0200, Porat, Dan wrote: > Hi there! > > I have a few questions . > > > > 1.Has anyone faced a situation in which he had to issue both traps V1 > and V2 for different managers on the same time ? For snmmpd this is quite indiferent. You can configure as many trapsin

Re: Trap V1 and Trap V2 on the same company

2007-03-14 Thread Dave Shield
On 14/03/07, Porat, Dan <[EMAIL PROTECTED]> wrote: > 1.Has anyone faced a situation in which he had to issue both traps V1 and V2 > for different managers on the same time ? Is this from the agent, or a client? > 2.Is the an abstraction level which enables me to issue a GENERIC trap , and > acco

Re: trap generator

2007-02-13 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 07/02

Re: trap

2007-02-07 Thread Dave Shield
On 07/02/07, Hamid Taromian <[EMAIL PROTECTED]> wrote: > when i use snmptrap i can send traps to my managing station. but when i use > send_v2trap function in my code nothing appears on my managers snmptrapd/ How have you configured the trap destinations in 'snmpd.conf'? Please see the FAQ entry:

Re: trap generator

2007-02-05 Thread Dave Shield
On 05/02/07, twiety20002 a <[EMAIL PROTECTED]> wrote: > i want to write a code for SNMP "trap generator"..from agent..so any one can > guide..frm where to start Have a look at the FAQ entry: How can I get the agent to generate a trap (or inform)? http://www.net-snmp.org/wiki/index.php/

Re: Trap Forwarding on TCP

2007-02-02 Thread Dave Shield
On 02/02/07, news gonzo news gonzo <[EMAIL PROTECTED]> wrote: > I have a quick question, Is it possible to forward SNMP Trap on TCP ? Untested, but try forward default tcp:somehost:162 Dave - Using Tomcat but need to

Re: TRAP dump

2006-12-04 Thread Dave Shield
On 04/12/06, Treesa Fairy Joseph <[EMAIL PROTECTED]> wrote: > How can i get the trap display on the command line, rather than > checking it through /var/log/messages file? Run the trap receiver as snmptrapd -f -Lo Dave ---

Re: Trap related query

2006-11-22 Thread Mike Schmidt
Hi, The varbinds are passed via stdin. This is documented in the man pages for snmptrapd.conf and an exmaple is in the traptoemail script provided with net-snmp Mike Srivastava, Namburi (IE10) wrote: Hi, Please provide inputs to resolve this I’m able to capture snmp trap using snmptrapd

Re: trap for snmp v3

2006-11-14 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 14/1

Re: trap for snmp v3

2006-11-13 Thread Dave Shield
On 13/11/06, Jing Guan <[EMAIL PROTECTED]> wrote: > I got snmp v2c trap by setting "monitor" directive in the "snmpd.conf" file. > Is it possible for me to get snmp v3 trap with "monitor" directive? The "monitor" directive will attempt to trigger suitable notifications. But it doesn't determine t

Re: Trap enterprise-code vs specific-code

2006-07-18 Thread Ovidiu Deac
Thanks for the answer. I do the following binding: snmpTrapOID.0 = .1.3.6.1.4.1..15.5 And then I set the snmpd.conf like this: trapsink localhost informsink localhost And I get the following output from snmptrapd: 2006-07-18 10:27:15 ovidiu.ro [192.168.0.11] (via UDP: [127.0.0.1]:60763) TRA

Re: Trap enterprise-code vs specific-code

2006-07-17 Thread Ovidiu Deac
I add the binding: snmpTrapOid.0(1.3.6.1.6.3.1.1.4.1.0) = MyTrapOid(.1.3.6.1.4.1.23668..15.5) - ASN_OBJECT_ID So basically everything should be fixed from masteragent config file. Thanks a lot for the answer. Ovidiu Dave Shield wrote: > On 17/07/06, Ovidiu Deac <[EMAIL PROTECTED]> wrote: >

Re: Trap enterprise-code vs specific-code

2006-07-17 Thread Dave Shield
On 17/07/06, Ovidiu Deac <[EMAIL PROTECTED]> wrote: > Hello everybody, > > I am working on an application that sends SNMP traps when some special > conditions occur. The traps are sent using send_v2trap() like this: > > 1. create a netsnmp_variable_list > 2. add to it the trap oid as a variable of

Re: Trap source IP

2006-05-23 Thread Thomas Anders
[EMAIL PROTECTED] wrote: Looks like the directive clientaddr is not working to set the trap source IP in 5.3 netsnmp release. Can somebody tell me if they have this working at all? It's supposed to be working. Are you aware that this is a snmp.conf (not snmpd.conf) directive? If you put it in

Re: Trap sent for no procTable error?

2006-03-03 Thread Dave Shield
On Thu, 2006-03-02 at 13:22 -0500, Jean-Sebastien Morisset wrote: > On Thu, Mar 02, 2006 at 05:25:30PM +, Dave Shield wrote: > > What does walking the procTable show? > Everything appears normal: [snip] Is that the results of walking the table immediately after the trap arrives, or at a r

Re: Trap sent for no procTable error?

2006-03-02 Thread Jean-Sebastien Morisset
On Thu, Mar 02, 2006 at 05:25:30PM +, Dave Shield wrote: > On Thu, 2006-03-02 at 08:10 -0500, Jean-Sebastien Morisset wrote: >> I seem to have a little problem. I have several Net-SNMP v5.3.0.1 >> clients on various Solaris servers, and I get the following trap from >> several of them: >> >>

  1   2   >