Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts. Register and secure your Critical IT infrastructure
Determining the State of the Server from the Command Prompt
Geo SCADA Knowledge Base
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
📖HomeBack Sometimes you might need to perform some action on a machine, or start an application based on the state of the ClearSCADA server.
The following batch file provides a simple example on how to perform some action based on the status of the server.
@echo offFor /f "Tokens=*" %%i in ('scxcmd showstate') do set SERVERSTATE="%%i"if %SERVERSTATE% EQU "Main" goto IsMaingoto NotMain:IsMainecho This server is the MAINgoto End:NotMainecho This server is not the MAIN:End
The above code assumes that the scxcmd executable is in the path. If it isn't then either place this batch file in the same directory as scxcmd, add the installation directory to the path or modify the code above to contain the full path to scxcmd.