Hi all
I have the below requirement
Supporiting SNMP V3 veriosn on device.
Where we SNMP V1 agent already written in C++ code working fine , so we are
planning to use Net-snmp for V3 support.
I know that net-snmp will support using AgentX, but how will I configure this?
2. Second, if any Net-snm
Dear Snmp Community,
I have written a subagent (skeleton generated from subagent.m2c), where the
while loop is as follows:
/* you're main loop here... */
while(keep_running) {
//check and send traps
if (gTrapsAvailable) {
gTrapsAvailable = false;
/
nothing seems to work.
[IPv6_Address]:161
[IPv6_Address]
IPv6_Address
On Thu, Jul 28, 2022 at 3:29 PM Vivek Aditya wrote:
> Hi
>
> This query is regarding setting ipv6 source ip for traps.
> *Query 1*
>
> We are using this api
> *netsnmp_ds_set_string(
Hi
This query is regarding setting ipv6 source ip for traps.
*Query 1*
We are using this api
*netsnmp_ds_set_string(NETSNMP_DS_LIBRARY_ID,NETSNMP_DS_LIB_CLIENT_ADDR_V6,effective_ipv6);*
to set the source-ip.Currently we are passing the ipv6 address as 2001::1
(without enclosing in brackets
t; *To:* [email protected];
> [email protected]
> *Subject:* How to support SNMPv2 mib traps per VRF.
>
> Hi ,
>
>
> We are supporting Multiple snmp servers (snmp server for each VRF).I want
> to enable authenticationfailure traps for each VR
Spell check has done in line.
From: chandrasekharreddy chinnapareddygari
Sent: Wednesday, 20 October, 2021, 14:15
To: [email protected]; [email protected]
Subject: How to support SNMPv2 mib traps per VRF.
Hi ,
We are
Hi ,
We a supporting Multiple snmp servers (snmp server for each VRF).I want to
enable authenticationfailure traps for each VRF.
Net-snmp has inbuilt token authtrapenable .Authentication Failure traps are
sending to the receivers ,If authtrapenable is set to 1 in /etc/snmp/snmpd.conf
.
But
snmptraps from system-1 to NMS-1
1. Is it possible via snmp ? i.e use snmp to forward traps from system-1
to system-2 and system-2 to NMS-1
2. Using router to forward traps is only way?
Thank you,
Pushpa.T
___
Net-snmp-coders mailing list
Net-snmp-coders
Hi,
I have configured the v2c traps with the community which is not created on the
agents.
Ideally traps should not be sent to these type of destinations, as community
does not have proper access permission.
But I am receiving the traps for these destination.
RFC 2573 Reference:
The
m for setting specific
ifXEntry trap enable values and to have this work for actual generation of
linkUp/linkDown traps when enabled. Is there anyone reading this list that
might be able to help me with this?
I forgot to mention originally that I'm using NetSNMP v5.7.3 on Linux.
Thanks,
-
do not ever see the corresponding effect (wrt
linkUp/linkDown traps being issued):
override -rw IF-MIB::ifLinkUpDownTrapEnable.4 integer 1
However, if I remove the override and instead set the MIB object via a
traditional set the corresponding effect (linkUp/linkDown traps being issued)
does indeed
Hi,
I am facing some issues with snmptrapd. snmptrapd is missing some isis
traps. If there are 4 isis traps in tcpdump at certain time. snmptrapd
shows only 3 isis traps.
This could be happening for other trap types too.
How can i fix this issue.
Thanks,
Jayshankar
"Roedersheimer, Drew A. via Net-snmp-coders"
writes:
> Denis Hainsworth wrote:
> > Dug into this some more. I see whats happening and not sure if its a bug
> > per se but
> > I do agree that if there is a non-buggy trap sender its all working
> > properly so will
> > close the bug with some co
Denis Hainsworth wrote:
> Dug into this some more. I see whats happening and not sure if its a bug per
> se but
> I do agree that if there is a non-buggy trap sender its all working properly
> so will
> close the bug with some comments.
I have added some comments to bug #2899 and uploaded the p
On Wed, Dec 19, 2018 at 12:39:07AM +, Roedersheimer, Drew A. wrote:
> Denis Hainsworth wrote:
> > #2899 - snmptrap bug
> > #2900 - snmptrapd bug
> >
> > -denis
>
> Denis,
>
> Sorry for the delayed response. I haven't had time to look at this until
> recently.
>
> Regarding the snmptrapd
Denis Hainsworth wrote:
> #2899 - snmptrap bug
> #2900 - snmptrapd bug
>
> -denis
Denis,
Sorry for the delayed response. I haven't had time to look at this until
recently.
Regarding the snmptrapd bug you created (#2900): I think this is working as
expected.
I compiled and tested v5.7.3 from
On Sat, Nov 10, 2018 at 01:04:38AM +, Roedersheimer, Drew A. wrote:
> Denis Hainsworth wrote:
> >
> > Thanks Drew! Yeah it seems fix snmptrap which was my primary
> > concern.
> > -denis
>
>
> Denis,
>
> If you want this fixed in the net-snmp baseline code, I suggest you open an
> iss
Denis Hainsworth wrote:
>
> Thanks Drew! Yeah it seems fix snmptrap which was my primary
> concern.
> -denis
Denis,
If you want this fixed in the net-snmp baseline code, I suggest you open an
issue on the sourceforge page at: https://sourceforge.net/p/net-snmp/bugs/
If you create a bug r
On Tue, Oct 30, 2018 at 11:31:59PM +, Roedersheimer, Drew A. wrote:
> > From: Denis Hainsworth
> > Sent: Tuesday, October 30, 2018 7:57 AM
> > To: [email protected]
> > Subject: EXTERNAL: Re: 5.7.3 | snmptrap not populating EngineBoots or
> >
> From: Denis Hainsworth
> Sent: Tuesday, October 30, 2018 7:57 AM
> To: [email protected]
> Subject: EXTERNAL: Re: 5.7.3 | snmptrap not populating EngineBoots or
> EngineTime for snmp v3 traps
>
> Just a note to anyone that might run into this. I was
so it just works.
No clue yet when it broke or how easy it might be to fix.
-denis
On Sat, Oct 27, 2018 at 04:06:49PM -0400, Denis Hainsworth wrote:
> so i was hoping to use snmptrap to send snmp v3 traps because it is
> simple and already written. However I have some NMS systems th
so i was hoping to use snmptrap to send snmp v3 traps because it is
simple and already written. However I have some NMS systems that are
pretty stringent about checking EngineBoots and EngineTime even for
traps (I'm not using Inform). So far the nms always reports "message
received ou
Hi Experts
I’m using net-snmp version 5.8 agent code to send traps, I implemented my own
trap sending code and compile it to a dynamic loaded object (myTrap.so), and
loaded in by putting configuration into snmpd.conf like this:
dlmod myTrap /usr/lib/myTrap.so
However, every time when I
Thank you Bill Fenner.
On Sat, Oct 13, 2018 at 8:29 PM Bill Fenner wrote:
> On Thu, Oct 4, 2018 at 1:19 AM Pushpa Thimmaiah <
> [email protected]> wrote:
>
>> Hi All,
>>
>> I have understood that option 'clientAddr' to provide source-IP
On Thu, Oct 4, 2018 at 1:19 AM Pushpa Thimmaiah
wrote:
> Hi All,
>
> I have understood that option 'clientAddr' to provide source-IP address
> for outgoing traps. There is no option to provide source-interface to send
> traps.
> Kindly let me know reason for this r
Hi All,
I have understood that option 'clientAddr' to provide source-IP address
for outgoing traps. There is no option to provide source-interface to send
traps.
Kindly let me know reason for this restriction.
Eg: I have one physical interface 'eth1' and vlans 'eth
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 been
Thank you Bill Fenner.
On Thu, Mar 29, 2018 at 5:01 PM, Bill Fenner wrote:
> On Thu, Mar 29, 2018 at 5:57 AM, Pushpa Thimmaiah <
> [email protected]> wrote:
>
>> Query 1. Which interface does 'snmptrap'/snmpd use to send traps out?
>>
>
On Thu, Mar 29, 2018 at 5:57 AM, Pushpa Thimmaiah <
[email protected]> wrote:
> Query 1. Which interface does 'snmptrap'/snmpd use to send traps out?
>
It will use the kernel's routing table.
> Query 2. Suppose, eth1 firewall blocks 'snmp'
Hi All,
Kindly let me know how snmpd/snmptrap select interface to send
traps/informs ? or which interface will be used by snmpd/snmptrap to send
traps/informs?
*Scenario:*
*Settings: *
*TRAP Receiver:*
TrapReceiver : 192.168.108.22
* AGENT*
Linux device has two interfaces
eth1 (ip
Hi Coders,
We use standard linux-3.10 kernel and net-snmp version 5.7.2 on powerpc
target.
As per RFC-2741, that now RESPONSE-PDU is generated for trap notify &
close in AgentX.
Is there any specific reason for that to get included? Because I see that
the flag UCD_MSG_FLAG_EXPECT_RESPONSE being
Hi Coders,
I need details on how to configure */var/net-/snmp/snmpd.conf* to set IPV6
IP address as a target destination so that the snmp master agent can
forward the traps to the configured IPV6 target destination.
We have the below version of net-snmp with RHEL 7.1 :-
*net-snmp-agent-libs
Den 05-08-2015 kl. 11:01 skrev Spandana Kadiri:
> I used Net-SNMP 5.7.3 source and created an application that receives traps.
> But when a V1 trap with IPV6 address in agent-addr field arrives,
> sess_snmp_read() is dropping the packet due to parse error.
> The following error is gi
Hi,
I used Net-SNMP 5.7.3 source and created an application that receives traps.
But when a V1 trap with IPV6 address in agent-addr field arrives,
sess_snmp_read() is dropping the packet due to parse error.
The following error is given:
*Bad parse of ASN.1 type (parse string length 16 too large
Hi Robert,
I used init_snmp("snmptrapd") and gave the engineIDs in this file of those
devices which are send me the traps.
This is working for me. But the problem is, first I need to manually enter
the engineID for every new device in the config file (snmptrapd.conf)
I wi
On Fri, 29 May 2015 16:14:17 +0530 Ajit wrote:
AA> I have a application in C which receives snmp traps. There is a
AA> issue with v3 traps. Although I have done the necessary setup.
AA> I am able to receive v3 traps using the command "snmptrapd -Lo
AA> -n -f". But when I r
@lists.sourceforge.net; [email protected]
Subject: RE: snmptrapd not processing v3 traps
Bill,
I had a look at the doc and no matter what I have done it still does not seem
to work.
I have tried multiple combinations of engineID with a 0x and not in front.
Putting the Id in or not
Geoff,
Basically have a switch sending SNMP traps. It does have an engine ID set.
All I have set in my snmptrapd.conf is :
createUser myuser SHA foo AES bar
authUser log,execute,net myuser
And that just works …. Will try it for more than one switch, but so far no
issues.
Regards,
Jason Pope
[mailto:[email protected]]
Sent: 03 October 2014 21:16
To: Jason Pope
Cc: [email protected]; [email protected]
Subject: Re: snmptrapd not processing v3 traps
On Fri, Oct 3, 2014 at 11:06 AM, Jason Pope
mailto:[email protected]>> wrote:
Hi,
Has anyone succes
Hi,
Has anyone successfully set up snmptrapd to accept v3 traps from a device ?
I have tried to set it up, but I see nothing in the log when the device sends
v3 traps. When configured to send v2 traps you can see them in the logs.
I have set up the createUser line in the snmptrapd.conf file
2014 6:47 PM
To: Jason Pope; Bill Fenner
Cc: [email protected]; [email protected]
Subject: RE: snmptrapd not processing v3 traps
Ok … I have got it to work.
I forgot to add in the authUser line :-P
Also set it up without the engine ID and it works
Jason,
Any chance that the switch was actually sending the notifications with
noAuthNoPriv?
Bill
> On Oct 6, 2014, at 5:46 AM, Jason Pope wrote:
>
> Geoff,
>
> Basically have a switch sending SNMP traps. It does have an engine ID set.
>
> All I have set in
On Fri, Oct 3, 2014 at 11:06 AM, Jason Pope wrote:
> Hi,
>
>
>
> Has anyone successfully set up snmptrapd to accept v3 traps from a device ?
>
>
>
> I have tried to set it up, but I see nothing in the log when the device
> sends v3 traps. When configured to send v2
about how it worked. I have never seen an answer
on this list before so I don't think many people know.
On Fri, Oct 3, 2014 at 11:06 AM, Jason Pope wrote:
> Hi,
>
>
>
> Has anyone successfully set up snmptrapd to accept v3 traps from a device ?
>
>
>
> I have tried to
Den 25-03-2014 02:41, oscar sumano skrev:
> I’m trying to send out snmp to a broadcast ip but i get the following
> error message.
>
> snmptrap: Failure in sendto (Permission denied)
You probably need to be root to send to a broadcast address.
> snmptrap -v 2c -c public 192.168.2.255 "" IF-MIB::
Hi,
I’m trying to send out snmp to a broadcast ip but i get the following error
message.
snmptrap: Failure in sendto (Permission denied)
snmptrap -v 2c -c public 192.168.2.255 "" IF-MIB::linkUp
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifOperStatus.1 i 1
My environment
Hi all,
I need to send all syslog messages as an SNMPv1 & v2c traps. for that i
download the source code package of net- snmp 5.7.2.1 as describe in this page
http://www.rsyslog.com/doc/omsnmp.html and installed with neccessory default
configuration. rigth now all my kernel logs
On Tue, Nov 19, 2013 at 10:19 AM, Moctar DIAKHITE wrote:
> Hello everybody,
>
> I'm new at net-snmp coding. I'm writing a MIB module which include scalar
> data, tables and traps (notifications). I need to attach a notification to
> every single device. For scalar node
Hello everybody,
I'm new at net-snmp coding. I'm writing a MIB module which include
scalar data, tables and traps (notifications). I need to attach a
notification to every single device. For scalar nodes this quite simple
and I managed to perform it without many problems.
My q
Hello,
I have got the solution to this problem.
The problem was that for configuring SNMPv3 traps, i was adding below in the
snmpd.conf file:
trapsess -u -l
It was working well for MD5, but for SHA auth and priv (both DES & AES) it was
sending a trap , but it was getting error w
Hello,
I am using net-snmp version 5.4.2.1. I am able to send traps for SNMPv3 users
for authentication with MD5 and receive them properly by the manager software.
But while sending traps with authentication SHA or using SNMPv3 users with
encryption, I am not able to receive them at the
Den 02-09-2013 11:32, Husztig Istvan (ext) skrev:
> Hello,
>
> Yes exactly like snmptrapd :)
Which is a program and therefore does it programmatically. So what is
your question?
/Niels
PS: Please respond to the list too for others to join the conversation
--
Niels Baggesen - @home - Århus - D
Den 29-08-2013 13:29, Husztig Istvan (ext) skrev:
> I would like to know the following, is there a way to listen
> programmatically to snmp v3 traps with net-snmp?
You mean, like the snmptrapd program does?
/Niels
--
Niels Baggesen - @home - Århus - Denmark - [email protected]
Hello,
I would like to know the following, is there a way to listen programmatically
to snmp v3 traps with net-snmp?
Thanx,
Istvan
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the
On Thu, Jun 27, 2013 at 10:26:12AM +0800, Oleg Gritsak wrote:
> Have a task to import snmp traps to OracleSQL. Already spent a week
> meditating at snmptrapd code. Cannot find part of it, which
> processes switch "-d".
Have you looked at snmptrapd_sql.c? It might not be that
e someone will make a hint, please?
>
> Have a task to import snmp traps to OracleSQL. Already spent a week
> meditating at
> snmptrapd code. Cannot find part of it, which processes switch "-d".
>
> NETSNMP_DS_LIB_DUMP_PACKET seems to lead to xdump(), but printf-fing
> *
Hello!
First of all, thank you for such a great software made under opensource license!
Didn't want to bother anyone, but already spent several days on this problem
without
any positive result. :( Maybe someone will make a hint, please?
Have a task to import snmp traps to OracleSQL. Al
On Thu, 2013-02-21 at 17:41 -0800, Stéphane Charette wrote:
> If I have an application running as non-root, can I still send out a
> snmp trap? If so, how?
I would use AgentX and let the agent send the trap.
/MF
--
Ev
If I have an application running as non-root, can I still send out a snmp
trap? If so, how?
Here is what I have now:
std::cout << "Test sending traps." << std::endl;
netsnmp_ds_set_boolean( NETSNMP_DS_APPLICATION_ID, NETSNMP_DS_AGENT_ROLE, 1
);
init_agent( &qu
On 22 January 2013 10:23, Geet Bhatia wrote:
> I am trying to build a simple C trap receiver.
Is there any reason why you don't wish to use the standard 'snmptrapd'
application?
> Here I am calling function netsnmp_transport_open_server with application
> name and udp:162 as parameters. But thi
Hi,
I am trying to build a simple C trap receiver.
Here I am calling function netsnmp_transport_open_server with application
name and udp:162 as parameters. But this function is returning NULL every
time.
I am not able to find the problem. Please tell me what could be the
possible problem.
Thank
Hi,
I need to receive enterprise specific traps from different equipments
connected to my application. These traps are present in different mibs. I
have written a C code for that. But I am not able get traps. I have also
taken help from snmptrapd.c code. But I am still not able get traps.
If any
Hello sir,
In my snmpd.conf file following lines are generating a trap after 25
seconds, as the value of 1.3.6.1.2.1.6.3 = 12
notificationEvent tcpRtoMax.0 TCP-MIB::tcpRtoMax.0 1.3.6.1.2.1.6.3
monitor -u root -S -t -r 25 "Warn: High Disk Usage" -e tcpRtoMax.0
1.3.6.1.2.1.6.3 - - 9 11999
Hi Dave,
When I am Restarting my "snmpd" on the other hand with snmptrapd it
continuously receiving traps of v1, v2c cold start and nsNotifyshutdown
traps !!!
What is the reason behind it? As I read in FAQ section "The Net-SNMP agent
sends a 'coldStart(0)' trap when i
Keith Haughton writes:
> I see that there is currently a project for Traps. I am reaching out
> to see if this is something that is being worked to replace the
> current SNMPTT or if this is something that will contribute to
> updating the SNMPTT package. I am running into a lot
Hello,
I see that there is currently a project for Traps. I am reaching out to see if
this is something that is being worked to replace the current SNMPTT or if this
is something that will contribute to updating the SNMPTT package. I am running
into a lot of bugs and limitations with SNMPTT at
On Mon, Jun 11, 2012 at 8:46 PM, Magnus Fromreide
> wrote:
>> On Mon, 2012-06-11 at 16:32 -0700, Tyler Olmstead wrote:
>>> Hi all,
>>>
>>> I have cross-compiled net-snmp 5.7.1 for a custom port of Linux 2.6.37
>>> on an armv5tejl core
8:46 PM, Magnus Fromreide wrote:
> On Mon, 2012-06-11 at 16:32 -0700, Tyler Olmstead wrote:
>> Hi all,
>>
>> I have cross-compiled net-snmp 5.7.1 for a custom port of Linux 2.6.37
>> on an armv5tejl core (AM1808). I have encountered some alignment traps
>> in syslog aft
On Mon, 2012-06-11 at 16:32 -0700, Tyler Olmstead wrote:
> Hi all,
>
> I have cross-compiled net-snmp 5.7.1 for a custom port of Linux 2.6.37
> on an armv5tejl core (AM1808). I have encountered some alignment traps
> in syslog after MIB-walking.
>
> According to objdump, m
Hi all,
I have cross-compiled net-snmp 5.7.1 for a custom port of Linux 2.6.37
on an armv5tejl core (AM1808). I have encountered some alignment traps
in syslog after MIB-walking.
daemon.info snmpd[1135]: NET-SNMP version 5.7.1
user.warn kernel: [ 172.182181] Alignment trap: snmpd (1135)
PC
> We have generated trap definition by extending our enterprise specific MIB
> module. However we did not find any function that could register this trap
Having defined the trap within the MIB file, you can now use the
'mib2c.notify.conf' template to generate a routine that will send
this trap.
how to register enterprise specific traps extended in net-snmp agent on event
basis i.e the trap should be sent when a particular event occurs? We have
generated trap definition by extending our enterprise specific MIB module.
However we did not find any function that could register this
Hi Dave,
*Thanks for your valuable feedback.*
*
*
* * I have worked on SNMP tutorial section i,e i compiled
agent/mibgroup/examples/notification.c with the SNMP agent. This will send
notification for every 30 sec.
I checked it is working.
I want to send multiple traps based on some
after repeated futile
attempts. Now that I imply that the server is sending the traps
properly but the receiver is somewhat kind of 'filtering' them. I have
set the trap receiver to listen to the proper port too.
See attachment for details.
How could this be possible?! Any suggestions?! Any
On 6 October 2011 17:57, Vivek Nagaraj wrote:
> I am receiving SNMP traps on custom ports from RHEL 4.6 x86. Tried
> installing trap receiver in one of the client servers in the same
> subnet as that of the RHEL server. Outside the subnet, I couldn't see
> traps on my machine
This might seem a lot strange or rather a shock for you guys out there!
I am receiving SNMP traps on custom ports from RHEL 4.6 x86. Tried
installing trap receiver in one of the client servers in the same
subnet as that of the RHEL server. Outside the subnet, I couldn't see
traps on my ma
On Tue, 2011-10-04 at 12:45 +0530, Vivek Nagaraj wrote:
> I shall provide you some of my findings now. Please correct me if I am wrong.
>
> 1) I 'DID' receive the trap message on my trap receiver (another
> server in the network) on port no 162 if mentioned hostname:portno
What command, exactly,
I shall provide you some of my findings now. Please correct me if I am wrong.
1) I 'DID' receive the trap message on my trap receiver (another
server in the network) on port no 162 if mentioned hostname:portno
2) I 'DID NOT' receive the trap message on my trap receiver (another
server in the netw
On Tue, 2011-10-04 at 12:03 +0530, Vivek Nagaraj wrote:
> I have added my agent address to the snmpd.conf file. Or else I would
> have not received the trap at port no 162.
Read my lips. snmptrap *DOES NOT OPEN* snmpd.conf! You can write
anything you like in that file and it won't affect the opera
I have added my agent address to the snmpd.conf file. Or else I would
have not received the trap at port no 162.
snmptrap -v 1 -m ALL -c public \
135.36.115.62:5000 .1.3.6.1.6.3169.254.1.1 127.128.129.130 6 1 20071105
>> Yes. The agent is 135.36.115.62. I still didn't receive traps at
On Tue, 2011-10-04 at 11:21 +0530, Vivek Nagaraj wrote:
> I just tried it on RHEL 4.6 x86. Here is the more detailed OS info:
> Linux dhcp-135-24-228-150 2.6.9-67.EL #1 Wed Nov 7 13:41:13 EST 2007
> i686 i686 i386 GNU/Linux
> Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
> NET-SNMP versio
I just tried it on RHEL 4.6 x86. Here is the more detailed OS info:
Linux dhcp-135-24-228-150 2.6.9-67.EL #1 Wed Nov 7 13:41:13 EST 2007
i686 i686 i386 GNU/Linux
Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
NET-SNMP version: 5.1.2
When I executed this command on RHEL 4.6 x86
snmptrap -v
On Tue, Oct 04, 2011 at 08:19:57AM +0530, Vivek Nagaraj wrote:
> So, you mean to say any net-SNMP version above and including net-SNMP
> 5.4 supports mentioning ports along with host name?
No, Magnus is telling you about the defTarget directive. I just told
you that using portnumber with hostname
The RHEL 4.6 32-bit I am using has net-SNMP version 5.1.2. So, I hope
this would not support ports mentioned with the snmptrap command.
Please correct me if I am wrong.
The RHEL 6.1 has version 5.5 installed.
So, you mean to say any net-SNMP version above and including net-SNMP
5.4 supports menti
On Mon, 2011-10-03 at 19:50 +0530, Vivek Nagaraj wrote:
> Ok. I am sorry. Not working in the sense, if I provide custom ports
> other than 162, I am not receiving any traps at those custom ports.
>
> I am not seeing any error message after the execution of the command
> mentioned
On Mon, 2011-10-03 at 08:44 +0530, Vivek Nagaraj wrote:
> Response to your previous mail:
>
> 1) Could not find 'snmp.conf'
As Niels said, you have to make it yourself.
>
> 2) And options you have mentioned to be used with 'snmptrap' command
> is not working
--defTarget="udp:169.254.1.1:30617"
On Mon, Oct 03, 2011 at 07:50:57PM +0530, Vivek Nagaraj wrote:
> My server administrator says that the backward compatibility needs to
> be maintained with older server OS too. I am kind of stuck. I tried
> and tried and tried but could not receive traps at the ports other
> than 1
Ok. I am sorry. Not working in the sense, if I provide custom ports
other than 162, I am not receiving any traps at those custom ports.
I am not seeing any error message after the execution of the command
mentioned by you.
My server administrator says that the backward compatibility needs to
be
On Mon, Oct 03, 2011 at 12:11:50PM +0530, Vivek Nagaraj wrote:
> Is there any net-snmp issue (you are aware of) regarding this in older
> net-snmp binaries placed in RHEL 4.7?!
>
> In simple words, its working fine in RHEL 6.1 but not in RHEL 4.7. Any idea
> why?
Define "not working"! Any error
Thanks a lot Niels!
snmptrap -v 1 -m ALL -c public 135.36.115.62:30617 .1.3.6.1.6.3
169.254.1.1 6 1 20071105
>> Worked like magic on custom ports on RHEL 6.1!
Is there any net-snmp issue (you are aware of) regarding this in older
net-snmp binaries placed in RHEL 4.7?!
In simple words, its workin
On Mon, Oct 03, 2011 at 08:44:50AM +0530, Vivek Nagaraj wrote:
> Response to your previous mail:
>
> 1) Could not find 'snmp.conf'
You have to create it yourself.
> 2) And options you have mentioned to be used with 'snmptrap' command
> is not working
> [root@localhost snmp]# snmptrap -v 1 -m AL
Response to your previous mail:
1) Could not find 'snmp.conf'
2) And options you have mentioned to be used with 'snmptrap' command
is not working
Please refer the attachments for more details.
Thanks a lot for your time and response.
[root@localhost snmp]# snmptrap -v 1 -m ALL -c public 135.36.
When you starts talking about execl snmptrap I also have to say that I
wouldn't have done it that way...
I would probably either embed the library to send the traps directly or
let the program act as an AgentX subagent and use that to make the agent
send the traps to the places that are spec
that way...
I would probably either embed the library to send the traps directly or
let the program act as an AgentX subagent and use that to make the agent
send the traps to the places that are specified in it's configuration
file.
But I
Ok. That sounds reasonable. Thanks a lot! Hope you can can answer my
following questions:
1) What is the difference between snmp.conf and snmpd.conf files in
'/etc/snmp/' directory?
2) When I execl 'snmptrap' command from my program, which of the above
two *.conf files are actually used?
Thanks,
nmptrap'. The server from
> which snmptrap was generated was RHEL 6.1 x64.
>
> Any idea why am I still not receiving traps at default port?!
Yes.
> Thanks a ton for the response.
You added
defTarget snmptrap udp :50162
to snmpd.conf
snmpd.conf is the config file for the snmp
ap receiver was
running at the default port 162 rather than the mentioned port. Any
setting/tweaks (you remember) to be done on the client/server?!
The command used to send dummy trap was 'snmptrap'. The server from
which snmptrap was generated was RHEL 6.1 x64.
Any idea why am I still not
On Wed, 2011-09-28 at 14:32 +0530, Vivek Nagaraj wrote:
> Thanks a lot!!! That worked like a charm on the first go! But the
> problem I faced was that the first time I got the trap at the right
> port (not 162), but subsequent traps were still sent to the default
> port i.e., 162.
Thanks a lot!!! That worked like a charm on the first go! But the
problem I faced was that the first time I got the trap at the right
port (not 162), but subsequent traps were still sent to the default
port i.e., 162.
Can you please help me on this???
Thanks a ton
On Wed, 2011-09-28 at 13:19 +0530, Vivek Nagaraj wrote:
> Ok. That seems to be good one.
>
> But cant I just change the default port to some other other than 162
> in the net-snmp code and get it compiled?
You do not need to recompile to change the default port.
Put the following line in your sn
1 - 100 of 389 matches
Mail list logo