I would like to record a parameter value for every 1 hour and save it into a file. What is the best way to achieve this? Kindly advice
Hi,
I believe there could be a few options to achieve what you need, like a timer on the connector or leveraging the trending and some reports.
However, I believe the simplest solution for your use case would be to use the DataMiner Scheduler module and an automation script.
You would configure a scheduler task with settings similar to the following ones
This would then call a script you develop in which you could use a combination of FindElement and GetParameter to read your value and then append it to a file.
Sure, you could use something like
https://learn.microsoft.com/en-us/dotnet/api/system.io.file.appendalltext?view=netframework-4.7.2#system-io-file-appendalltext(system-string-system-string)
This method opens a file, appends the specified string to the file, and then closes the file. If the file does not exist, it will create the file first.
Hi João, could you advice the command to append the values into a file?