Monitoring Redundant SIMATIC BATCH Server Pair Availability in WinCC and External NMS
To monitor the redundancy status and Master/Standby role of a SIMATIC BATCH server pair, query the system tags and asset management interfaces integrated into PCS 7 and WinCC. In WinCC OS runtime, the health of redundant partner applications (including SIMATIC BATCH) is reflected in internal system tags: @RedundantServerState (1=Master, 2=Standby, 3=Fault, 4=Standalone) and @PRF_REDUNDANCY_IS_SYNCHRONIZED (1=Synchronized, 0=Not Synchronized). In PCS 7 Maintenance Station (Asset Management), query the tag SNMP_SERVER.MaintenanceState. For external Network Management Systems (NMS) such as PRTG or Zabbix, query the SIMATIC NET SNMP OPC Server or poll the Windows service status of bfserver.exe and bfsched.exe via SNMP.
Table of Contents
- Executive Summary
- Architecture and Fundamental Mechanics
- Step-by-Step Implementation Procedure
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
Executive Summary
In regulated pharmaceutical, chemical, and food & beverage facilities running SIMATIC BATCH in high-availability redundant configurations, monitoring server health is essential to prevent batch abortion, recipe desynchronization, and data loss. While WinCC OS redundancy is readily monitored via native system tags like @RedundantServerState, plant engineers and IT infrastructure administrators frequently need to expose the operational status of the redundant SIMATIC BATCH server pair to external Network Management Systems (NMS) or centralized SCADA dashboards. Because SIMATIC BATCH operates as an integrated redundancy application registered within the WinCC redundancy framework, its availability can be tracked via internal WinCC performance tags, Maintenance Station SNMP objects, or direct Windows service monitoring.
Architecture and Fundamental Mechanics
The redundancy and diagnostic architecture of SIMATIC BATCH relies on multi-layer state synchronization:
-
SIMATIC BATCH Redundancy Mechanics: A redundant BATCH server pair consists of a primary Master server and a Standby server. The active Master coordinates batch execution, recipe steps, and controller allocations via the
Batch Control Serverservice (bfserver.exe) andBatch CDV Server(bfcdv.exe). The Standby server runs in hot standby, mirroring recipe states and batch history through real-time database replication over the terminal bus. -
Integration with WinCC Redundancy Framework: SIMATIC BATCH registers itself as a redundant application with the WinCC Redundancy Manager (
RedundancyControl). Consequently, BATCH health is factored into core WinCC redundancy tags:
-@RedundantServerState: Reports the local node role:1= Master,2= Standby,3= Fault,4= Standalone.
-@PRF_REDUNDANCY_IS_SYNCHRONIZED: Returns1only when both WinCC archives and SIMATIC BATCH databases are fully synchronized.
-@PRF_REDUNDANCY_VALIDATION: A dynamic health score evaluating terminal bus connectivity, network adapter reachability, and application heartbeats. A failure inbfserver.exedrops the validation score, triggering an automatic server failover. -
Maintenance Station (Asset Management) SNMP Architecture: When PCS 7 Maintenance Station (MS Standard) is deployed, server PC hardware and core services are monitored via SNMP. The internal tag
SNMP_SERVER<ComputerName>.MaintenanceStatereflects overall server health, flagging maintenance requests if BATCH redundancy replication fails. -
External NMS Integration: External IT monitoring software (e.g., PRTG Network Monitor, Zabbix, Nagios) cannot read internal WinCC memory tags directly. Instead, external systems monitor BATCH redundancy by:
- Querying the SIMATIC NET SNMP OPC Server for hardware and network interface availability.
- Polling Windows Service SNMP OIDs for the operational states ofbfserver.exeandbfsched.exe.
- Reading WinCC tags via OpenPCS 7 OPC UA / OPC DA interfaces.
Step-by-Step Implementation Procedure
Configure BATCH redundancy monitoring across WinCC and external network management tools using the following steps:
Method 1: Monitoring via WinCC Redundancy Tags in Graphics
- Open WinCC Graphics Designer on the OS client or server.
- Place an I/O Field or Status Display on an administrative overview screen.
- Bind the object to the internal system tag
@RedundantServerState. - Configure dynamic text formatting:
- Value 1 -> 'Master Server (Active)'
- Value 2 -> 'Standby Server (Synchronized)'
- Value 3 -> 'Redundancy Fault / Split-Brain'
- Value 4 -> 'Standalone Operation' - Bind a companion status indicator to
@PRF_REDUNDANCY_IS_SYNCHRONIZEDto confirm replication health.
Method 2: Maintenance Station SNMP Tag Inspection
- In SIMATIC Manager Plant View, ensure the BATCH servers are integrated into the Maintenance Station Plant Hierarchy.
- Open the Maintenance Station WinCC project.
- Locate the generated tag
SNMP_SERVER<ServerName>.MaintenanceStatein Tag Management. - Connect this tag to the plant asset dashboard to visualize diagnostic status according to NAMUR NE107 standards.
Method 3: Exposing BATCH Redundancy to External NMS via SNMP / OpenPCS 7
- On both BATCH servers, open Windows Services (
services.msc) and enable theSNMP Service. - Under SNMP Service Properties -> Security, configure the read-only community string (e.g.,
public) and add the NMS IP address. - In the external NMS (e.g., PRTG):
- Add the BATCH Server primary and secondary IP addresses.
- Create a Windows Service Monitor sensor targetingBatch Server Service(bfserver.exe).
- Configure a ping/reachability sensor targeting the redundancy heartbeat adapter. - Alternatively, deploy OpenPCS 7 on the OS/BATCH server to expose
@RedundantServerStateand@PRF_REDUNDANCY_IS_SYNCHRONIZEDdirectly to the NMS via secure OPC UA.
Verification
Verify the redundancy monitoring system under operational and fault conditions:
-
Normal State Verification: Observe the WinCC dashboard on both servers. Confirm that the primary server displays
@RedundantServerState == 1(Master) and the secondary displays@RedundantServerState == 2(Standby), with@PRF_REDUNDANCY_IS_SYNCHRONIZED == 1. -
Simulated Failover Test: Gracefully stop the
Batch Server Serviceon the active Master server. Confirm that:
- The Standby server immediately transitions to@RedundantServerState == 1and assumes control of active batches.
- The external NMS raises an immediate alert indicating the primary service stopped.
- WinCC logs an alarm indicating redundancy failover. -
Re-synchronization Audit: Restart the stopped service. Confirm that the servers re-synchronize, database replication completes, and
@PRF_REDUNDANCY_IS_SYNCHRONIZEDreturns to1.
Limitations and Operational Precautions
Do not rely solely on ICMP network pings to monitor BATCH server health: a server PC may respond to network pings while its internal bfserver.exe process is deadlocked or its database replication is broken. Always monitor application-level tags or Windows service states. Furthermore, when deploying OpenPCS 7 for external NMS access, verify licensing requirements with an authorized Siemens distributor or the Siemens Industry Mall.
Engineer FAQ
Is there a dedicated tag named @BatchRedundantServerState?
No. SIMATIC BATCH integrates directly into the WinCC redundancy engine, meaning its redundancy status is reflected within the standard WinCC system tags @RedundantServerState and @PRF_REDUNDANCY_IS_SYNCHRONIZED.
What values does @RedundantServerState return?
Value 1 indicates Master, 2 indicates Standby, 3 indicates Fault condition, and 4 indicates Standalone operation.
What core Windows services execute SIMATIC BATCH?
The core services are Batch Server Service (bfserver.exe), Batch CDV Server (bfcdv.exe), and Batch Scheduler (bfsched.exe).
How does SIMATIC BATCH handle split-brain situations?
If terminal bus communication is severed while both servers are healthy, the redundant servers enter a fault state (@RedundantServerState == 3) to prevent dual unsynchronized recipe modifications until communication is restored.
Can external NMS systems query WinCC system tags directly via SNMP?
Standard Windows SNMP cannot read WinCC internal memory tags. External systems must use the SIMATIC NET SNMP OPC Server, OpenPCS 7 OPC UA, or monitor the underlying Windows service executables via standard SNMP OIDs.
Technical References
- SIMATIC BATCH Operating Manual V9.0 SP1
- SIMATIC PCS 7 Fault-tolerant Process Control Systems Manual
- WinCC V7.5 Redundancy System Manual
Related Articles
- Managing Unit Allocation Conflicts and Chained Batches in SIMATIC BATCH
- Hardware Homogeneity and Synchronization Rules for Redundant WinCC OS Servers
- Troubleshooting Named Connection Disconnects on Standby/Partner WinCC OS Servers After Restart
Related Tags
- SIMATIC BATCH
- WinCC Redundancy
- @RedundantServerState
- SNMP
- Asset Management
- Fault Tolerance