R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference

230
Flow logging configuration commands
display userlog export
Use display userlog export to view the configuration and statistics for flow logs exported to the log
server.
Syntax
In standalone mode:
display userlog export slot slot-number [ | { begin | exclude | include } regular-expression ]
In IRF mode:
display userlog export chassis chassis-number slot slot-number [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
slot slot-number: Specifies a card by its slot number. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number
argument specifies the ID of the member device. The slot-number argument specifies the slot number of
the card. (In IRF mode.)
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case sensitive string of 1 to 256 characters.
Usage guidelines
Before using this command, configure the IP address and UDP port number of the log server with the
userlog flow export host command. Otherwise, the system might prompt you "No userlog export is
enabled".
Examples
# View the flow logging configuration and statistics.
<Sysname> display userlog export
flow:
Export Version 1 logs to log server : enabled
Source address of exported logs : 1.1.1.1
Address of log server : 2.2.3.3 (port: 2000)