set mcastmonitor [new McastMonitor]
set chan [open cbr.tr w] # open trace file;
$mmonitor attach $chan1 # attach trace file to McastMoniotor object;
$mcastmonitor set period_ 0.02 # default 0.03 (sec);
$mmonitor trace-topo # trace entire topology;
$mmonitor filter Common ptype_ $ptype(cbr) # filter on ptype_ in Common header;
$mmonitor filter IP dst_ $group # AND filter on dst_ address in IP header;
$mmonitor print-trace # begin dumping periodic traces to specified files;
The following sample output illustrates the output file format (time, count):
0.16 0 0.17999999999999999 0 0.19999999999999998 0 0.21999999999999997 6 0.23999999999999996 11 0.25999999999999995 12 0.27999999999999997 12