Recording IGMP Join and Leave Events
You can configure the routing device to record IGMP join and leave events and disable event recording for individual interfaces using the accounting statement.
Enabling IGMP Accounting on the Entire Routing System
To enable the recording of various IGMP join and leave events on the entire routing system, include the accounting statement:
You can include this statement at the following hierarchy levels:
- [edit protocols igmp]
- [edit logical-systems logical-system-name protocols igmp]
Table 1 describes the recordable IGMP join and leave events and IGMP accounting enabled or disabled events for an IGMP interface:
Table 1: IGMP Event Messages
ERRMSG Tag | Definition |
|---|---|
RPD_IGMP_JOIN | Records IGMP join events. |
RPD_IGMP_LEAVE | Records IGMP leave events. |
RPD_IGMP_ACCOUNTING_ON | Records when IGMP accounting is enabled on an IGMP interface. |
RPD_IGMP_ACCOUNTING_OFF | Records when IGMP accounting is disabled on an IGMP interface. |
RPD_IGMP_MEMBERSHIP_TIMEOUT | Records IGMP membership timeout events. |
After enabling IGMP accounting, you must configure the routing device to filter the recorded information to a file or display it to a terminal. Optionally, you can archive the events file.
For detailed information about defining and archiving system logs, see the Junos System Basics Configuration Guide.
Enabling or Disabling IGMP Accounting on Individual Interfaces
To enable or disable the IGMP join and leave event recording for individual interfaces, include the accounting or no-accounting statement:
You can include these statements at the following hierarchy levels:
- [edit protocols igmp interface interface-name]
- [edit logical-systems logical-system-name protocols igmp interface interface-name]
Example: Recording and Archiving IGMP Join and Leave Events
Enable IGMP accounting on the router and disable event recording on an individual interface:
Enable IGMP accounting on an individual interface only:
Filter the events to a system log file and periodically archive the file:
