OmniSwitch OS6860/OS6900/OS10K Troubleshooting Guide Part No.032996-00 Rev.A
AOS Release 7.X and 8.X January 2015
Alcatel-Lucent Page 145 of 148
port-mirroring 1 source 2/1/18-20 bidirectional
port-mirroring 1 enable
port-mirroring 2 source 1/1/19 inport
port-mirroring 2 enable
# no port-mirroring 1
# port-monitoring 3 source 1/1/14 file /flash/portmon2.cap size 35
ERROR: Mirroring file size invalid
Note: The maximum file size for a port monitoring capture is is 35MB.
Miscellaneous Command Set:
# port-monitoring 1 source 1/1/14 file "/flash/portmon.cap" enable
ERROR: Exceeds Max Number of Sessions
# show configuration snapshot pmm
! Port Mirroring:
port-monitoring 3 source 1/1/14 file /flash/portmon2.cap size 1 timeout 0 bidirectional
capture-type brief
Note: Only one port monitoring session is permitted.
# ls pm3.cap
pm3.cap
# ls -l pm3.cap
-------r-- 1 root root 2319866 Jan 9 16:42 pm3.cap
# rm pm3.cap
rm: remove 'pm3.cap'? Y
# port-monitoring 3 source 1/1/19 file "/flash/pm3.cap" size 32 enable capture-type full
# ls -l pm3.cap
-------r-- 1 root root 2319933 Jan 9 16:46 pm3.cap
# ls -l pm3.cap
-------r-- 1 root root 2319933 Jan 9 16:46 pm3.cap
# port-monitoring 3 source 1/1/19 file "/flash/pm3.cap" size 32 disable capture-type brief
# ls -l *.cap
-------r-- 1 root root 2097107 Jan 9 16:53 pm3.cap
Note: The maximum file-size for port monitoring captures in brief is 2097107 Bytes
When used in brief mode, only the 1
st
64-bytes of each packet are captured. Conversely in full mode the entire
packet is captured.
To view the brief mac-addresses information, the following command can be issued:
show port-monitoring file
E8:E7:32:30:0A:69 | E8:E7:32:B8:AE:25 | II-8100| 81:00:00:06:08:00:45:00:00:BA
E8:E7:32:30:0A:69 | 00:00:02:05:00:8D | II-8100| 81:00:00:64:08:00:45:00:00:BB
E8:E7:32:30:0A:69 | E8:E7:32:B8:AE:25 | II-8100| 81:00:00:06:08:00:45:00:00:BB
data file is /flash/pm3.cap
To verify the status of the port monitoring session, the following command can be issued:
# show port-monitoring status
Sess Mon. Mon. Over Oper. Admin Capt. Max. File
Src Dir write Stat Stat Type Size Name
-----+-------+----+-----+------+------+-------+------+-----------------------
3. 1/1/19 Bi ON OFF OFF Full 2048K /flash/pm3.cap