When two VTScada servers are redundant, how to get the operational status of the primary and backup servers and then display them on the screen。
Thank you
When two VTScada servers are redundant, how to get the operational status of the primary and backup servers and then display them on the screen。
Thank you
Hi Jerry, here are two easy ways to do that…
The VTScada Workstation Status Tag allows you to monitor and individually alarm critical computer resources including CPU usage, virtual memory used, and hard drive space.
Additionally, the standard VTScada Services Page and widget allows you to monitor the status of every networked service in your application, view the architecture of your server lists, and to control which workstation should be the current server for any service. It does not provide a method for creating or modifying a server list. The status of each service is presented from the point of view of the workstation on which you are viewing this page. This workstation’s understanding of the status of each service could potentially be different from another workstation’s.
Because VTScada Systems can have any number of servers with distributed services, The best way to accomplish this is typically to use an expression which determines which PC is the current server or if the current service is running on the primary server.
For example, in one of my demo applications, I have the following text expression which has the output Primary Server || Backup Server based on the status of the alarm notification service:
\RPCManager\IsPrimaryServer("ModemManager") == 1
? "Primary Server"
: "Backup Server"
There are several methods to determine this, but the expression above should be safe to use in a two-server system without an advanced server list.