Login  
Search All Forums
Dart Home | PowerSNMP for .NET | Custom Development Reply | PowerSNMP for .NET Topics | Forums   
AuthorForum: PowerSNMP for .NET
Topic: Change community string name
avsec

From: India
Posts: 2
Member Since: 08/29/17
posted August 29, 2017 4:47 AM

I want to change community string name from public to a specific string say 'public#$%'. How can I do it?
Nick B (Admin)

From: Utica, NY USA
Posts: 576
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 29, 2017 5:25 PM

Hello,

Community can be specified on messages on Message.Community (GetMessage.Community, GetBulkMessage.Community, SetMessage.Community, etc). On the Agent side, it is up to the application to implement handling for community strings.
avsec

From: India
Posts: 2
Member Since: 08/29/17
posted August 29, 2017 7:41 PM

On the agent side, how community string (read and write community string) can be set?
I have tried to fix it but I was unable to find any mean. Can you please give any example?
Thank you.
Nick B (Admin)

From: Utica, NY USA
Posts: 576
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted August 30, 2017 3:12 PM

Hello,

There isn't any community string on the agent side, so there's no way to set it. Handling of incoming requests' community is left up to the application; check the incoming message's Community property, and handle the message as desired (our component does not perform any processing based upon the community string); you can check request.Community as a modification to the snippet available here:
http://www.dart.com/help/psnet/webframe.html#Dart.Snmp~Dart.Snmp.Agent.html

We do not have an example specific to your request to offer; if one is desired, please contact jamie.powell@dart.com.
Reply | PowerSNMP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX