plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Receiving snmp traps on an S7-1500 [Siemens TIA Portal]

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIMATIC Automation Systems -Reg.U
View previous topic :: View next topic  
Author Message
socrames
Junior
Junior


Joined: 15 Jan 2019
Posts: 14

PostPosted: 15/02/2021 17:37    Post subject: Receiving snmp traps on an S7-1500 [Siemens TIA Portal] Reply with quote

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
View user's profile Send private message
vics87521
Junior
Junior


Joined: 05 Oct 2018
Posts: 1

PostPosted: 15/02/2021 18:07    Post subject: Reply with quote

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
View user's profile Send private message
macaw
Junior
Junior


Joined: 30 Jul 2018
Posts: 3

PostPosted: 15/02/2021 18:22    Post subject: Re: Receiving snmp traps on an S7-1500 [Siemens TIA Portal] Reply with quote

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
View user's profile Send private message
CP5611
Junior
Junior


Joined: 30 Jul 2018
Posts: 1

PostPosted: 15/02/2021 19:52    Post subject: Reply with quote

https://splone.com/blog/2016/8/18/snmp-und-simatic-s7-1500/
Back to top
View user's profile Send private message
socrames
Junior
Junior


Joined: 15 Jan 2019
Posts: 14

PostPosted: 15/02/2021 20:30    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> SIMATIC Automation Systems -Reg.U All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro