Displaying and maintaining APR
Execute display commands in any view and reset commands in user view.
Task
Display information about application
protocols.
Display information about application
groups.
Display statistics for the specified application
protocols.
Display statistics for application protocols on
an interface in descending order based on
the specified criteria.
Display information about pre-defined port
mappings.
Display information about user-defined port
mappings.
Clear application statistics for an interface or
all interfaces.
APR configuration example
Network requirements
As shown in
destined for port 8080.
The router drops the packets recognized by APR.
Figure 87 Network diagram
Configuration procedure
# Create an application group named group1, and enter application group view.
<Router> system-view
[Router] app-group group1
# Add HTTP to the application group.
[Router-app-group-group1] include application http
Figure
87, configure APR on the router to recognize the HTTP packets sent by the host and
Command
display application [ name application-name | pre-defined |
user-defined ]
display app-group [ name group-name | pre-defined |
user-defined ]
display application statistics [ direction { inbound | outbound }
| interface interface-type interface-number | name
application-name ] *
display application statistics top number { bps | bytes | packets
| pps } interface interface-type interface-number
display port-mapping pre-defined
display port-mapping user-defined [ application
application-name | port port-number ]
reset application statistics [ interface interface-type
interface-number ]
299