Technical Documentation

Recording MLD Join and Leave Events

You can use the accounting statement to configure the router to record MLD join and leave events and disable event recording for individual interfaces.

Enabling MLD Accounting on the Entire Routing System

To enable the recording of various MLD 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 mld]
  • [edit logical-systems logical-system-name protocols mld]

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

Table 1: MLD Event Messages

ERRMSG

Definition

RPD_MLD_JOIN

Records MLD join events.

RPD_MLD_LEAVE

Records MLD leave events.

RPD_MLD_ACCOUNTING_ON

Records when MLD accounting is enabled on an MLD interface.

RPD_MLD_ACCOUNTING_OFF

Records when MLD accounting is disabled on an MLD interface.

RPD_MLD_MEMBERSHIP_TIMEOUT

Records MLD membership timeout events.

After enabling MLD 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 MLD Accounting on Individual Interfaces

To enable or disable the MLD 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 mld interface interface-name]
  • [edit logical-systems logical-system-name protocols mld interface interface-name]

Example: Recording and Archiving MLD Join and Leave Events

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

[edit]protocols {mld {accounting; # accounting enabled on the MLD routerinterface ge-1/1/1.0 {no-accounting; # accounting disabled on interface ge-1/1/1.0}}}

Enable MLD accounting on an individual interface only:

[edit]protocols {mld {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 mld-events { # define the system log filenameany info;match “.*RPD_MLD_JOIN.* | .*RPD_MLD_LEAVE.* | .*RPD_MLD_ACCOUNTING.* | .*RPD_MLD_MEMBERSHIP_TIMEOUT.*”;    /* define the events you want to record */archive {size 10000; # rotate the file size when it reaches 10 KBfiles 3; # keep the last three filesarchive-sites {“ftp://regress@mars//var/tmp” password “anonymous”;“ftp://regress@saturn//var/tmp” password “test”;}transfer-interval 24 h; # upload the file every 24 hoursstart-time 2009–01–07:12:30; # date and time at which the upload occurs}}}

Related Topics


Published: 2010-07-19

Help
|
My Account
|
Log Out