Export CFG on IOS-XRv and XRvK9 does not work

Moderator: mike

Post Reply
mathewfer
Posts: 79
Joined: Wed May 10, 2017 12:11 pm
Contact:

Export CFG on IOS-XRv and XRvK9 does not work

Post by mathewfer » Sat Jun 24, 2017 12:30 pm

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

Uldis (UD)
Posts: 5067
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

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

Post by Uldis (UD) » Sat Jun 24, 2017 5:50 pm

use admin/admin

numchucksoe
Posts: 7
Joined: Tue Jun 27, 2017 8:38 pm

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

Post by numchucksoe » Tue Jun 27, 2017 8:45 pm

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.

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

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

Post by ecze » Tue Jun 27, 2017 10:19 pm

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

numchucksoe
Posts: 7
Joined: Tue Jun 27, 2017 8:38 pm

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

Post by numchucksoe » Wed Jun 28, 2017 1:51 am

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

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

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

Post by ecze » Wed Jun 28, 2017 8:10 am

Then go to skype channel and ask for help
Someone can help you trough Teamviewer

E.

youssef2004
Posts: 4
Joined: Sat Jul 08, 2017 10:11 am

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

Post by youssef2004 » Sat Jul 08, 2017 1:22 pm

For some device like palo-alto and F5 i don't see the related .py file, do i should create it manually?
Thanks

horseinthesky
Posts: 21
Joined: Mon Mar 20, 2017 5:24 pm

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

Post by horseinthesky » Sat Nov 11, 2017 9:11 pm

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

Post Reply