Win32_PerfFormattedData_FileReplicaConn python sample code
The foundations for Manageability in Windows is Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).
ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself. The Win32_PerfFormattedData_FileReplicaConn WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
Sample Code
from win32com.client import GetObject objWMI = GetObject('winmgmts:').InstancesOf('Win32_PerfFormattedData_FileReplicaConn_FileReplicaConn') for obj in objWMI: if obj.Authentications != None: print("Authentications:" + str(obj.Authentications)) if obj.AuthenticationsinError != None: print("AuthenticationsinError:" + str(obj.AuthenticationsinError)) if obj.Bindings != None: print("Bindings:" + str(obj.Bindings)) if obj.BindingsinError != None: print("BindingsinError:" + str(obj.BindingsinError)) if obj.Caption != None: print("Caption:" + str(obj.Caption)) if obj.CommunicationTimeouts != None: print("CommunicationTimeouts:" + str(obj.CommunicationTimeouts)) if obj.Description != None: print("Description:" + str(obj.Description)) if obj.FetchBlocksReceived != None: print("FetchBlocksReceived:" + str(obj.FetchBlocksReceived)) if obj.FetchBlocksReceivedinBytes != None: print("FetchBlocksReceivedinBytes:" + str(obj.FetchBlocksReceivedinBytes)) if obj.FetchBlocksSent != None: print("FetchBlocksSent:" + str(obj.FetchBlocksSent)) if obj.FetchBlocksSentinBytes != None: print("FetchBlocksSentinBytes:" + str(obj.FetchBlocksSentinBytes)) if obj.FetchRequestsReceived != None: print("FetchRequestsReceived:" + str(obj.FetchRequestsReceived)) if obj.FetchRequestsSent != None: print("FetchRequestsSent:" + str(obj.FetchRequestsSent)) if obj.Frequency_Object != None: print("Frequency_Object:" + str(obj.Frequency_Object)) if obj.Frequency_PerfTime != None: print("Frequency_PerfTime:" + str(obj.Frequency_PerfTime)) if obj.Frequency_Sys100NS != None: print("Frequency_Sys100NS:" + str(obj.Frequency_Sys100NS)) if obj.InboundChangeOrdersDampened != None: print("InboundChangeOrdersDampened:" + str(obj.InboundChangeOrdersDampened)) if obj.JoinNotificationsReceived != None: print("JoinNotificationsReceived:" + str(obj.JoinNotificationsReceived)) if obj.JoinNotificationsSent != None: print("JoinNotificationsSent:" + str(obj.JoinNotificationsSent)) if obj.Joins != None: print("Joins:" + str(obj.Joins)) if obj.LocalChangeOrdersSent != None: print("LocalChangeOrdersSent:" + str(obj.LocalChangeOrdersSent)) if obj.LocalChangeOrdersSentAtJoin != None: print("LocalChangeOrdersSentAtJoin:" + str(obj.LocalChangeOrdersSentAtJoin)) if obj.Name != None: print("Name:" + str(obj.Name)) if obj.OutboundChangeOrdersDampened != None: print("OutboundChangeOrdersDampened:" + str(obj.OutboundChangeOrdersDampened)) if obj.PacketsSent != None: print("PacketsSent:" + str(obj.PacketsSent)) if obj.PacketsSentinBytes != None: print("PacketsSentinBytes:" + str(obj.PacketsSentinBytes)) if obj.PacketsSentinError != None: print("PacketsSentinError:" + str(obj.PacketsSentinError)) if obj.RemoteChangeOrdersReceived != None: print("RemoteChangeOrdersReceived:" + str(obj.RemoteChangeOrdersReceived)) if obj.RemoteChangeOrdersSent != None: print("RemoteChangeOrdersSent:" + str(obj.RemoteChangeOrdersSent)) if obj.Timestamp_Object != None: print("Timestamp_Object:" + str(obj.Timestamp_Object)) if obj.Timestamp_PerfTime != None: print("Timestamp_PerfTime:" + str(obj.Timestamp_PerfTime)) if obj.Timestamp_Sys100NS != None: print("Timestamp_Sys100NS:" + str(obj.Timestamp_Sys100NS)) if obj.Unjoins != None: print("Unjoins:" + str(obj.Unjoins)) print("") print("########") print("")