The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter includes the following sections:
Traffic monitoring copies traffic from one or more sources and sends the copied traffic to a dedicated destination port for analysis by a network analyzer. This feature is also known as Switched Port Analyzer (SPAN).
When you create a traffic monitoring session, you can choose either an Ethernet or Fibre Channel destination port to receive the traffic. The type of destination port determines the type of session, which in turn determines the types of available traffic sources. For an Ethernet traffic monitoring session, the destination port must be an unconfigured physical port. For a Fibre Channel traffic monitoring session, the destination port must be a Fibre Channel uplink port.
An Ethernet traffic monitoring session can monitor any of the following traffic sources:
A Fibre Channel traffic monitoring session can monitor any of the following traffic sources:
Note |
The following example creates an Ethernet traffic monitoring session to copy and forward traffic to the destination port at slot 2, port 12, and commits the transaction:
UCS-A# scope eth-traffic-mon UCS-A /eth-traffic-mon # scope fabric a UCS-A /eth-traffic-mon/fabric # create eth-mon-session Monitor33 UCS-A /eth-traffic-mon/fabric/eth-mon-session* # create dest-interface 2 12 UCS-A /eth-traffic-mon/fabric/eth-mon-session/dest-interface* # commit-buffer UCS-A /eth-traffic-mon/fabric/eth-mon-session/dest-interface #
Adding Traffic Sources to the Monitoring Session
Note |
This procedure describes adding an Ethernet uplink port as a source for a traffic monitoring session. To add a Fibre Channel uplink port as a source, enter the scope fc-uplink command instead of the scope eth-uplink command in Step 1. |
A traffic monitoring session must be created.
The following example adds the ingress traffic on Ethernet uplink port 3 on slot 2 of fabric A as a source for a monitoring session and commits the transaction:
UCS-A# scope eth-uplink UCS-A /eth-uplink # scope fabric a UCS-A /eth-uplink/fabric # scope interface 2 3 UCS-A /eth-uplink/fabric/interface # create mon-src Monitor23 UCS-A /eth-uplink/fabric/interface/mon-src* # set direction receive UCS-A /eth-uplink/fabric/interface/mon-src* # commit-buffer UCS-A /eth-uplink/fabric/interface/mon-src #
You can add additional sources to the traffic monitoring session.
Note |
This procedure describes adding a vNIC as a source for a traffic monitoring session. To add a vHBA as a source, enter the scope vhba command instead of the scope vnic command in Step 2. |
A traffic monitoring session must be created.
The following example adds the ingress traffic on a dynamic vNIC as a source for a monitoring session and commits the transaction:
UCS-A# scope service-profile org / sp1 UCS-A /org/service-profile # scope vnic ether-dynamic-prot-009 UCS-A /org/service-profile/vnic # create mon-src Monitor23 UCS-A /org/service-profile/vnic/mon-src* # set direction receive UCS-A /org/service-profile/vnic/mon-src* # commit-buffer UCS-A /org/service-profile/vnic/mon-src #
You can add additional sources to the traffic monitoring session.
Note |
A traffic monitoring session must be created.
The following example adds a local VLAN as a source for an Ethernet monitoring session and commits the transaction:
UCS-A# scope eth-uplink UCS-A /eth-uplink # scope fabric a UCS-A /eth-uplink/fabric # create vlan vlan23 23 UCS-A /eth-uplink/fabric/vlan # create mon-src Monitor23 UCS-A /eth-uplink/fabric/vlan/mon-src* # commit-buffer UCS-A /eth-uplink/fabric/vlan/mon-src #
You can add additional sources to the traffic monitoring session.
Note |
This procedure describes adding a Fibre Channel storage port as a source for a Fibre Channel traffic monitoring session. To add an FCoE storage port as a source for an Ethernet traffic monitoring session, enter the create interface fcoe command instead of the create interface fc command in Step 3. |
A traffic monitoring session must be created.
Command or Action | Purpose | |
---|---|---|
Step 1 | UCS-A# scope fc-storage | Enters Fibre Channel storage port command mode. |
Step 2 | UCS-A /fc-storage # scope fabric {a | b} | Enters Fibre Channel storage port fabric mode for the specified fabric. |
Step 3 | UCS-A /fc-storage/fabric # create interface fc slot-num port-num | Creates a Fibre Channel storage port interface and enters the interface command mode. |
Step 4 | UCS-A /fc-storage/fabric/fc # create mon-src session-name | Adds the storage port as a source to the specified monitoring session. |
Step 5 | UCS-A /fc-storage/fabric/fc/mon-src # commit-buffer | Commits the transaction to the system configuration. |
The following example adds a Fibre Channel storage port on port 3 of slot 2 as a source for a Fibre Channel monitoring session and commits the transaction:
UCS-A# scope fc-storage UCS-A /fc-storage # scope fabric a UCS-A /fc-storage/fabric # create interface fc 2 3 UCS-A /fc-storage/fabric/fc* # create mon-src Monitor23 UCS-A /fc-storage/fabric/fc/mon-src* # commit-buffer UCS-A /fc-storage/fabric/fc/mon-src #
You can add additional sources to the traffic monitoring session.
Note |
Configure a traffic monitoring session.
Command or Action | Purpose | |
---|---|---|
Step 1 | UCS-A# scope eth-traffic-mon | Enters Ethernet traffic monitoring command mode. |
Step 2 | UCS-A /eth-traffic-mon # scope fabric {a | b} | Enters traffic monitoring command mode for the specified fabric. |
Step 3 | UCS-A /eth-traffic-mon/fabric # scope eth-mon-session session-name | Enters the command mode of the traffic monitoring session with the specified name. |
Step 4 | UCS-A /eth-traffic-mon/fabric/eth-mon-session # disable | enable | Disables or enables the traffic monitoring session. |
Step 5 | UCS-A /eth-traffic-mon/fabric/eth-mon-session # commit-buffer | Commits the transaction to the system configuration. |
When activated, the traffic monitoring session begins forwarding traffic to the destination as soon as a traffic source is configured.
The following example activates an Ethernet traffic monitoring session and commits the transaction:
UCS-A# scope eth-traffic-mon UCS-A /eth-traffic-mon # scope fabric a UCS-A /eth-traffic-mon/fabric # scope eth-mon-session Monitor33 UCS-A /eth-traffic-mon/fabric/eth-mon-session # enable UCS-A /eth-traffic-mon/fabric/eth-mon-session* # commit-buffer UCS-A /eth-traffic-mon/fabric/eth-mon-session # show Ether Traffic Monitoring Session: Name Admin State Oper State Oper State Reason ---------- ----------------- ------------ ----------------- Monitor33 Enabled Up Active UCS-A /eth-traffic-mon/fabric/eth-mon-session #
Note |
Command or Action | Purpose | |
---|---|---|
Step 1 | UCS-A# scope eth-traffic-mon | Enters Ethernet traffic monitoring command mode. |
Step 2 | UCS-A /eth-traffic-mon # scope fabric {a | b} | Enters traffic monitoring command mode for the specified fabric. |
Step 3 | UCS-A /eth-traffic-mon/fabric # delete eth-mon-session session-name | Deletes the traffic monitoring session with the specified name. |
Step 4 | UCS-A /eth-traffic-mon/fabric # commit-buffer | Commits the transaction to the system configuration. |
The following example deletes an Ethernet traffic monitoring session and commits the transaction:
UCS-A# scope eth-traffic-mon UCS-A /eth-traffic-mon # scope fabric a UCS-A /eth-traffic-mon/fabric # delete eth-mon-session Monitor33 UCS-A /eth-traffic-mon/fabric* # commit-buffer UCS-A /eth-traffic-mon/fabric #