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

Retrieve elements port information in an automation script => Failed when the element is not active

Solved792 views22nd June 2023automation scipt
0
Yvan Barbotin [DevOps Advocate]30 22nd June 2023 0 Comments

Hi Dojo Community,
I try to extract port info with the following line in an automation script.
—–
GetLiteElementInfo glei = new GetLiteElementInfo();
glei.DataMinerID = element.DmaId;
glei.ElementID = element.ElementId;
LiteElementInfoEvent leie = Engine.SLNet.SendSingleResponseMessage(glei) as LiteElementInfoEvent;
ElementPortInfo[] PortInfo = leie.PortInfo;
—–
When the element is started it works well but when the element is paused or stopped, I have the following exception
Exception : System.NullReferenceException: Object reference not set to an instance of an object.
at Script.Run(Engine engine) (Script ‘Update community string property per protocol v2’)

How can I have retrieve the info even if the element is not started?

Thank you for your help

João Severino [SLC] [DevOps Catalyst] Answered question 22nd June 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
4
João Severino [SLC] [DevOps Catalyst]13.01K Posted 22nd June 2023 1 Comment

Hi Yvan,

The GetLiteElementInfo SLNet message contains 2 boolean properties that you need to set to true in order to be able to retrieve stopped (IncludeStopped) or paused (IncludePaused) elements.

Your request would look something like this:

GetLiteElementInfo glei = new GetLiteElementInfo();
glei.DataMinerID = element.DmaId;
glei.ElementID = element.ElementId;
glei.IncludePaused = true;
glei.IncludeStopped = true;

João Severino [SLC] [DevOps Catalyst] Answered question 22nd June 2023
Yvan Barbotin commented 22nd June 2023

Great. It works now.
Thanks for the answer. It’s like ElementFilter.

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