[Contents] [Prev] [Next] [Index] [Report an Error]

Recording IGMP Join and Leave Events

You can configure the router 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:

accounting;

You can include this statement at the following hierarchy levels:

Table 9 describes the recordable IGMP join and leave events and IGMP accounting enabled or disabled events for an IGMP interface:

Table 9: 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 router 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:

accounting;
no-accounting;

You can include this statement at the following hierarchy levels:

Example: Recording and Archiving IGMP Join and Leave Events

Enable IGMP accounting on the router and disable event recording on an individual interface:

[edit]
protocols {
igmp {
accounting; # accounting enabled on the IGMP router
interface ge-1/1/1.0 {
no-accounting; # accounting disabled on interface ge-1/1/1.0
}
}
}

Enable IGMP accounting on an individual interface only:

[edit]
protocols {
igmp {
interface ge-1/2/1.0 {
accounting; # accounting enabled on interface ge-1/2/1.0
}
}
}

Filter the events to a system log file and periodically archive the file:

[edit system]
syslog {
file igmp-events { # define the system log filename
any info;
match “.*RPD_IGMP_JOIN.* | .*RPD_IGMP_LEAVE.* | .*RPD_IGMP_ACCOUNTING.* | .*RPD_IGMP_MEMBERSHIP_TIMEOUT.*”;
    /* define the events you want to record */
archive {
size 10000; # rotate the file size when it reaches 10 Kb
files 3; # keep the last three files
archive-sites {
“ftp://regress@mars//var/tmp” password “anonymous”;
“ftp://regress@saturn//var/tmp” password “test”;
}
transfer-interval 24 h; #upload the file every 24 hours
start-time 2009–01–07:12:30; # date and time at which the upload occurs
}
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]