Fw: Trap Sending Not OK.

2024-04-17 Thread Pramav S
Issue: Trap not being sent from Application. Context: Currently, I am porting application from CentOS 7 to Oracle Linux. In CentOS7, Libraries from 5.7.3 was used by the Application. All things works OK. SNMP GET/SET and Traps send from Application was OK. With Oracle Linux - Libraries from

Authentication failure trap sending.

2021-05-30 Thread Pavel Fridland
Hi All. We are using the net-snmp ver.5.7.3. We see that "Authentication failure trap" is not sending in case of "Unknown user", but this "Authentication failure trap" is sending in case of "Authentication failure (invalid key)". We used the ucd

Re: Trap engine ID eth0

2020-06-29 Thread Wes Hardaker via Net-snmp-coders
Philippe Denis writes: > Hello all, > > I have a question linked to snmp traps in V3 version. > Sorry for responding so late, but you should read this page which discusses how v3 traps and informs work with respect to engineIDs: http://www.net-snmp.org/wiki/index.php/TUT:snmptrap_SNMPv3 -- W

Trap engine ID eth0

2020-05-17 Thread Philippe Denis
to send a SNMP V3 Trap by using the EngineID linked to eth0 for example. The main question which hidden is: How the receiver knows this engine ID ? Or Do we have to use a hard coded value ? Is there a key exchange mechanism ? For snmpset or snmpget, this behavior is described in the snmpd.conf

Re: [netsnmp-coders] missing information in logmatch trap

2019-10-04 Thread Thommandra Gowtham
Thanks a lot Bill. I will use the inbuf variable to send a trap(will use a dummy custom MIB table) using sendv2_trap(). Thanks for the help. Regards, Gowtham On Sun, Sep 29, 2019, 20:57 Bill Fenner wrote: > On Sat, Sep 28, 2019 at 10:14 AM Thommandra Gowtham < > [email protected]

psuedo IP address in trap payload

2019-09-30 Thread Pushpa Thimmaiah
Hi All, Does net-snmp support providing Psuedo IP in outgoing trap *settings:* 1. Linux Device has vlans eth1.222 IP : 192.168.1.222 <-- Interface-1 eth1.444 IP : 192.168.2.444<-- Interface-2 Uses 'snmptrap' tool to send traps out. *Requirement:* 1. All traps sh

Re: [netsnmp-coders] missing information in logmatch trap

2019-09-29 Thread Bill Fenner
On Sat, Sep 28, 2019 at 10:14 AM Thommandra Gowtham wrote: > Thank you Bill for your response. > > When you said that I have configured two separate features, can you > explain? How else can we get a logmatch trap by just one directive? > You currently can not. That is how I imag

Re: [netsnmp-coders] missing information in logmatch trap

2019-09-28 Thread Thommandra Gowtham
Thank you Bill for your response. When you said that I have configured two separate features, can you explain? How else can we get a logmatch trap by just one directive? For b), which part of the code has the actual string that is matched? I can probably use it to raise a trap if needed. I have

Re: [netsnmp-coders] missing information in logmatch trap

2019-09-27 Thread Bill Fenner
Hi Gowtham, Please file your request at https://github.com/net-snmp/net-snmp/issues . The reason the info is not present in the trap is because you have configured two separate features: 1. count log file matches in the logMatch table - note that there is no place in this table for a list of

Re: [netsnmp-coders] missing information in logmatch trap

2019-09-23 Thread Thommandra Gowtham
e because we get a trap like > below when we give a '.*' in pattern > > DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (3022) 0:00:30.22 > SNMPv2-MIB::snmpTrapOID.0 = OID: DISMAN-EVENT-MIB::mteTriggerFired > DISMAN-EVENT-MIB::mteHotTrigger.0 = STRING: Log Match >

Re: [netsnmp-coders] missing information in logmatch trap

2019-09-06 Thread Thommandra Gowtham
Jeff, Thanks for your reply. It was a deliberate mail to net-snmp-coders. Because, I knew about the pattern matching but that would not suffice because we get a trap like below when we give a '.*' in pattern DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (3022) 0:00:30.22

Re: [netsnmp-coders] missing information in logmatch trap

2019-09-06 Thread Jeff Gehlbach
On 9/5/19 10:58 PM, Thommandra Gowtham wrote: > - How can we get more information in a logmatch trap other than the > pattern matched? Making your pattern match more text should do the trick. For example: logmatch loginFailure /var/log/auth.log 30 Failed password for .* BTW, this k

missing information in logmatch trap

2019-09-05 Thread Thommandra Gowtham
Hi I am using net-snmp 5.7.3 on Ubuntu and have a few questions regarding logmatch trap - How can we get more information in a logmatch trap other than the pattern matched? For example if we have below logmatch loginFailure /var/log/auth.log 30 Failed password monitor -r 10 -o logMatchName -o

Trap server address in snmpd.conf

2019-05-22 Thread Deepak Sachan
Heĺlo In snmpd.conf trap server address is defined as Trap2sink 192.168.1.10 public 162 If i edit the snmpd.conf file and changed address to 192.168.1.010 then traps are not received at trap receiver. Help required. Thanks in advance ___ Net-snmp-coders

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.

[PATCH 9/9] SNMP-TARGET-MIB: Add SNMPv3 USM trap testcases

2018-06-21 Thread Bart Van Assche
+# +# SNMPv3 dynamic trap config +# +# Input variables: +# NOTIFYTYPE trap|inform +# TRAPSESS yes|no +# DYNTRAPyes|no +# + +SKIPIFNOT NETSNMP_SECMOD_USM + +## Defaults +[ "x$NOTIFYTYPE" = "x" ] && NOTIFYTYPE="trap" +[ "x$TRAPSESS"

[PATCH 8/9] SNMP-TARGET-MIB: Send dynamic traps even if no trap sessions have been defined

2018-06-21 Thread Bart Van Assche
The counters _v1_sessions and _v2_sessions in the source file agent/agent_trap.c keep track of how many trap sessions have been created. These counters are not updated if a row is added to snmpTargetAddrTable. The result is that all snmpTargetAddrTable rows are ignored if no trap sessions have

Re: Adding description within trap PDU

2018-01-16 Thread Bill Fenner
7; >>> as a good reference on how to interpret the specs. >>> >>> For TRAPS it says: The optional VARIABLES clause of the TRAP-TYPE >>> construct >>> is used to specify one or more scalar or columnar objects that describe >>> the event." >>&g

Re: Adding description within trap PDU

2018-01-16 Thread Fulko Hew
On Mon, Jan 15, 2018 at 11:56 PM, Bart Van Assche wrote: > On 01/15/18 20:22, Fulko Hew wrote: > >> b) I've always considered David Perkins' book 'Understanding SNMP MIBs' >> as a good reference on how to interpret the specs. >> >> For TRAPS

Re: Adding description within trap PDU

2018-01-15 Thread Bart Van Assche
On 01/15/18 20:22, Fulko Hew wrote: b) I've always considered David Perkins' book 'Understanding SNMP MIBs' as a good reference on how to interpret the specs. For TRAPS it says: The optional VARIABLES clause of the TRAP-TYPE construct is used to specify one or more scalar

Re: Adding description within trap PDU

2018-01-15 Thread Fulko Hew
On Mon, Jan 15, 2018 at 10:15 PM, Bart Van Assche wrote: > On 01/15/18 18:32, Fulko Hew wrote: > >> Yes, you could, but... >> >> If the definition of the trap doesn't include the fields that you want, >> you are not (technically) allowed to add them. >> &

Re: Adding description within trap PDU

2018-01-15 Thread Bart Van Assche
On 01/15/18 18:32, Fulko Hew wrote: Yes, you could, but... If the definition of the trap doesn't include the fields that you want, you are not (technically) allowed to add them. This is important because the receivers are designed to expect what the definitions (in the MIB files) specif

Re: Adding description within trap PDU

2018-01-15 Thread Fulko Hew
Yes, you could, but... If the definition of the trap doesn't include the fields that you want, you are not (technically) allowed to add them. This is important because the receivers are designed to expect what the definitions (in the MIB files) specify. No more, no less, and in the order de

Re: Adding description within trap PDU

2018-01-15 Thread Simon Chamlian
Never mind, I found the answer. Yes it can by adding a '-s "some text". Thanks, S On Mon, Jan 15, 2018 at 2:16 PM, Simon Chamlian wrote: > Hi, > > Is it possible to add a description within a trap (either v2 or v3)? > > for example: > snmptrap -v 2c -c pub

Adding description within trap PDU

2018-01-15 Thread Simon Chamlian
Hi, Is it possible to add a description within a trap (either v2 or v3)? for example: snmptrap -v 2c -c public 172.27.37.227 "" coldStart.0 snmptrap -v 3 -u Admin -a MD5 -A Admin-00 -l authNoPriv 172.27.37.227 "" coldStart.0 Is there an way to add a descriptive text? A

Re: Trap session query

2017-12-14 Thread Robert Story
On Thu, 14 Dec 2017 09:45:18 + Madhusudhana wrote: MR> Below is the configuration, where all 3 sessions are destined MR> to same IP and port (could be a wrong configuration). In this MR> case, will there be 3 trapsessions to same destination IP:port? MR> Or will SNMP filter out the duplicated s

