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

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 router
interface 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 filename
any 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 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]