R2511-HP MSR Router Series Layer 3 - IP Services Command Reference(V5)
158
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
This command can display all types of logs output to the log server, but it only displays NAT logs in this
document.
Examples
# View the configuration and statistics of NAT logs.
<Sysname> display userlog export
nat:
Export Version 1 logs to log server : enabled
Source address of exported logs : 2.2.2.2
Address of log server : 1.1.1.1 (port: 23)
Total Logs/UDP packets exported : 0/0
Logs in buffer : 0
Table 40 Command output
Field Descri
p
tion
nat NAT log information to be displayed.
No userlog export is enabled
NAT logs cannot be exported. The reason might be:
• The NAT log function is not enabled.
• The NAT log function is enabled, but NAT logs are configured
to be exported to the information center.
• The NAT log function is enabled, but the IP address and the
UDP port number of the log server are not configured.
Export Version 1 logs to log server NAT logs of version 1 are exported to the log server.
Source address of exported logs
Source address of exported NAT logs. (If no source IP address is
configured, this field is not displayed.)
Address of log server Log server address, including the IP address and port number.
Total Logs/UDP packets exported
Total number of the logs sent and that of the UDP packets carrying
NAT logs. (The term "UDP packets" refers to the UDP packets
carrying NAT logs. A UDP packet can carry multiple pieces of
NAT logs.)
Logs in buffer Total number of flow or NAT logs buffered.
Related commands
reset userlog nat export
nat address-group
Use nat address-group to configure a NAT address pool. When the start and end IP addresses are
specified, this command specifies an address pool. Without the start and end IP addresses specified, the
command places you into the address group view.










