Viewing and Clearing HTTP Content Management Rule Statistics

You can view the statistics for an HCM rule only if you have specified the count action in the rule. To verify the HTTP rule statistics, from operational mode, enter the show services http-manager statistics <rule-type> <rule-name> command.

The statistics displayed for a rule is the sum of all the instances of that rule. If you use the rule in multiple service sets, the statistics displayed will be the sum of statistics of the rule in all service sets.

Enter the show services http-manager statistics hcm-tag-rule <tag-rule-name> to view the current statistics for an HTTP tag rule.

user@router> show services http-manager statistics hcm-tag-rule <tag-rule-name>
Interface: ms-3/0/0
Term id                          Hits
1                                  10
22                                100
333                              1000
4444                            10000
55555                          100000
6                          4292967296
Interface: ms-3/1/0
Term id                          Hits
1                                  10
22                                100
333                              1000
4444                            10000
55555                          100000
6                          4292967296 

Enter the clear services http-manager statistics hcm-tag-rule <tag-rule-name> command to clear the statistics for all instances of the specified HTTP tag rule.

Enter the show services http-manager statistics hcm-redirect-rule <redirect-rule-name> to view the current statistics for an HTTP redirect rule.

user@router> show services http-manager statistics hcm-redirect-rule <redirect-rule-name>
Interface: ms-3/0/0
Term id                          Hits
1                                  10
22                                100
333                              1000
4444                            10000
55555                          100000
6                          4292967296
Interface: ms-3/1/0
Term id                          Hits
1                                  10
22                                100
333                              1000
4444                            10000
55555                          100000
6                          4292967296 

Enter the clear services http-manager statistics hcm-redirect-rule <redirect-rule-name> command to clear the statistics for all instances of the specified HTTP redirect rule.

Enter the show services http-manager statistics hcm-url-rule <url-rule-name> to view the current statistics for an HTTP URL rule.

user@router> show services http-manager statistics hcm-url-rule <url-rule-name>
Interface: ms-3/0/0
Term id                          Hits
1                                  10
22                                100
333                              1000
4444                            10000
55555                          100000
6                          4292967296
Interface: ms-3/1/0
Term id                          Hits
1                                  10
22                                100
333                              1000
4444                            10000
55555                          100000
6                          4292967296 

Enter the clear services http-manager statistics hcm-url-rule <url-rule-name> command to clear the statistics for all instances of the specified HTTP URL rule.

Related Documentation