Identify if OPC-UA server was rebooted
Posted: 14 Jun 2021, 23:55
Hello,
I'm looking for a way to identify from my Client if the target (connected) OPC-UA server was rebooted. I'm pretty new to the SDK so I'm unsure if this is something possible or not, because I understand it can be a very tricky scenario, for example if the reboot was not planned like when the physical machine where the server is running on was rebooted or a power outage occured.
In a more common scenario I think I can listen to the UnifiedAutomation.UaClient.Session.ConnectionStatusUpdate event, but I want to be sure if there is another way to try to identify this, for example, the OPC-UA Server SDK saves the last start-up time? or the time elapsed since the last successful start-up? That info (if available) could help to do a rough estimate about when happened the last reboot.
Regards
I'm looking for a way to identify from my Client if the target (connected) OPC-UA server was rebooted. I'm pretty new to the SDK so I'm unsure if this is something possible or not, because I understand it can be a very tricky scenario, for example if the reboot was not planned like when the physical machine where the server is running on was rebooted or a power outage occured.
In a more common scenario I think I can listen to the UnifiedAutomation.UaClient.Session.ConnectionStatusUpdate event, but I want to be sure if there is another way to try to identify this, for example, the OPC-UA Server SDK saves the last start-up time? or the time elapsed since the last successful start-up? That info (if available) could help to do a rough estimate about when happened the last reboot.
Regards