RE: Trap session query

2017-12-14 Thread Madhusudhana R
authNoPriv 192.168.0.100:162 trapsess -v 3 -u Operator1 -l authNoPriv 192.168.0.100:162 Appreciate the response. Thanks in advance. Regards, Madhu From: Madhusudhana R Sent: Thursday, November 09, 2017 5:05 PM To: [email protected] Subject: Trap session query Hi Coders, My query is

答复: how to add trap manager dynamic in the code

2017-11-25 Thread YANG Kaigen
Thanks Robert, It can work. Br, kaigeny -邮件原件- 发件人: NetSNMP Mailbox [mailto:[email protected]] 代表 Robert Story 发送时间: 2017年11月23日 16:15 收件人: YANG Kaigen 抄送: [email protected] 主题: Re: how to add trap manager dynamic in the code On Tue, 14 Nov 2017 06:46:49

Re: how to add trap manager dynamic in the code

2017-11-23 Thread Robert Story
On Tue, 14 Nov 2017 06:46:49 + YANG wrote: YK> I find net-snmp using configure file to configure the manager YK> that want receive the trap. Such as lines in snmpd.conf: YK> YK> trapsink localhost public YK> trap2sinklocalhost public YK> YK> We want using p

Re: Trap session query

2017-11-23 Thread Robert Story
On Thu, 9 Nov 2017 11:34:53 + Madhusudhana wrote: MR> My query is regarding trap sessions. MR> I have a below configuration where I have a trap user MR> 'Operator1'created with 3 trap sessions with different IP: Port MR> as shown below. MR> MR> createUser Operator

how to add trap manager dynamic in the code

2017-11-14 Thread YANG Kaigen
Hi all, I find net-snmp using configure file to configure the manager that want receive the trap. Such as lines in snmpd.conf: trapsink localhost public trap2sinklocalhost public We want using pollingTable to manage the user of the system, so the manager will register into

Trap session query

2017-11-09 Thread Madhusudhana R
Hi Coders, My query is regarding trap sessions. I have a below configuration where I have a trap user 'Operator1'created with 3 trap sessions with different IP: Port as shown below. createUser Operator1 MD5 "password@123" trapsess -v 3 -u Operator1 -l authNoPriv 192.168.0

Re: SNMP Trap not working

2017-10-06 Thread Robert Story
On Tue, 8 Aug 2017 20:42:39 + Michael wrote: MS> This is my first time working with SNMP, but after reading the MS> SNMP pages I'm still having trouble getting a simple shell MS> script to run when receiving a trap. Did you resolve this issue? MS> Now it seems that the tra

SNMP Trap generator

2017-08-28 Thread vikrant patel
Hello Sir, I am using snmp to generate trap on some events using monitor and notificationEvent. As per configurations it will generate trap *when expression matches and monitor will not fire again until the condition becomes false and then matches again*. I want to generate traps on some

Re: SNMP Trap not working

2017-08-12 Thread Magnus Fromreide
On Tue, Aug 08, 2017 at 08:42:39PM +, Michael Stein wrote: > This is my first time working with SNMP, but after reading the SNMP pages I'm > still having trouble getting a simple shell script to run when receiving a > trap. > > My /etc/snmp/snmptrapd.conf

SNMP Trap not working

2017-08-09 Thread Michael Stein
This is my first time working with SNMP, but after reading the SNMP pages I'm still having trouble getting a simple shell script to run when receiving a trap. My /etc/snmp/snmptrapd.conf file looks like this: # Example configuration file for snmptrapd # # No traps are handled by default

Varbind ordering in SNMPv2 trap

2017-07-18 Thread e-mail peter.shepherd999 via Net-snmp-coders
I'm designing an embedded network product including net-snmp-5.7.2.In testing, the ordering of varbinds in a linkDown or linkUp trap seems to be variable, in that the Enterprise varbind can appear at different places in the order. The other varbinds all stay in order.Can anyone explain

RE: net-snmp5.7.3 non-compliance to RFC2578 on integer overflows for few trap types

2017-06-29 Thread Madhusudhana R
o fail; break; ... /* code continues */ ... } Regards, Madhu From: Bill Fenner [mailto:[email protected]] Sent: Wednesday, June 28, 2017 7:58 PM To: Madhusudhana R Cc: [email protected]; Pavan Tatavarthi Subject: Re: net-snmp5.7.3 non-compliance to RFC2578 on integer

Re: net-snmp5.7.3 non-compliance to RFC2578 on integer overflows for few trap types

