R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference
233
# Clear flow logs in the cache of all cards.
<Sysname> reset userlog flow logbuffer
In IRF mode:
# Clear flow logs in the cache of the card in slot 2 on member device 1.
<Sysname> reset userlog flow logbuffer chassis 1 slot 2
userlog flow export host
Use the userlog flow export host command to configure the IPv4 address and UDP port number of the
log server.
Use undo userlog flow export host to remove the configuration.
Syntax
In standalone mode:
userlog flow export [ slot slot-number ] [
vpn-instance vpn-instance-name ] host ipv4-address udp-port
undo userlog flow export [ slot slot-number ] [
vpn-instance vpn-instance-name ] host ipv4-address
In IRF mode:
userlog flow export chassis chassis-number slot slot-number [ vpn-instance vpn-instance-name ] host
ipv4-address udp-port
undo userlog flow export chassis chassis-number slot slot-number [ vpn-instance vpn-instance-name ]
host ipv4-address
Default
The IPv4 address and UDP port number of the log server are not configured.
Views
System view
Default command level
2: System level
Parameters
vpn-instance vpn-instance-name: Specifies a MPLS L3VPN instance by its name, a case-sensitive string of
1 to 31 characters. If the flow logging server is on the public network, do not specify this option.
ipv4-address: Specifies the IPv4 address of a flow logging server.
udp-port: Specifies the UDP port number of the flow logging server, in the range of 0 to 65535.
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.)
Usage guidelines
To output flow logs in UDP packets, you must specify a flow logging server. Otherwise the flow logs
cannot be exported.
To avoid collision with general UDP port numbers, use UDP port numbers in the range 1025 to 65535.