Community discussions

MikroTik App
 
dakobg
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Nov 06, 2017 8:58 am

eve-ng CHR export cfg issue

Thu May 26, 2022 10:23 am

Hi, Im trying to export CHR config in eve-ng lab but look like not working with 7.2.3 and 6.49.6 any idea?
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1025
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: eve-ng CHR export cfg issue

Thu May 26, 2022 12:38 pm

What more specifically does not work, like "system export" or something else?
 
dakobg
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Nov 06, 2017 8:58 am

Re: eve-ng CHR export cfg issue

Thu May 26, 2022 7:10 pm

eve-ng have a option to export configuration form nodes or use exported configuration for new nodes.
The idea is when you add a new node (chr) to add node configuration as well on boot "stratup config"!
This not work
export: right click on mikrotik chr node > "export cfg" .. this export none sense characters
exmaple:
/export[7D[m[36m/[m[35mexport[m
# may/26/2022 16:07:29 by RouterOS 7.2.3
# software id =
#
[m[36m/interface[m [m[36mwireless[m [m[36msecurity-profiles
[m[35mset[m [m[33m[[m [m[35mfind[m [m[32;1mdefault[m[33m=[myes [m[33m][m [m[32msupplicant-identity[m[33m=[mMikroTik
[m[36m/port
[m[35mset[m 0 [m[32mname[m[33m=[mserial0
[m[36m/ip[m [m[36mdhcp-client
[m[35madd[m [m[32minterface[m[33m=[mether1
[m[36m/system[m [m[36midentity
[m[35mset[m [m[32mname[m[33m=[mTEST_IDENTITY
"Sartup config" not add any config to mikrotik node as well

I will check with eve-ng forum as well, but if someone have idea ...
 
dakobg
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Nov 06, 2017 8:58 am

Re: eve-ng CHR export cfg issue

Thu May 26, 2022 7:15 pm

Actually none sense config work !!!
However I believe the problem is in "new password" prompt since in order eve-ng to apply stratup config
1. first boot reset config to default
2. reboot
3. apply startup config


I just control+c (very quick) "new password" prompt and startup config was added !
Last edited by dakobg on Thu May 26, 2022 7:24 pm, edited 1 time in total.
 
dakobg
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Nov 06, 2017 8:58 am

Re: eve-ng CHR export cfg issue

Thu May 26, 2022 7:21 pm

yep "new password>" prompt is the issue for startup config.
I will contact eve-ng folks, look like they automatically skip "terms and conditions y/n" prompt probably they can fix this as well

for none sense configuration export -- no idea

anyway
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1025
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: eve-ng CHR export cfg issue

Thu May 26, 2022 11:31 pm

This should normally work with v6 thus I suspect EVE need some modifications of the api scripts to run properly using v7.
 
dakobg
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Nov 06, 2017 8:58 am

Re: eve-ng CHR export cfg issue

Fri May 27, 2022 1:12 am

I found the problem and report it ot eve-ng

The problem is in eve-ng config_mikrotik.py script + mikrotik routeros new future for "new password> " prompt on first boot (in both 6.49.6 and 7.2.3)
I will try to solved it as well, this is python script nothing complicated ..

Will make update when I have more info
 
dakobg
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Nov 06, 2017 8:58 am

Re: eve-ng CHR export cfg issue  [SOLVED]

Sun Jun 12, 2022 1:48 pm

The problem is solved with new script for eve-ng

https://github.com/NikolayDachev/eve-ng

Still checking how to contribute it in eve-ng community

for more info: https://www.eve-ng.net/forum/viewtopic.php?f=3&t=20324

Please report issues with it via GitHub

Regards,

Who is online

Users browsing this forum: No registered users and 11 guests