win32net.NetStatisticsGet

dict = NetStatisticsGet(server, service , level , options )

Retrieves network statistics for specified service on specified machine

Parameters

server : string/PyUnicode

Name of server/workstation to retrieve statistics for (None or blank uses local).

service : string/PyUnicode

SERVICE_SERVER or SERVICE_WORKSTATION

level : int

Only 0 currently supported.

options : int

Must be zero.

Return Value

The result is a dictionary representing a STAT_SERVER_0 or STAT_WORKSTATION_0 struct