Management and Configuration Guide K/KA/KB.15.15

NOTE: Be sure to enter each class and its associated mirroring actions in the precise order
in which you want packets to be checked and processed.
To configure the mirroring actions that you want to execute on packets that match the criteria
in a specified class, enter one or more class action mirror commands from the policy
configuration context. (See (page 330).)
You can configure only one mirroring session (destination) for each class. However, you can
configure the same mirroring session for different classes.
A packet that matches the match criteria in a class is mirrored to the exit (local or remote) port
that has been previously configured for the session, where session is a value from 1 to 4 or
a text string (if you configured the session with a name when you entered the mirror
command.)
Prerequisite: The local or remote exit port for a session must be already configured before
you enter the mirror session parameter in a class action statement:
In a local mirroring session, the exit port is configured with the mirror
session-number port command.
In a remote mirroring session, the remote exit port is configured with the mirror
endpoint ip and mirror session-number remote ip commands.
Restriction: In a policy, you can configure only one mirroring session per class. However, you
can configure the same session for different classes.
Mirroring is not executed on packets that match ignore criteria in a class.
The execution of mirroring actions is performed in the order in which the classes are numerically
listed in the policy.
The complete no form of the class action mirror command or the no seq-number
command removes a class and mirroring action from the policy configuration.
To manage packets that do not match the match or ignore criteria in any class in the policy,
and therefore have no mirroring actions performed on them, you can enter an optional default
class. The default class is placed at the end of a policy configuration and specifies the mirroring
actions to perform on packets that are neither matched nor ignored.
4. (Optional) To configure a default-class in a policy, enter the default-class command at
the end of a policy configuration and specify one or more actions to be executed on packets
that are not matched and not ignored. (See “Syntax” (page 330).)
Prerequisite: The local or remote exit port for a session must be already configured with a
destination device before you enter the mirror session parameter in a default-class
action statement.
356 Monitoring and Analyzing Switch Operation