Configuring MLD Snooping Tracing Operations on EX Series Switch VLANs (CLI Procedure)
By enabling tracing operations for MLD snooping, you can record detailed messages about the operation of the protocol, such as the various types of protocol packets sent and received. Table 1 describes the tracing operations you can enable and the flags used to specify them in the tracing configuration.
Table 1: Supported Tracing Operations for MLD Snooping
Tracing Operation | Flag |
---|---|
Trace all (equivalent of including all flags). | all |
Trace client notifications. | client-notification |
Trace general MLD snooping protocol events. | general |
Trace group operations. | group |
Trace host notifications. | host-notification |
Trace leave reports. | leave |
Trace normal MLD snooping protocol events. If you do not specify this flag, only unusual or abnormal operations are traced. | normal |
Trace all MLD packets. | packets |
Trace policy processing. | policy |
Trace MLD membership query messages. | query |
Trace membership reports. | report |
Trace routing information. | route |
Trace state transitions. | state |
Trace routing protocol task processing. | task |
Trace timer processing. | timer |
Configuring Tracing Operations
To configure tracing operations for MLD snooping:
- Configure the filename for the trace file:
[edit protocols mld-snooping ]
user@switch# set vlan vlan-name traceoptions file filename
For example:
[edit protocols mld-snooping ]
user@switch# set vlan vlan100 traceoptions file mld-snoop-trace
- (Optional) Configure the maximum number of trace files
and size of the trace files:
[edit protocols mld-snooping ]
user@switch # set vlan vlan-name traceoptions file files number size size
For example:
[edit protocols mld-snooping ]
user@switch # set vlan vlan100 traceoptions file files 5 size 1m
causes the contents of the trace file to be emptied and archived in a .gz file when the file reaches 1 MB. Four archive files are maintained, the contents of which are rotated whenever the current active trace file is archived.
If you omit this step, the maximum number of trace files defaults to 10, and the maximum file size to 128 KB.
- Specify one of the tracing flags shown in Table 1:
[edit protocols mld-snooping ]
user@switch # set vlan vlan-name traceoptions flag flagname
For example, to perform trace operations on VLAN-related events and on MLD query messages:
[edit protocols mld-snooping ]
user@switch# set vlan vlan100 traceoptions flag vlan
[edit protocols mld-snooping ]
user@switch# set vlan vlan100 traceoptions flag query
Viewing, Stopping, and Restarting Tracing Operations
When you commit the configuration, tracing operations begin. You can view the trace file in the /var/log directory. For example:
user@switch> file show /var/log/mld-snoop-trace
You can stop and restart tracing operations by deactivating and reactivating the configuration:
[edit]
user@switch# deactivate protocols mld-snooping traceoptions
[edit]
user@switch# activate protocols mld-snooping traceoptions