| View previous topic :: View next topic |
| Author |
Message |
socrames Junior

Joined: 15 Jan 2019 Posts: 14
|
Posted: 15/02/2021 17:37 Post subject: Receiving snmp traps on an S7-1500 [Siemens TIA Portal] |
|
|
Hi there, I have an snmp agent sending random snmp traps on port 162. I need my S7-1500 to receive those traps whenever they are sent (the snmp traps are random alarms).
Does a function like "LSNMP_ReceiveTrap" exist ... ?
"LSNMP_SendTrap" seems to work for sending traps
But when it comes to receiving traps, I don't find any snmp function that can listen to snmp alarms.
Thanks for any advice |
|
| Back to top |
|
 |
vics87521 Junior

Joined: 05 Oct 2018 Posts: 1
|
Posted: 15/02/2021 18:07 Post subject: |
|
|
Did you see these examples.
You do not need to receive anything as long as you can request on timing manner anything you want
http://plc.myforum.ro/viewtopic.php?p=31866#31866 |
|
| Back to top |
|
 |
macaw Junior

Joined: 30 Jul 2018 Posts: 3
|
Posted: 15/02/2021 18:22 Post subject: Re: Receiving snmp traps on an S7-1500 [Siemens TIA Portal] |
|
|
| socrames wrote: | Hi there, I have an snmp agent sending random snmp traps on port 162. I need my S7-1500 to receive those traps whenever they are sent (the snmp traps are random alarms).
Does a function like "LSNMP_ReceiveTrap" exist ... ?
"LSNMP_SendTrap" seems to work for sending traps
But when it comes to receiving traps, I don't find any snmp function that can listen to snmp alarms.
Thanks for any advice |
check this
http://plc.myforum.ro/libraries-for-communication-for-simatic-controllers-vt13569.html |
|
| Back to top |
|
 |
CP5611 Junior

Joined: 30 Jul 2018 Posts: 1
|
Posted: 15/02/2021 19:52 Post subject: |
|
|
| https://splone.com/blog/2016/8/18/snmp-und-simatic-s7-1500/ |
|
| Back to top |
|
 |
socrames Junior

Joined: 15 Jan 2019 Posts: 14
|
Posted: 15/02/2021 20:30 Post subject: |
|
|
| vics87521 wrote: | Did you see these examples.
You do not need to receive anything as long as you can request on timing manner anything you want
http://plc.myforum.ro/viewtopic.php?p=31866#31866
|
Hi visc87521, indeed I can always use 'snmp polling mode' with LSNMP_Get function at a certain frequency. But this is not the best behavior, since I don't want to overfill the network traffic with untimely snmp requests.
Normally, all snmp servers have hability to subscribe to an agent with their IP address, and listen to this agent: this is called 'traps-listening mode'. The server is notified only when an alarm occurs on the snmp agent. And I would like my S7-1500 to behave like such an snmp server. |
|
| Back to top |
|
 |
|