NS file parse error: parse-ns: Parsing failed (error code 256)!

43 views
Skip to first unread message

Shahrooz Pooryousef

unread,
Nov 19, 2017, 8:59:06 PM11/19/17
to emulab-users
I've just started trying out Emulab with the tutorial example NS file as following:

set ns [new Simulator]
source tb_compat.tcl

set nodeA [$ns node]
set nodeB [$ns node]

set link0 [$ns duplex-link $nodeB $nodeA 30Mb 50ms DropTail]
tb-set-link-loss $link0 0.01
tb-set-node-os $nodeA Ubuntu 14.04 LTS 64-bit
tb-set-node-os $nodeB Ubuntu 14.04 LTS 64-bit
$ns run

But I got this error:

wrong # args: should be "tb-set-node-os node os ?parentos?"
    while executing
"tb-set-node-os $nodeA Ubuntu 14.04 LTS 64-bit"
    (file "64921.ns" line 6013)
    invoked from within
"real_source ${GLOBALS::nsfile}"
    invoked from within
"if { ${GLOBALS::errors} != 1 } {
    file copy -force ${GLOBALS::tbcompat} .
    real_source ${GLOBALS::nsfile}

    if {${GLOBALS::ran} == 0} {
	perr..."
    (file "/usr/testbed/lib/ns2ir/parse.tcl" line 687)
*** ERROR: parse-ns: Parsing failed (error code 256)!
*** ERROR: batchexp: NS Parse failed!
Cleaning up and exiting with status 1 ...
Removing experiment directories ...

Eric Eide

unread,
Nov 19, 2017, 10:37:58 PM11/19/17
to Emulab Users Mailing List, Shahrooz Pooryousef
Shahrooz Pooryousef <sh.poor...@gmail.com> writes:

> I've just started trying out Emulab with the tutorial example NS file as
> following: [...]
>
> But I got this error:
>
> wrong # args: should be "tb-set-node-os node os ?parentos?"
> while executing
> "tb-set-node-os $nodeA Ubuntu 14.04 LTS 64-bit"

The OS name should be a single symbol. I think you probably meant this:

tb-set-node-os $nodeA UBUNTU14-64-STD

Eric.

--
-------------------------------------------------------------------------------
Eric Eide <ee...@cs.utah.edu> . University of Utah School of Computing
http://www.cs.utah.edu/~eeide/ . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX
Reply all
Reply to author
Forward
0 new messages