Alcatel-Lucent 6850-48 网络指南

下载
页码 1162
Diagnosing Switch Problems
Port Monitoring
OmniSwitch AOS Release 6 Network Configuration Guide
September 2009
page 45-27
To prevent more recent packets from overwriting older packets in the data file, if the file size is exceeded, 
use th
CLI command by entering port monitoring, followed by the user-speci-
fied session ID number, source, the slot number of the port to be monitored, a slash (/), the port number of 
the port, file, the name of the file, and overwrite off.
For example, to configure port monitoring session 6 on port 2/3 with a data file called “user_port” in the
/flash directory that will not overwrite older packets if the file size is exceeded, enter:
-> port monitoring 6 source 2/3 file user_port overwrite off
To allow more recent packets from overwriting older packets in the data file if the file size is exceeded 
(the default), use the 
CLI command by entering port monitoring, followed by 
the user-specified session ID number, source, the slot number of the port to be monitored, a slash (/), the 
port number of the port, file, the name of the file, and overwrite on.
For example, to configure port monitoring session 6 on port 2/3 with a data file called “user_port” in the
/flash directory that will not overwrite older packets if the file size is exceeded, enter:
-> port monitoring 6 source 2/3 file /flash/user_port overwrite on
Note. The size and no overwrite options can be entered on the same command line.
Suppressing Port Monitoring File Creation
By default, a file called pmonitor.enc is created in /flash memory when you configure and enable a port 
monitoring session. To prevent the file from being created, use the 
CLI 
command by entering port monitoring, followed by the user-specified session ID number, source, the 
slot number of the port to be monitored, a slash (/), the port number of the port, and no file.
For example, to configure port monitoring session 6 on port 2/3 with no data file created enter:
-> port monitoring 6 source 2/3 no file
Configuring Port Monitoring Direction
By default, port monitoring sessions are bidirectional. To configure the direction of a port mirroring 
session between a mirrored port and a mirroring port, use the 
CLI command by 
entering port monitoring, followed by the user-specified session ID number, source, the slot number of 
the port to be monitored, a slash (/), the port number of the port, and inportoutport, or bidirectional.
For example, to configure port monitoring session 6 on port 2/3 as unidirectional and inward bound, enter:
-> port monitoring 6 source 2/3 inport
To configure port monitoring session 6 on port 2/3 as unidirectional and outward bound, for example, 
enter:
-> port monitoring 6 source 2/3 outport
For example, to restore port monitoring session 6 on port 2/3 to its bidirectional direction, enter:
-> port monitoring 6 source 2/3 bidirectional