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
    • Empower Replay: Limited Edition
    • 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
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • 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)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Obtain license info for specific DMA from connector

Solved922 views21st October 2022IDma IDms NotifyProtocol
3
Rafael Duarte [SLC] [DevOps Advocate]174 21st October 2022 0 Comments

I was trying to get the maximum number of elements for each DMA License from a DMS but I've only found this notify

string[] licenses = (string[])protocol.NotifyDataMiner(154,null,null);

This notify only retrieves the license of the DMA where the element is present, I want to get the several license information from all DMA in the cluster.
For some notifys the null can be replaced by DMAId or ElementId but I could not find any information how should this 154 be filled on the documentation.

I've also checked IDma methods without any result about license info.

Do you know if there is a way to get this license info?

Rafael Duarte [SLC] [DevOps Advocate] Selected answer as best 21st October 2022

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
4
Gellynck Jens [SLC]2.71K Posted 21st October 2022 2 Comments

You can achieve this with the following code (it's an automation script but it should also work from a QAction).

 var licenseInfo = engine.SendSLNetSingleResponseMessage(new GetInfoMessage(InfoType.Licenses)) as GetLicensesResponseMessage;
engine.GenerateInformation("Max Element License count: " + licenseInfo.VolumeLicense["elements"]);

Trong Huynh [DevOps Member] Posted new comment 7th May 2024
Rafael Duarte [SLC] [DevOps Advocate] commented 21st October 2022

Indeed it works and it is possible to add the DMA ID inside GetInfoMessage(DMA ID,InfoType.Licenses), Thanks !

Trong Huynh [DevOps Member] commented 7th May 2024

Hi, this is great. How do I use this code inside a QAction as mentioned? Thanks.

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

© 2025 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