2017-06-28 Thread Bill Fenner
value be given to netsnmp. Please help me on this. > > > > Regards, > > Madhu > > *From:* Bill Fenner [mailto:[email protected]] > *Sent:* Tuesday, June 27, 2017 8:53 PM > *To:* Madhusudhana R > *Cc:* [email protected] > *Subject:* Re: net-snmp5.7.

RE: net-snmp5.7.3 non-compliance to RFC2578 on integer overflows for few trap types

2017-06-27 Thread Madhusudhana R
: Madhusudhana R Cc: [email protected] Subject: Re: net-snmp5.7.3 non-compliance to RFC2578 on integer overflows for few trap types Madhu, How are you supplying the values to net-snmp? Many of these can be explained by net-snmp's internal representation (e.g., using "u

Re: net-snmp5.7.3 non-compliance to RFC2578 on integer overflows for few trap types

2017-06-27 Thread Bill Fenner
hese limitations are up to the MIB module implementation to enforce, so the issues that you are seeing sound mostly like GIGO to me. Bill On Mon, Jun 19, 2017 at 4:09 AM, Madhusudhana R wrote: > Hi Coders, > > > > I have below queries regarding trap types where I found little m

RE: net-snmp5.7.3 non-compliance to RFC2578 on integer overflows for few trap types

2017-06-21 Thread Madhusudhana R
Can anybody please help me on the queries I posted. Thanks. From: Madhusudhana R Sent: Monday, June 19, 2017 1:40 PM To: [email protected] Subject: net-snmp5.7.3 non-compliance to RFC2578 on integer overflows for few trap types Hi Coders, I have below queries regarding

net-snmp5.7.3 non-compliance to RFC2578 on integer overflows for few trap types

2017-06-19 Thread Madhusudhana R
Hi Coders, I have below queries regarding trap types where I found little mismatch with RFC2578 definition and net-snmp5.7.3 behavior on boundary values. It will be of great help if someone can clarify on this. For convenience, below definitions are used. INT32_MAX 2147483647 NINT32_MAX

RE: Support for heterogeneous trap types

2017-06-06 Thread Madhusudhana R
; [email protected] Subject: Re: Support for heterogeneous trap types If an object contain 1 byte string, it will be BIT STRING. if an object contains more than 1 and less than 65535 bytes, OCTET STRING On Tue, Jun 6, 2017 at 10:24 AM, Madhusudhana R mailto:madhusudhan

Re: Support for heterogeneous trap types

2017-06-06 Thread Pranesh Kulkarni
Fenner [mailto:[email protected]] > *Sent:* Monday, June 05, 2017 9:54 PM > *To:* Madhusudhana R > *Cc:* [email protected] > *Subject:* Re: Support for heterogeneous trap types > > > > On Mon, Jun 5, 2017 at 10:55 AM, Madhusudhana R > wrote: >

RE: Support for heterogeneous trap types

2017-06-05 Thread Madhusudhana R
[email protected]] Sent: Monday, June 05, 2017 9:54 PM To: Madhusudhana R Cc: [email protected] Subject: Re: Support for heterogeneous trap types On Mon, Jun 5, 2017 at 10:55 AM, Madhusudhana R mailto:[email protected]>> wrote: Hi Coders, My query is, does net-snmp s

Re: Support for heterogeneous trap types

2017-06-05 Thread Bill Fenner
On Mon, Jun 5, 2017 at 10:55 AM, Madhusudhana R wrote: > Hi Coders, > > > > My query is, does net-snmp support heterogeneous trap types? > > More precisely, is it possible to send traps with different data types > like integer signed/unsigned/32bit/64bit , strings etc.

Support for heterogeneous trap types

2017-06-05 Thread Madhusudhana R
Hi Coders, My query is, does net-snmp support heterogeneous trap types? More precisely, is it possible to send traps with different data types like integer signed/unsigned/32bit/64bit , strings etc. during same execution Use case: For our convenience, we are reading the traps from a file which

snmpv1 trap

2016-12-19 Thread seven
Hi Robert, I try to send snmpv1 trap with 'send_easy_trap(int trap, int specific)'. but send_easy_trap(4, 0) can not send a trap, all the 0-6 is ok except 4. the number 4 is authfail. do I send trap with wrong function or there is another way? best regards seven On 2016-03-17 01:4

Re: SNMP Trap Receiver

2016-07-25 Thread Niels Baggesen
Den 25-07-2016 kl. 14:57 skrev Krishnaraj: > Dear Coders, > > I am working on a SNMP manager application in linux. I could understand > the mechanism of GET, SET requests from the sample apps. However the > mechanism of TRAP receiver is quite complex. I unable to understand it >

