SNMP Traps V1 vs V2c

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SNMP Traps V1 vs V2c

Mario Luzeiro
Hello all,

I'm facing the following issue.
I'm sending a
snmp_send_trap_generic (SNMP_GENTRAP_COLDSTART);

For debug proposes I'm sending it periodically(5 seconds).

If I set:
snmp_set_default_trap_version (SNMP_VERSION_1);

it works ok. I receive periodically. My SNMP software identifies it as a cold start.

If I set:
snmp_set_default_trap_version (SNMP_VERSION_2c);

It sends two Trap messages only with the following information:
Source: 192.168.1.235  Timestamp: 2 seconds
SNMP Version: 2   Trap OID: .1.3.6.1.6.3.1.1.5.1
Community: public
Variable Bindings:
Name: .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime
Value: [TimeTicks] 2 seconds (235)
Name: .1.3.6.1.6.3.1.1.4.1
Value: [OID] .1.3.6.1.6.3.1.1.5.1

After that, my system hangs on freeRTOS

If I pause the debugger it will stop on this line, please have a look at:
https://www.freertos.org/FAQHelp.html
"11. I get stuck on the line that starts for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd );"


So what could cause this issue by just changing V1 to V2c ?
Am I missing some configuration or handling to use V2c?

Regards,
Mario Luzeiro
_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: SNMP Traps V1 vs V2c

Trampas Stern
Mario,

I am trying to test traps and was wondering what you are using to receive SNMP trap messages? 

Thanks
Trampas

On Thu, Dec 5, 2019 at 5:21 AM Mário Luzeiro <[hidden email]> wrote:
Hello all,

I'm facing the following issue.
I'm sending a
snmp_send_trap_generic (SNMP_GENTRAP_COLDSTART);

For debug proposes I'm sending it periodically(5 seconds).

If I set:
snmp_set_default_trap_version (SNMP_VERSION_1);

it works ok. I receive periodically. My SNMP software identifies it as a cold start.

If I set:
snmp_set_default_trap_version (SNMP_VERSION_2c);

It sends two Trap messages only with the following information:
Source: 192.168.1.235  Timestamp: 2 seconds
SNMP Version: 2   Trap OID: .1.3.6.1.6.3.1.1.5.1
Community: public
Variable Bindings:
Name: .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime
Value: [TimeTicks] 2 seconds (235)
Name: .1.3.6.1.6.3.1.1.4.1
Value: [OID] .1.3.6.1.6.3.1.1.5.1

After that, my system hangs on freeRTOS

If I pause the debugger it will stop on this line, please have a look at:
https://www.freertos.org/FAQHelp.html
"11. I get stuck on the line that starts for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd );"


So what could cause this issue by just changing V1 to V2c ?
Am I missing some configuration or handling to use V2c?

Regards,
Mario Luzeiro
_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users
Reply | Threaded
Open this post in threaded view
|

Re: SNMP Traps V1 vs V2c

Mario Luzeiro
In reply to this post by Mario Luzeiro
Hi all,
solved, as most of the times, user problem :)
I found that it was due Thread stack size. I increased it and V2c started to work.

Mario Luzeiro

________________________________________
From: Mário Luzeiro
Sent: 05 December 2019 10:20
To: [hidden email]
Subject: SNMP Traps V1 vs V2c

Hello all,

I'm facing the following issue.
I'm sending a
snmp_send_trap_generic (SNMP_GENTRAP_COLDSTART);

For debug proposes I'm sending it periodically(5 seconds).

If I set:
snmp_set_default_trap_version (SNMP_VERSION_1);

it works ok. I receive periodically. My SNMP software identifies it as a cold start.

If I set:
snmp_set_default_trap_version (SNMP_VERSION_2c);

It sends two Trap messages only with the following information:
Source: 192.168.1.235  Timestamp: 2 seconds
SNMP Version: 2   Trap OID: .1.3.6.1.6.3.1.1.5.1
Community: public
Variable Bindings:
Name: .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime
Value: [TimeTicks] 2 seconds (235)
Name: .1.3.6.1.6.3.1.1.4.1
Value: [OID] .1.3.6.1.6.3.1.1.5.1

After that, my system hangs on freeRTOS

If I pause the debugger it will stop on this line, please have a look at:
https://www.freertos.org/FAQHelp.html
"11. I get stuck on the line that starts for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd );"


So what could cause this issue by just changing V1 to V2c ?
Am I missing some configuration or handling to use V2c?

Regards,
Mario Luzeiro

_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users