04-20-2020 06:06 PM - edited 04-20-2020 06:24 PM
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
04-22-2020 05:45 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide