cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
858
Views
0
Helpful
1
Replies

cisco-iosxr netsim connect issue

spudukko
Cisco Employee
Cisco Employee

when i try to connect to cisco-iosxr or asa i face this error but if i change ned code and physically set version="Cisco IOS XR Software, NETSIM"  in ned code , it will start working.

 

 

This is caused because when the ned tried to run a Oper cmd in java code "show version brief" . It is unable to find show_version.sh under netsim directory. It is unable to find show_version.sh under netsim directory. 

 

confd  cmdwrapper and cmdptywrapper both have root permissons .

I have already done chown root cmdptywrapper chmod u+s cmdptywrapper

 

I am pretty sure this is due to some environment or permission issues. I do not want to modify ned code as i understand this is due to some env permissions. Any help is appreciated.

 

at com.tailf.packages.ned.iosxr.IosxrNedCli.setupDevice(IosxrNedCli.java:621) at com.tailf.packages.ned.nedcom.NedComCliBase.newConnection(NedComCliBase.j ava:2695) at com.tailf.ned.NedWorker.dorun(NedWorker.java:1450) at com.tailf.ned.NedWorker.run(NedWorker.java:301) Caused by: com.tailf.ned.NedException: Unknown device

 

  request devices device epl0 connect result false info Failed to connect to device epl0: connection refused: Failed to setup NED :: Unknown device :: ./show_version.sh: No such file or directory

 

 

 

1 Reply 1

hniska
Cisco Employee
Cisco Employee

Did you create the netsim on this machine or did you copy it from somewhere else? Check so the execute bit is set on the script. 

 

$ find netsim/ -name show_version.sh | xargs ls -al
-rwxr-xr-x 1 hniska staff 57 Apr 22 13:01 netsim//xr/xr0/show_version.sh
-rwxr-xr-x 1 hniska staff 57 Apr 22 13:01 netsim//xr/xr1/show_version.sh