Page 1 of 1

Export CFG on IOS-XRv and XRvK9 does not work

Posted: Sat Jun 24, 2017 12:30 pm
by mathewfer
Hi

Do we know that "Export CFG" on IOS-XRv and XRvK9 is suppoeted on EVE version 2.0.3-60?

In my setup, IOSv Export CFG works but not IOS-XRv and XRvK9 and login "cisco/cisco" is working.

Thanks in advance.

Mathew

Re: Export CFG on IOS-XRv and XRvK9 does not work

Posted: Sat Jun 24, 2017 5:50 pm
by Uldis (UD)
use admin/admin

Re: Export CFG on IOS-XRv and XRvK9 does not work

Posted: Tue Jun 27, 2017 8:45 pm
by numchucksoe
I am having the same issue in 2.0.3-68. It was working before the upgrade, now it is not. Someone else using same version is not having any issues. Ideas?
I am seeing it run the commands, but says failed to export before the config is even done showing.

Re: Export CFG on IOS-XRv and XRvK9 does not work

Posted: Tue Jun 27, 2017 10:19 pm
by ecze
here credentials to use extracted from source ( use same for enable password on cisco)

opt/unetlab/scripts/config_asa.py:username = 'admin'
/opt/unetlab/scripts/config_asa.py:password = 'cisco'
/opt/unetlab/scripts/config_asav.py:username = 'admin'
/opt/unetlab/scripts/config_asav.py:password = 'cisco'
/opt/unetlab/scripts/config_csr1000v.py:username = 'cisco'
/opt/unetlab/scripts/config_csr1000v.py:password = 'cisco'
/opt/unetlab/scripts/config_docker.py:username = 'cisco'
/opt/unetlab/scripts/config_docker.py:password = 'cisco'
/opt/unetlab/scripts/config_nxosv9k.py:username = 'admin'
/opt/unetlab/scripts/config_nxosv9k.py:password = 'admin'
/opt/unetlab/scripts/config_timos.py:username = 'admin'
/opt/unetlab/scripts/config_timos.py:password = 'admin'
/opt/unetlab/scripts/config_titanium.py:username = 'admin'
/opt/unetlab/scripts/config_titanium.py:password = 'admin'
/opt/unetlab/scripts/config_veos.py:username = 'admin'
/opt/unetlab/scripts/config_veos.py:password = 'password'
/opt/unetlab/scripts/config_viosl2.py:username = 'cisco'
/opt/unetlab/scripts/config_viosl2.py:password = 'cisco'
/opt/unetlab/scripts/config_vios.py:username = 'cisco'
/opt/unetlab/scripts/config_vios.py:password = 'cisco'
/opt/unetlab/scripts/config_vmx.py:username = 'root'
/opt/unetlab/scripts/config_vmx.py:password = 'password1'
/opt/unetlab/scripts/config_vmxvcp.py:username = 'root'
/opt/unetlab/scripts/config_vmxvcp.py:password = 'password1'
/opt/unetlab/scripts/config_vqfxre.py:username = 'root'
/opt/unetlab/scripts/config_vqfxre.py:password = 'Juniper'
/opt/unetlab/scripts/config_vsrxng.py:username = 'root'
/opt/unetlab/scripts/config_vsrxng.py:password = 'password1'
/opt/unetlab/scripts/config_vsrx.py:username = 'root'
/opt/unetlab/scripts/config_vsrx.py:password = 'password1'
/opt/unetlab/scripts/config_xrv9k.py:username = 'cisco'
/opt/unetlab/scripts/config_xrv9k.py:password = 'cisco'
/opt/unetlab/scripts/config_xrv.py:username = 'cisco'
/opt/unetlab/scripts/config_xrv.py:password = 'cisco'

ecze

Re: Export CFG on IOS-XRv and XRvK9 does not work

Posted: Wed Jun 28, 2017 1:51 am
by numchucksoe
It has no issue logging into the console. It pulls the config, but then the notification says it fails and no config is in the startup dialog

Re: Export CFG on IOS-XRv and XRvK9 does not work

Posted: Wed Jun 28, 2017 8:10 am
by ecze
Then go to skype channel and ask for help
Someone can help you trough Teamviewer

E.

Re: Export CFG on IOS-XRv and XRvK9 does not work

Posted: Sat Jul 08, 2017 1:22 pm
by youssef2004
For some device like palo-alto and F5 i don't see the related .py file, do i should create it manually?
Thanks

Re: Export CFG on IOS-XRv and XRvK9 does not work

Posted: Sat Nov 11, 2017 9:11 pm
by horseinthesky
There is an issue with /opt/unetlabripts/config_xrv.py

You should find function definition def config_get(handler) and block

Code: Select all

    handler.sendline('show running-config')
    try:
        handler.expect('!\r\nend\r\n', timeout = longtimeout)
    except:
        print('ERROR: error waiting for "end" marker.')
        node_quit(handler)
        return False
When ssh server in enabled on XRv there is no ! before end so config can't be exported.

Fix this block by deleting `!` in handler.expect:

Code: Select all

    handler.sendline('show running-config')
    try:
        handler.expect('\r\nend\r\n', timeout = longtimeout)
    except:
        print('ERROR: error waiting for "end" marker.')
        node_quit(handler)
        return False