monitor flow problem?

View: New views
1 Messages — Rating Filter:   Alert me  

monitor flow problem?

by vap9999 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I wrote a tcl script to monitor individual flow, here is the code :


set fmon [$ns makeflowmon Fid]
set ecLink [$ns link $e1 $core]
$ns attach-fmon $ecLink $fmon
set fclassifier [$fmon classifier]
set flow1 [$fclassifier lookup auto 0 0 10]
set parr [$flow1 set parrivals_]
puts "flow: $parr"



But it always shows me the wrong messege as the following :


invalid command name ""
    while executing
"$flow1 set parrivals_"
    invoked from within
"set parr [$flow1 set parrivals_]"
    (file "test_Null_mon_flow.tcl" line 185)


Someone please gives me a hint or tell me how to solve it ?

Thanks