Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Access the community strings within a protocol

72 views7 hours agocommunity string Connector protocol
5
Sam Stump [DevOps Advocate]746 11 hours ago 0 Comments

With Params in a protocol you can use types like pollingip or elementname to have a parameter with this information populated in protocol parameters within the element.

https://docs.dataminer.services/develop/schemadoc/Protocol/Protocol.Params.Param.Type.html#pollingip

I would like to be able to have the set and get community strings as displayed parameters within the datadisplay of my protocol, but as they are not available like the elementname or pollingip is there any other way I can access them within my protocol to save in parameters within the element.

Bram Devlaminck [SLC] [DevOps Enabler] Answered question 7 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
4
Bram Devlaminck [SLC] [DevOps Enabler]820 Posted 7 hours ago 1 Comment

Hi Sam,

This is indeed not possible in the same way you can retrieve the polling ip or element name.
Instead, you'll have to use the class library in a QAction.
Through the class library you can retrieve the connections for a specific element.
As described in the link right before this, you can get all connections of a specific SNMP version using LINQ in the following way:

Where(x => x.Connections.OfType<ISnmpV1Connection>())

or

Where(x => x.Connections.OfType<ISnmpV2Connection>())

or

Where(x => x.Connections.OfType<ISnmpV3Connection>())

For each SNMPv1 or SNMPv2 connection you'll be able to access that data through the "GetCommunityString" and "SetCommunityString" properties. For SNMPv3 the equivalent data is stored in the "SecurityConfig" property.

Once retrieved in the QAction, you can put that data in whatever parameter you prefer.
The opposite should also be possible (trigger a QAction from a parameter change to set the set and get community strings).

I hope this helps.
Don't hesitate to reach out if anything would be unclear or if you are still having issues.

Laurens Moutton [SLC] [DevOps Enabler] Posted new comment 6 hours ago
Laurens Moutton [SLC] [DevOps Enabler] commented 6 hours ago

-That will indeed be possible like this on the condition that the credential library is not used to store the community strings.
-I did not test this, but changing the community strings for the same element might potentially end up in a deadlock (to be verified): a parameter set is executed which triggers a QAction that then wants to modify the element could result in the modify waiting for the for the QAction to finish and the QAction waiting for the modify to finish

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2026 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin