Community discussions

MikroTik App
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

auto configuration

Tue Feb 28, 2012 8:31 am

i need some help with this

I want to right out a small script that i can throw into a CPE, reset the board and it programs up all the basics for me, all the standard stuff. the question is how do i go about doing this, how should it be written out and then where in the routerOS must i stick it so that i'll auto configure
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: auto configuration

Tue Feb 28, 2012 10:43 am

write your script, then with netinstall reinstall RouterOS and provide your script. Now each time after reset configuration, your script will be executed.
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: auto configuration

Tue Feb 28, 2012 11:00 am

netinstall will be tricky as some CPE's I work with do not as a serial port, I guess this means I will not be able to use a script.

Is it then possible to say jot down all the commands onto a text doc and then just copy/paste them into the terminal from within winbox or even through putty.
Will that work, will the routerOS take that commands in that fashion
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: auto configuration

Tue Feb 28, 2012 11:11 am

You don't need serial to run netinstall.

Copy/paste to terminal will work, uploading script file to the router and then importing it will also work.
 
User avatar
shadowskippie
Member Candidate
Member Candidate
Topic Author
Posts: 213
Joined: Tue Dec 21, 2010 6:20 pm

Re: auto configuration

Tue Feb 28, 2012 12:44 pm

hmm...okay, right all i need now is to learn how to write the script. could you link me to where i can learn this. or just tell me what i'm looking for and I'll find it myself

Ps. Thanks for all the help
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: auto configuration

Tue Feb 28, 2012 1:01 pm

Who is online

Users browsing this forum: Bing [Bot], BoraHorza, shahzaddj1 and 187 guests