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 your 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

Potential bug with element update when using credentials

26 views5 hours agoElement Update Connection Credentials
1
Paul Dadswell [DevOps Advocate]96 7 hours ago 0 Comments

I am encountering and issue when using an Automation script to copy elements from an existing view into a new view.
The basic code I am using in the script, where the source and new views are selected from drop down lists of the views on the system is:

    // Get source and new views
    var dms = engine.GetDms();
    IDmsView sourceView = dms.GetView(dialog.SourceViewDropDown.Selected);
    IDmsView newView = dms.GetView(dialog.newViewDropDown.Selected);

    // Copy elements to new view
    var elements = sourceView.Elements;
    foreach (var element in elements)
    {
        ISet<IDmsView> views = element.Views;
        if (!views.Contains(newView))
        {
            views.Add(newView);
            element.Update();
        }
    }

Now the script works in that the element end up in both the source and new views.
However the problem is that if the element is using an entry from the credentials library for say the SNMP community strings rather than having them specified directly, then once the element has been updated, the credentials selection is unticked.

Before running the script the element settings look as follows:

But after the script completes, the element settings look as follows:

As a result the element then goes into timeout and I have to manually use Cube to reselect the credentials and apply it, which rather defeats the purpose of writing a script to copy elements into a view.

Is there something I am missing or is this indeed a bug?

(The issue is present on both a system running 10.3.0.0-15940-CU22 as well as on running 10.5.12.0-16623-CU1)

Paulo Henriques [SLC] [DevOps Advocate] Answered question 5 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Paulo Henriques [SLC] [DevOps Advocate]1.51K Posted 5 hours ago 1 Comment

Hi Paul,

I’m executing exactly the code you shared above, but on my DMA (currently running version 10.6.6) I don’t encounter any issues. The SNMPv3 elements using the credentials library retain all their properties.

I also did a quick check of the release notes to see if there might have been a related bug fix, but I didn’t find anything relevant.

Is this happening consistently for every element?

What happens if you manually edit the element properties and add the destination view to the list? Does it work in that case?

Paul Dadswell [DevOps Advocate] Edited comment 5 hours ago
Paul Dadswell [DevOps Advocate] commented 5 hours ago

Hi Paulo, thanks for checking.

This is happening consistently for elements with credentials for SNMPv2. I will have to test for SNMPv3.
If I manually edit the element using Cube, then I can add the additional view to the element, without an issue.
I can also use drap and drop in the surveyor to copy an element to another view, but both options are a lot more labour intensive to have to edit or drag every element individually.
Hence why I wrote a simple automation script to allow me to select the source and destination views and copy all all elements from one to the other.
The copy works, but if it is using credentials for SNMPv2 then they are cleared after the copy.

You are viewing 1 out of 1 answers, click here to view all answers.
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