Community discussions

MikroTik App
 
VARELA
newbie
Topic Author
Posts: 49
Joined: Mon Jan 14, 2008 12:39 pm

Connecting to another MT

Mon Jan 14, 2008 1:08 pm

Hi!
Can I automatically connect to another MT (password auth.) and execute command with script?
For example, I have local MT and want to set some parameter on another 100 MT's:
/interface wireless set wlan1 ack-timeout=115

I don't want enter password 100 times...;)

Thanks.
 
VARELA
newbie
Topic Author
Posts: 49
Joined: Mon Jan 14, 2008 12:39 pm

Re: Connecting to another MT

Mon Jan 14, 2008 2:57 pm

...
/system ssh "host"
#need automatically enter pass and executable command


Please, help to connect...
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7168
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Connecting to another MT

Mon Jan 14, 2008 3:58 pm

You can write expect script that will connect to routers from specific address list and execute needed commands.
 
VARELA
newbie
Topic Author
Posts: 49
Joined: Mon Jan 14, 2008 12:39 pm

Re: Connecting to another MT

Mon Jan 14, 2008 4:17 pm

You can write expect script that will connect to routers from specific address list and execute needed commands.
But local machine is MikroTik - base station, and need connect to client MT.
Can I write expect script on MT?
 
User avatar
maximan
Trainer
Trainer
Posts: 543
Joined: Sat May 29, 2004 12:10 am
Location: Rio Cuarto, Argentina
Contact:

Re: Connecting to another MT

Mon Jan 14, 2008 4:39 pm

Use certicate for ssh

Max

Who is online

Users browsing this forum: seriosha and 15 guests