Command Line Reference Guide

Quality of Service (QoS) | 1153
Example FTOS# test cam-usage service-policy input pmap_l2 linecard all
For a L2 Input Policy Map pmap_l2, the output must be as follows,
Linecard | Portpipe | CAM Partition | Available CAM | Estimated CAM | Status
| | | | per Port | (Allowed ports)
0 0 L2ACL 500 200 Allowed (2)
0 1 L2ACL 100 200 Exception
1 0 L2ACL 1000 200 Allowed (5)
1 1 L2ACL 0 200 Exception
13 1 L2ACL 400 200 Allowed (2)
FTOS#
Usage
Information
This features allows you to determine if the CAM has enough space available before applying the
configuration on an interface.
An input policy map with both Trust and Class-map configuration, the Class-map rules are ignored and
only the Trust rule is programmed in the CAM. In such an instance, the Estimated CAM output column
will contain the size of the CAM space required for the Trust rule and not the Class-map rule.
Note: In a Layer 2 Policy Map, IPv4/IPv6 rules are not allowed and hence the output contains only
L2ACL CAM partition entries.
Table 49-132. test cam-usage Command Example Fields
Field Description
Linecard Indicates the line card slot number.
Portpipe Indicates the portpipe number.
CAM Partition The CAM space where the rules are added.
Available CAM Indicates the free CAM space, in the partition, for the classification rules.
Note: The CAM entries reserved for the default rules are not included in the
Available CAM column; free entries, from the default rules space, can not be used
as a policy map for the classification rules.
Estimated CAM per Port Indicates the number of free CAM entries required (for the classification rules) to
apply the input policy map on a single interface.
Note: The CAM entries for the default rule are not included in this column; a
CAM entry for the default rule is always dedicated to a port and is always
available for that interface.
Status (Allowed ports) Indicates if the input policy map configuration on an interface belonging to a
linecard/port-pipe is successful—Allowed (n)—or not successful—Exception.
The allowed number (n) indicates the number of ports in that port-pipe on which
the Policy Map can be applied successfully.