SNMP Trap Receiver

2016-07-25 Thread Krishnaraj
Dear Coders, I am working on a SNMP manager application in linux. I could understand the mechanism of GET, SET requests from the sample apps. However the mechanism of TRAP receiver is quite complex. I unable to understand it and could not find much references on its working. My idea is to use

NET-SNMP agent trap v3 configuration

2016-07-05 Thread Boris Levin
Im trying to implement agent trap v3 sender using net-snmp. currently my status is im able to start snmpd and daemon is sending coldstart trap to host defined in snmpd.conf my snmpd.conf: createUser myuser SHA "12345678" AES rouser myuser auth trapsess -v 3 -u myuser -n cont

Re: Net SNMP Trap

2016-02-23 Thread Niels Baggesen
Den 23-02-2016 kl. 13:37 skrev Anivesh Pandeya: > > How to generate a automated trap for linkup and linkdown for > snmpv2c?? <mailto:[email protected]> > > OS : RHEL4 Thin Client > SNMP : NET-SNMP- 5.1.2 Any good reason for being stuck with such an ou

Net SNMP Trap

2016-02-23 Thread Anivesh Pandeya
How to generate a automated trap for linkup and linkdown for snmpv2c?? OS : RHEL4 Thin Client SNMP : NET-SNMP- 5.1.2 SNMPv3 is not implemented. I want to monitor the system for traps in case of link up and link down. What is the configurations i need to add in the snmpd.conf files?? I have

Re: How to capture ipv6 address from a snmp trap

2015-07-13 Thread Robert Story
On Thu, 28 May 2015 18:41:04 +0530 Ajit wrote: AA> I have successfully configured and run snmptrapd to capture AA> snmp v2 and v3 traps. But, the agent_addr field from snmp_pdu AA> doesn't contain ip address in case of ipv6. So, How can I get AA> the ip address ? What release are you using? AA> A

How to capture ipv6 address from a snmp trap

2015-05-28 Thread Ajit Ambekar
Hi, I have successfully configured and run snmptrapd to capture snmp v2 and v3 traps. But, the agent_addr field from snmp_pdu doesn't contain ip address in case of ipv6. So, How can I get the ip address ? Also, is there any way to capture the traps whithout using engine id ?. It gives me "Unknown

v2c trap source field string incorrect?

2015-05-22 Thread Raymond P Chudzinski
I have a need to get the IP address (v4 and/or v6) displayed in the snmptrapd logs. - I disable the hostname resolution with the ‘-n’ switch. - I print %B The resulting string is “[xxx.xxx.xxx.xxx]:161->[yyy.yyy.yyy.yyy]” where I would expect to get the just the address (be it ipv4 or ipv6).

RE: SNMPv3 Trap Question

2014-10-14 Thread Gary Dunlap
callback so it’s not easy to connect the dots. Thanks for responding on this. Gary From: Bill Fenner [mailto:[email protected]] Sent: Sunday, September 14, 2014 4:19 PM To: Gary Dunlap Cc: [email protected]; [email protected] Subject: Re: SNMPv3 Trap Question

Re: SNMPv3 Trap Question

2014-09-14 Thread Bill Fenner
On Wed, Sep 3, 2014 at 11:10 AM, Gary Dunlap wrote: > Hi. I’m having trouble with some of the SNMPv3 traps sent by snmpd being > rejected, and I think it’s because of the SNMPv3 replay protection > mechanism. > > > > It looks like when some event causes a reconfigure of snmpd > Can you say more

linkdown trap was generated for unused interface

2013-09-20 Thread liMerlin
WN;//Here we can change the status to any other flag, such as unused, }else { ifentry->admin_status = IFADMINSTATUS_DOWN; ifentry->oper_status = IFOPERSTATUS_DOWN;}Way 2:Change the condition of trigger the trap, let it support "ifOperStatus == 2 A

linkdown trap was generated for unused interface

2013-09-18 Thread Merlin li
TATUS_DOWN;//Here we can change the status to any other flag, such as unused, } else { ifentry->admin_status = IFADMINSTATUS_DOWN; ifentry->oper_status = IFOPERSTATUS_DOWN; } Way 2: Change the condition of trigger the trap, let it support

snmptrapd_handler.c and netsnmp_pdu (Trap receiver implementation)

