A method and fiber channel switch element for capturing data in a fiber
channel system is provided. The method includes, detecting a condition
for enabling data capture; setting a control bit to enable data capture;
and capturing data based on the set control bit. The switch element
includes, a diagnostic port that can configured as a traditional
communication port and/or a data capture port depending on incoming frame
data. The diagnostic port filters incoming frames, which is used to
enable data capture.