754
Examples
# Configure the device to output session logs on a per-10-MB basis.
<Sysname> system-view
[Sysname] session log bytes-active 10
Related commands
session log enable
session log time-active
session log enable
Use
session log enable
to enable session logging.
Use
undo session log enable
to disable session logging.
Syntax
session log enable
{
ipv4
|
ipv6
}
[
acl acl-number
] {
inbound
|
outbound
}
undo session log enable
{
ipv4
|
ipv6
}
[
acl acl-number
] {
inbound
|
outbound
}
Default
Session logging is disabled.
Views
Interface view
Predefined user roles
network-admin
Parameters
ipv4
: Logs IPv4 sessions.
ipv6
: Logs IPv6 sessions.
acl acl-number
: Specifies an ACL by its number in the range of 2000 to 3999.
inbound
: Specifies the inbound direction.
outbound
: Specifies the outbound direction.
Usage guidelines
If you do not specify an ACL, this command enables session logging for all IPv4 or IPv6 sessions on
the interface.
If you do not specify the
inbound
or the
outbound
keyword, this command enables session logging
on both directions.
Up to one IPv4 ACL and one IPv6 ACL can be applied to each direction.
After session logging is enabled, the device outputs session logs as follows:
•
Outputs a session log when the specified traffic threshold or interval is reached.
•
Outputs a session log when a session entry is created or removed only if the logging for session
creation or deletion is enabled.
Examples
# Enable IPv4 session logging in the inbound direction of GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] session log flow-begin
[Sysname] session log flow-end
Summary of Contents for FlexNetwork MSR Series
Page 1005: ...987 ...