LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-13-2013, 07:41 AM   #1
mulyead
LQ Newbie
 
Registered: Nov 2013
Posts: 7

Rep: Reputation: Disabled
Error while running tcl file in ubuntu 12.04


Hello,

I am using ns2.34 on Ubuntu 12.04. I installed NS2.34 on ubuntu and also able to install ns-BGP on it. While running a tcl script (which is downloaded from http://www2.ensc.sfu.ca/~ljilja/cnl/...-2.34-BGP.html) i am getting following error.

@ubuntu1204s:~/ns-allinone-2.34/ns-2.34/tcl/bgp/test$ ns drop-peer2.tcl

DROP-PEER2 Validation Test:

Three ASes connected in a line, each with one router.
AS 1 AS 0 AS 2
n1 }------{ n0 }------{ n2


(_o10 cmd line 1)
invoked from within
"_o10 cmd get-bgp-agent"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o10" line 2)
(SplitObject unknown line 2)
invoked from within
"$n0 get-bgp-agent"
invoked from within
"set bgp_agent0 [$n0 get-bgp-agent]"
(file "drop-peer2.tcl" line 27)

Please help me with the solution of the same.

Thanks in advance
 
Old 11-13-2013, 04:49 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Welcome to LQ.

Which "Ubuntu 12.04" are you using ? i686 ? x86_64 ?
** This command will tell : $ uname -m <Enter>

Your errors : Looks like corrupt build of BGP ?

BGP info : http://www.linuxquestions.org/questions/tags/bgp/
Binary package, bgp-ns-2.34-ubuntu1004_i386.deb, post #28 →
http://www.linuxquestions.org/questi...984/page2.html
... Can be installed on any 32bits Ubuntu : i686.

Code:
$ ns-bgp drop-peer2.tcl

DROP-PEER2 Validation Test:

 Three ASes connected in a line, each with one router.
   AS 1       AS 0       AS 2
   n1 }------{ n0 }------{ n2

Simulation starts...

 time: 0.25 
 n0 (ip_addr 10.0.0.1)  defines a network 10.0.0.0/24.

 time: 0.25 
 n1 (ip_addr 10.0.1.1)  defines a network 10.0.1.0/24.

 time: 0.25 
 n2 (ip_addr 10.0.2.1)  defines a network 10.0.2.0/24.

 time: 31  
 dump routing tables in all BGP agents: 

BGP routing table of n0
BGP table version is 4, local router ID is 10.0.0.1
Status codes: * valid, > best, i - internal.
     Network            Next Hop       Metric  LocPrf  Weight Path 
*>   10.0.1.0/24        10.0.1.1/32           -      -      - 1        
*>   10.0.2.0/24        10.0.2.1/32           -      -      - 2        
*>   10.0.3.0/24        self                  -      -      -          

BGP routing table of n1
BGP table version is 4, local router ID is 10.0.1.1
Status codes: * valid, > best, i - internal.
     Network            Next Hop       Metric  LocPrf  Weight Path 
*>   10.0.1.0/24        self                  -      -      -          
*>   10.0.2.0/24        10.0.0.1/32           -      -      - 0 2      
*>   10.0.3.0/24        10.0.0.1/32           -      -      - 0        

BGP routing table of n2
BGP table version is 4, local router ID is 10.0.2.1
Status codes: * valid, > best, i - internal.
     Network            Next Hop       Metric  LocPrf  Weight Path 
*>   10.0.1.0/24        10.0.0.1/32           -      -      - 0 1      
*>   10.0.2.0/24        self                  -      -      -          
*>   10.0.3.0/24        10.0.0.1/32           -      -      - 0        


 time: 90.26  
 dump routing tables in all BGP agents: 

BGP routing table of n0
BGP table version is 5, local router ID is 10.0.0.1
Status codes: * valid, > best, i - internal.
     Network            Next Hop       Metric  LocPrf  Weight Path 
*>   10.0.2.0/24        10.0.2.1/32           -      -      - 2        
*>   10.0.3.0/24        self                  -      -      -          

BGP routing table of n1
BGP table version is 6, local router ID is 10.0.1.1
Status codes: * valid, > best, i - internal.
     Network            Next Hop       Metric  LocPrf  Weight Path 
*>   10.0.1.0/24        self                  -      -      -          

BGP routing table of n2
BGP table version is 5, local router ID is 10.0.2.1
Status codes: * valid, > best, i - internal.
     Network            Next Hop       Metric  LocPrf  Weight Path 
*>   10.0.2.0/24        self                  -      -      -          
*>   10.0.3.0/24        10.0.0.1/32           -      -      - 0        

Simulation finished. Executing nam...

Last edited by knudfl; 11-13-2013 at 04:51 PM.
 
1 members found this post helpful.
Old 11-13-2013, 04:56 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
P.S. :
The proof version of "drop-peer2.tcl" is included in the bgp package / patch:
ns-2.34/tcl/bgp/test

* Ref. ns-2.34-bgp_2.0_patch .

-
 
Old 11-14-2013, 12:30 PM   #4
mulyead
LQ Newbie
 
Registered: Nov 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks for your help....

After installing the said Binary package, bgp-ns-2.34-ubuntu1004_i386.deb now i am able to run the tcl files.

I am using ubuntu 12.04 - i686


Thanks a lot
 
  


Reply

Tags
bgp, bgp-ns2, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP ME: Error while running tcl scrip for ZRP in NS2.33 ubuntu 10.04 vuichoigiaitri Ubuntu 1 12-02-2012 11:11 PM
error running tcl file simulating mpolsr assassin91 Linux - Newbie 1 04-18-2012 10:35 AM
Getting error while running fhmipv6.tcl in ns-2.33 masju Linux - Newbie 0 04-17-2012 08:48 AM
scheduler error in running tcl file humairaafzal73 Linux - Software 0 02-27-2012 11:17 AM
running of tcl error tootz Linux - Software 15 03-01-2011 01:08 AM


All times are GMT -5. The time now is 09:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration