get_dfw_rule_stats
Retrieve hit-count statistics for a DFW rule to verify active traffic before updating or deleting the rule.
Instructions
[READ] Get packet/byte hit-count statistics for a DFW rule.
Returns one flat stats object, not an envelope: packet_count, byte_count, session_count, hit_count, popularity_index. Use it before update_dfw_rule or delete_dfw_rule to see if a rule still matches traffic; counters are cumulative and may read zero on a new rule. Ids come from list_dfw_rules.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"policy_id": "<policy_id>",
"rule_id": "<rule_id>"
},
"name": "get_dfw_rule_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional NSX Manager target from config. | |
| rule_id | Yes | Rule identifier. | |
| policy_id | Yes | Parent policy identifier. |