Community discussions

MikroTik App
 
maximt
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 71
Joined: Tue Jul 20, 2010 6:29 am

distribute config to multiple devices

Wed Nov 13, 2013 5:58 am

I need to upload same configuration to multiple devices.
I use CLI export\import but i cant get passwords for vpn and autoupgrade service..
There is any way to export\import passwords of some ROS services?
 
leonset
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Apr 01, 2009 9:09 pm

Re: distribute config to multiple devices

Wed Nov 13, 2013 9:50 am

Manually using "export" or "export compact", my IPSec peer passwords do get exported correctly. What VPU are you using?

If you are using a script or a schedule make sure the "sensitive" policy is checked or you'll get just "*" as the password.
 
maximt
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 71
Joined: Tue Jul 20, 2010 6:29 am

Re: distribute config to multiple devices

Fri Nov 15, 2013 4:13 am

my bad. vpn exports fine.
but how i can export\import settings in
/system upgrade upgrade-package-source
?
 
User avatar
rickfrey
Trainer
Trainer
Posts: 609
Joined: Sun Feb 14, 2010 11:41 pm
Location: Van, Texas
Contact:

Re: distribute config to multiple devices

Fri Nov 15, 2013 7:54 am

/system upgrade upgrade-package-source export
 
maximt
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 71
Joined: Tue Jul 20, 2010 6:29 am

Re: distribute config to multiple devices

Mon Nov 18, 2013 6:16 am

/system upgrade upgrade-package-source export
there is no passwords
i need distribute these settings with passwords
 
User avatar
skot
Long time Member
Long time Member
Posts: 584
Joined: Wed Nov 30, 2011 3:05 am

Re: distribute config to multiple devices

Mon Nov 18, 2013 8:49 am

/system upgrade upgrade-package-source export
there is no passwords
i need distribute these settings with passwords
There doesn't seem to be a script-able way to export/import the passwords, however people have found a workaround. You can manually copy/paste code into the terminal followed by the password (and a blank line or more code):
/system upgrade upgrade-package-source add address=192.168.88.5 user=name
myPassword
/more commands...
Threads discussing this can be found here:
https://www.google.com/#q=site:forum.mi ... rce+script

There really should be a password=xxxxx option, so that it can be scripted like:
/system upgrade upgrade-package-source add address=192.168.88.5 user=name password=myPassword

Who is online

Users browsing this forum: No registered users and 16 guests