Use this command to delete one or all policy classification rule entries.
profile-index | Deletes a rule(s) associated with a specific profile number. Valid profile-index values are 1 - 63. |
all-pid-entries | Deletes all rules associated with the specified policy profile index ID. |
ether | Deletes associated Ethernet II classification rule. |
ip6dest | Deletes associated IPv6 destination classification rule. |
ipdestsocket | Deletes associated IP destination with optional post-fixed port classification rule. |
ipfrag | Deletes associated IP fragmentation classification rule. |
ipproto | Deletes associated IP protocol classification rule. |
ipsourcesocket | Deletes associated IP source with optional post-fixed port classification rule. |
iptos | Deletes associated IP Type of Service classification rule. |
ipttl | Deletes associated IP time-to-live (TTL) classification rule. |
macdest | Deletes associated MAC destination address classification rule. |
macsource | Deletes associated MAC source address classification rule. |
port | Deletes associated port-string classification rule. |
tcpdestport | Deletes associated TCP destination port classification rule. |
tcpdestportip | Deletes associated TCP destination port classification rule with optional post-fix IP address. |
tcpsourceportip | Deletes associated TCP source port classification rule with optional post-fix IP address. |
udpdestportip | Deletes associated UDP destination port classification rule with optional post-fix IP address. |
udpsourceportip | Deletes associated UDP source port classification rule with optional post-fix IP address. |
all-traffic-entries | data | (Optional) Deletes all entries associated with this traffic rule or a specific data value entry. Refer to Valid Values for Policy Classification Rules for valid values for each classification type. |
mask mask | (Optional) Deletes associated data mask. Refer to Valid Values for Policy Classification Rules for valid values for each classification type and data value. |
port-string port-string | (Optional) Deletes the rule entries for the specified ingress port. |
When applicable, data, mask, and port-string must be specified for individual rules to be cleared.
All command modes.
This example shows how to delete all classification rule entries associated with policy profile 1 from all ports:
System(rw)->clear policy rule 1 all-pid-entries