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
  • Blog
  • 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
    • DataMiner Insights
      • Security
      • System Architecture
      • DataMiner Releases & Updates
    • 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
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Store Permanent values that can be access by multiple scripts

Solved1.42K views23rd August 2024Automation
0
Amer Hodzic [DevOps Member]774 7th August 2023 2 Comments

Hi Dojo community,

As the question states I am trying to store permanent values in memory files using persistent type. the issue is you have to select which file to link it to, so my question is there any way to automate this ?

Thanks in advance

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 23rd August 2024
Marieke Goethals [SLC] [DevOps Catalyst] commented 18th October 2023

I see that this question has been inactive for some time. Have you found a solution for this yet? If so, could you select the answer (using the ✓ icon)? If not, could you provide some more information as requested in Miguel’s comment?

Marieke Goethals [SLC] [DevOps Catalyst] commented 23rd August 2024

As this question has now been inactive for a very long time, I will close it. If you still want more information about this, could you post a new question?

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Miguel Obregon [SLC] [DevOps Catalyst]18.57K Posted 7th August 2023 5 Comments

Hi Amer,

If I understood correctly, you would like to select programmatically the memory file that will be used in your script. A possible option is to create a new script that can run a your script as subscript.

For example, below a small example of a script with the memory file ‘memory 1’ as input:

This small test script generate an information event displaying the value stored in the position 1 of the memory file.

Below an example of the new (main) script that will run the previous script as subscript:

In this main script you can set programmatically which memory file will be used by the script TEST_MEMORY_SCRIPT.

More information about these methods can be found in DataMiner Docs (PrepareSubscript).

Hope it helps.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 23rd August 2024
Amer Hodzic [DevOps Member] commented 8th August 2023

Hi Miguel,
I understand sending a memory file to a sub script from a parent but the scripts I am talking about would be from two mainscripts ran at different times( a day later).
The issue for me stems that when you execute the main script you have to link a memory file to memory1 which I was wondering if that can be automated

Amer Hodzic [DevOps Member] commented 9th August 2023

check the edit for the screenshot

Miguel Obregon [SLC] [DevOps Catalyst] commented 9th August 2023

Hi,
Apart from using a script that will call the subscript with the memory variable, other options are using scheduled task or correlation rule. Another option implies calling the script from a connector (driver).
Please if you could elaborate the use case, we could check other alternatives. For example, does the use case requires memory files?

Amer Hodzic [DevOps Member] commented 19th October 2023

Hi Miguel yes and no. so there is a script that must be manually launched to configure the memory files and schedule the sub scripts. the issue is when you launch the config script you must manual select the memory file and I was wondering if there is a way to make that selection fixed to one selection. Atm I have a function to make sure that the correct memory file is selected if not it throws an error.

Miguel Obregon [SLC] [DevOps Catalyst] commented 11th June 2024

Hi Amer,
Please could you let me know if you were able to cover your use case?
With your last comment ‘Atm I have a function to make sure that the correct memory file is selected if not it throws an error’ it seems that you found a workaround. Is this correct?

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