2013-07-24 Thread Ruben Vacing
I made a trap receiver application. I just only modified the snmptrapd_handler in the next way: int print_handler( netsnmp_pdu *pdu, netsnmp_transport *transport, netsnmp_trapd_handler *handler){ int iii= ems_flush_traps(pdu

snmptrapd_handler.c and netsnmp_pdu (Trap receiver implementation)

2013-07-16 Thread Ruben Vacing
I made a trap receiver application. I just only modified the snmptrapd_handler in the next way: int print_handler( netsnmp_pdu *pdu, netsnmp_transport *transport, netsnmp_trapd_handler *handler){ int iii= ems_flush_traps(pdu

snmptrapd_handler.c and netsnmp_pdu (Trap receiver implementation)

2013-07-16 Thread Ruben Vacing
I made a trap receiver application. I just only modified the snmptrapd_handler in the next way: int print_handler( netsnmp_pdu *pdu, netsnmp_transport *transport, netsnmp_trapd_handler *handler){ int iii= ems_flush_traps(pdu

R: snmptrapd snmptt carriage return line feed inside trap text string

2013-06-06 Thread Diego Campoli
13 22:37 A: Diego Campoli; [email protected] Oggetto: Re: snmptrapd snmptt carriage return line feed inside trap text string Den 04-06-2013 13:02, Diego Campoli skrev: > So as you can see Hex strings variables are correctly handled. > > Thank you for your time, I wait

Re: snmptrapd snmptt carriage return line feed inside trap text string

2013-06-04 Thread Niels Baggesen
Den 04-06-2013 13:02, Diego Campoli skrev: > So as you can see Hex strings variables are correctly handled. > > Thank you for your time, I wait you for a feedback :) What would you expect snmptrapd should do about strings with embedded newlines? /Niels -- Niels Baggesen -- @home -- Århus -- D

snmptrapd snmptt carriage return line feed inside trap text string

2013-06-04 Thread Diego Campoli
nd passive monitoring checks installed on Vmware Virtual Machine with Ubuntu 12.04.1 LTS. I need to receive trap with Nagios so I installed and configured Net-SNMP / UCD-SNMP packages and snmptrapd. Started snmptrapd: sudo snmptrapd -A -n -d -On -f -d -Lf "/var/log/snmptt/snmptrapd.log"

how to programmatically send out a trap?

2013-02-20 Thread Stéphane Charette
If an application which until now has no calls to net-snmp needs to send out a trap to all the trap sinks defined, what is the proper way to do it? I've found the following in agent_trap.h: send_easy_trap(...) send_trap_pdu(...) send_v2trap(...) send_trap_vars(...) send_enterprise_trap

INFORM can't be received after restart of trap receiver

2012-12-14 Thread Shu, Zhong Hua SPA RD NKG
Hello I using send_v2trap() function to send out inform notification from agent to trap receiver of NMS. The notification configured in below standard MIB via SNMP set command: - SNMP-NOTIFICATION-MIB::snmpNotifyTable - SNMP-TARGET-MIB::snmpTargetAddrTable - SNMP-TARGET-MIB

INFORM can't be received after restart of trap receiver

2012-12-13 Thread Shu, Zhong Hua SPA RD NKG
Hello I using send_v2trap() function to send out inform notification from agent to trap receiver of NMS. The notification configured in below standard MIB via SNMP set command: - SNMP-NOTIFICATION-MIB::snmpNotifyTable - SNMP-TARGET-MIB::snmpTargetAddrTable - SNMP-TARGET-MIB

Re: Regarding net-snmp trap

2012-12-12 Thread Niels Baggesen
what format you want to see the tra/inform in. Now you get three copies of each trap. > Thanks for your quick help. You're welcome /Niels -- Niels Baggesen - @home - Århus - Denmark - [email protected] The purpose of computing is insight, not numb

Re: Regarding net-snmp trap

2012-12-12 Thread SureshCilutions S
012 at 07:33:07PM -0500, SureshCilutions S wrote: > > But somehow the iReasoning is not receiving the > > traps[Trap port 162]. Do I need to add anything > > in C:\usr\etc\snmp\snmpd.conf? Could anyone help me about how to receive > > the trap? > > You do have a t

Re: Regarding net-snmp trap

2012-12-11 Thread Niels Baggesen
On Tue, Dec 11, 2012 at 07:33:07PM -0500, SureshCilutions S wrote: > But somehow the iReasoning is not receiving the > traps[Trap port 162]. Do I need to add anything > in C:\usr\etc\snmp\snmpd.conf? Could anyone help me about how to receive > the trap? You do have a trapsink direct

Regarding net-snmp trap

2012-12-11 Thread SureshCilutions S
Hi, I am new to net-snmp. I have net-snmp 5.7.2 and iReasoning MIB browser on Windows 7. I am running the snmpd agent(compiled on vc++) which has send_easy_trap(0,0) /*cold start trap*/. Also I have extended the MIB module by adding init_notification()[notification.c] for testing which has

Re: Trap Severity Levels Confusion

2012-10-08 Thread Magnus Fromreide
On Tue, 2012-10-09 at 10:18 +0530, Jatin Bodarya wrote: > notificationEvent ifMtu.1 IF-MIB::ifMtu.1 1.3.6.1.2.1.2.2.1.4.1 > > monitor -I -u root -s -t -r 18 "Warn: High ipp Usage" -e ifMtu.1 > 1.3.6.1.2.1.2.2.1.4.1 != > > above lines are of my "snmpd.conf"

Trap Severity Levels Confusion

2012-10-08 Thread Jatin Bodarya
notificationEvent ifMtu.1 IF-MIB::ifMtu.1 1.3.6.1.2.1.2.2.1.4.1 monitor -I -u root -s -t -r 18 "Warn: High ipp Usage" -e ifMtu.1 1.3.6.1.2.1.2.2.1.4.1 != above lines are of my "snmpd.conf" file which is generating a trap when condition get false. my issue is I want to send &

Trap generation Problem with DisMan Schedule MIB

2012-09-17 Thread Jatin Bodarya
Hello sir,I have written following line in my "snmpd.conf". but it is not working...It is not sending any kind of trap notificationEvent ifInOctets.2 IF-MIB::ifInOctets.2 1.3.6.1.2.1.2.2.1.10.2 monitor -D -r 20 -S -u root -e ifInOctets.2 "Warn: High value" 1.3.6.1.2.1.2

snmpd.conf: trap generation errors !!!

2012-09-16 Thread Jatin Bodarya
Hello, sir Below is my snmpd.conf file. When I am start my service "snmpd" as I have configure with DISMAN mib, It is generating "coldstart" trap. I am able to see it on remote machine. snmpv3 queries are also working fine with GET/WALK requests. As I read in

snmp trap trigger problem...

2012-09-13 Thread Jatin Bodarya
the value goes above 90 it should call below cpuUsageTrap() function for generating TRAP. In short how can I trigger a trap function ??? Please help me with this.. Thanks in advance. void cpuUsageTrap() { DEBUGMSGTL(("example_notification","initializing (

snmp trap function help

2012-09-02 Thread Jatin Bodarya
Hell all, need help !! Below are my two functions for trap generation... Can anyone tell me how can I pass any external argument to this functions? I want to use some external values that I can send with trap..Help Me.. And can anyone tell me what these two arguements are useful for it

need Trap function help

2012-08-29 Thread Jatin Bodarya
ptrap_oid, OID_LENGTH(snmptrap_oid), ASN_INTEGER, (u_char *)&highCpuUsage, sizeof(highCpuUsage)); /* * Add any extra (optional) objects here */ /* * Send the trap to the list of configured destinations * and clean up */ send_v2tr

Re: Dynamic trap address

2012-07-11 Thread Wes Hardaker
"Scales, Neil" writes: > Is there any way to dynamically change the trap destination address? You can set destinations dynamically using the SNMP-NOTIFICATION-MIB and SNMP-TARGET-MIB. But you can't change one that was defined in a snmp.conf file (the row will be read-only

Dynamic trap address

2012-07-11 Thread Scales, Neil
Is there any way to dynamically change the trap destination address? I'm using net-snmp in an embedded system. My application communicates with snmpd via AgentX. When the device powers up, it determines its own IP address (not via DHCP) and can then derive the address of the trap destin

SNMP V3 trap receiver

2012-05-29 Thread Rathod, Nitin
Hello, Can anyone suggest if there is any open source SNMP v3 trap receiver JAVA library which can be used ?? Regards, Nitin R -- Live Security Virtual Conference Exclusive live event will cover all the ways today&#

Re: Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Chalapathi Rao
see what happens. > > > > >>Issue: Traps can be filtered (snmpTargetMIB, snmpNotificationMIB) > >> but INFORMs can't be. > > > > It's been a while since I looked at the notification filtering code, > > but I don't believe the

Re: Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Dave Shield
On 4 April 2012 14:24, Chalapathi Rao wrote: > Thanks Dave. Shall try the new version. Note that I doubt the Net-SNMP software version is relevant here. I strongly suspect the issue is related to SNMPv3 Informs, rather than filtering of Traps-vs-Informs. Dave ---

Re: Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Dave Shield
ork distinguishes between > Traps and Informs. >The basic snmpNotifyTable has a field snmpNotifyType to > control whether a particular target should be send a trap or > an inform notification. But all of the subsequent filtering is > common to both. > > Perhaps you could giv

Re: Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Dave Shield
The basic snmpNotifyTable has a field snmpNotifyType to control whether a particular target should be send a trap or an inform notification. But all of the subsequent filtering is common to both. Perhaps you could give a little more detail about how exactly you are setting up the trap and inform

Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Chalapathi Rao
if we can hear a say on this. Regards Chalapathi - Velocix Net-SNMP 5.7 FAQ - http://www.net-snmp.org/docs/FAQ.html How can I send a particular trap to selected destinations? -- This is not currently possible. All notifications will be

Estimated release-date for FAQ: Agent 17: How can I send a particular trap to selected destinations?

2012-03-23 Thread Jonas Arvidsson
Hi! Just wonder if you have any idea about when the function discussed in FAQ: Agent 17: "How can I send a particular trap to selected destinatinos?" might be implemented? Med vänlig hälsning/Best regards, Jonas Arvidsson Software Designer R&D Embedded SW Transmode Sys

Re: SNMP V3 Trap Sending Sub-Agent

2012-01-05 Thread Dave Shield
aster agent, and have that master agent send them to the desired trap receiver (using a suitable "trapsess" directive in the main snmpd.conf file). That's how things would work if you use the normal 'send_v2trap' or similar routines. > We have referred snmptrap.c file

SNMP V3 Trap Sending Sub-Agent

2012-01-04 Thread Shibu George
ger application. We have referred snmptrap.c file and wrote function for sending trap (from sub -agent) to SNMP Manager. This is working fine. Is it a right way to send snmp trap from sub-agent? At startup time, sub-agent sends a number of traps to SNMPManager, but sometimes SNMP Manager discarding

Blocking ColdStart(0) Trap by the SNMP agent(snmpd) deamon

2011-12-05 Thread prashant n
Hi, I am able to send the traps based on my application. The first trap generated by the SNMP agent will be ColdStart(0) when the SNMP agent runs. So i want to block the trap *ColdStart* so that whatever i will send the trap becomes first.* Please guide me on this.* * * *Thanks and Regards

Sending notification (SNMP v2 trap) by the SNMP agent using mib2c.notify.conf configuration file

2011-11-29 Thread prashant n
Now suggest me on following things > > 1) What is the actual difference between generating traps by using DisMan > Event MIB and by using 'mib2c.notify.conf' configuration file ? The code template generated by 'mib2c.notify.conf' will give you a routine that c

Re: Sending notification (SNMP v2 trap) by the SNMP agent using mib2c.notify.conf configuration file

2011-11-29 Thread Dave Shield
ib2c.notify.conf' will give you a routine that can be used to send a trap to the configured destinations. But it's then up to you to decide *when* to call this routine, and hence when to trigger the trap. i.e. this routine provides _half_ of the code needed to send the trap. It's

Sending notification (SNMP v2 trap) by the SNMP agent using mib2c.notify.conf configuration file

2011-11-29 Thread prashant n
Hi Dave, *Thanks for your valuable feedback.* * * * * I am able to send SNMPv2 trap using DisMan Event MIB with your great support. I have gone through FAQ* How can i get the agent to generate a trap ( or inform) ?* *Now suggest me on following things* * * 1) What is the

Re: Sending notification (SNMP v2 trap) by the SNMP agent using DisMan Event MIB

2011-11-28 Thread Dave Shield
On 28 November 2011 15:20, prashant n wrote: > 1) How to add variable bindings to trap ? Please read the snmpd.conf(5) man page. In particular, the section describing OPTIONS to the "monitor" directive > 2) ... > But my application requires that DisMan Event MIB must generat

Sending notification (SNMP v2 trap) by the SNMP agent using DisMan Event MIB

2011-11-28 Thread prashant n
Hi Dave, *Thanks for your quick response*. I found solution for trap generation , as i reported problem in previous mail. I included following line in snmpd.conf * monitor -r 10 -e ScalarEvent myScalarTest .1.3.6.1.4.1.38151.1.1.1 > 3* i,e instead

Sending notification (SNMP v2 trap) by the SNMP agent using DisMan Event MIB

2011-11-28 Thread prashant n
hat is the value of 'integerObject.0' ? > Default value of integerObject.0 = 20 Hmmm... that should have generated a trap when the agent started up. Which did you start first - snmpd or snmptrapd? Try leaving snmptrapd running, and stop snmpd. Then start it again

Re: Sending notification (SNMP v2 trap) by the SNMP agent using DisMan Event MIB

2011-11-28 Thread Dave Shield
On 28 November 2011 10:57, prashant n wrote: >> What is the value of 'integerObject.0' ? >  Default value of integerObject.0 = 20 Hmmm... that should have generated a trap when the agent started up. Which did you start first - snmpd or snmptrapd? Try leaving snmptrap

  1   2   3   4   5   6   7   >