--- title: "system.dnp3.freezeCounters" description: "Issues a freeze command on the given counters." --- # system.dnp3.freezeCounters > Issues a freeze command on the given counters. :::note The following function uses [system.dnp3](appendix\scripting-functions\system-dnp3\system-dnp3.md) and the [Legacy DNP3 driver](ignition-modules\opc-ua\opc-ua-drivers\dnp3\legacy-dnp3-driver\legacy-dnp3-driver.md). See [system.dnp](appendix\scripting-functions\system-dnp\system-dnp.md) for [DNP3](ignition-modules\opc-ua\opc-ua-drivers\dnp3\dnp3.md) functions using the [DNP3 driver](ignition-modules\opc-ua\opc-ua-drivers\dnp3\dnp3-driver\dnp3-driver.md). ::: This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions [Permission Type](ignition-modules\vision\vision-project-properties\vision-project-properties.md#vision-permissions-properties): DNP3 Management Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope. ## Syntax `system.dnp3.freezeCounters(deviceName, [indexes])` ### Parameters Type | Parameter | Description ------- | ------- | ----- String| `deviceName` | The name of the DNP3 device driver. List| `indexes` | A list of specific indexes on which to issue the freeze command. An empty list can be passed to freeze all counters. [optional] ### Returns Nothing ### Scope Gateway, Vision Client, Perspective Session ## Code Examples ```python title="Example #1" # This example shows a request to freeze all counters in the outstation. system.dnp3.freezeCounters("Dnp3") ``` ```python title="Example #2" # This example shows a request to freeze counters at indexes 1, 3, and 5. system.dnp3.freezeCounters("Dnp3", [1, 3, 5]) ```