proc StartProtocol { protocol } { # Start a protocol on all the ports that has the protocol enabled set root [ixNet getRoot] foreach vport [ixNet getList $root vport] { set port [ixNet getAttribute $vport -assignedTo] puts "$vport : $port" puts "Enabled = [ixNet getAttribute $vport/protocols/[string tolower $protocol] -enabled]" if {[ixNet getAttribute $vport/protocols/[string tolower $protocol] -enabled] == "true"} { puts "Starting $protocol on $port" catch {ixNet exec start $vport/protocols/[string tolower $protocol]} errMsg if {$errMsg != "::ixNet::OK"} { puts "Error: Failed to start $protocol on port $port" } else { puts "Started $protocol on port $port" } } } }