Discussion:
Unwanted Traps being sent out
Siddhant Gupta
2017-06-17 10:22:26 UTC
Permalink
I am writing an application for a switch that uses net-snmp. I wrote my
version of ifTable_data_access.c. Whenever I restart or start net-snmp a
cold-start trap is sent out followed by link up/down traps for all the
ports. Why is this happening? I have enabled traps for Physical sensors
also, however I receive traps only for link up down.
Pushpa Thimmaiah
2017-06-22 05:43:35 UTC
Permalink
Hi,

Startup(coldstart/shutdown) are default traps from snmpDaemon (start/stop)
When snmpDaemon start/stop , it sends out coldstart/shutdown traps and they
are builtin.
There is no option to disable them, You have to comment code which
sending stratup traps in net-snmp source code.

How did you enabled traps for physical sensors?

Thank you
Post by Siddhant Gupta
I am writing an application for a switch that uses net-snmp. I wrote my
version of ifTable_data_access.c. Whenever I restart or start net-snmp a
cold-start trap is sent out followed by link up/down traps for all the
ports. Why is this happening? I have enabled traps for Physical sensors
also, however I receive traps only for link up down.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Siddhant Gupta
2017-06-22 06:59:13 UTC
Permalink
Its not the coldstart/shutdown traps that are causing a problem but the
linkUpDown traps. linkUpDown traps are sent out for all the ports 2 minutes
after the coldstart. I have enabled linkUpDown by adding
linkUpDownNotification yes in the snmpd.conf file

On Thu, Jun 22, 2017 at 11:13 AM Pushpa Thimmaiah <
Post by Pushpa Thimmaiah
Hi,
Startup(coldstart/shutdown) are default traps from snmpDaemon (start/stop)
When snmpDaemon start/stop , it sends out coldstart/shutdown traps and
they are builtin.
There is no option to disable them, You have to comment code which
sending stratup traps in net-snmp source code.
How did you enabled traps for physical sensors?
Thank you
Post by Siddhant Gupta
I am writing an application for a switch that uses net-snmp. I wrote my
version of ifTable_data_access.c. Whenever I restart or start net-snmp a
cold-start trap is sent out followed by link up/down traps for all the
ports. Why is this happening? I have enabled traps for Physical sensors
also, however I receive traps only for link up down.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Loading...