If the versions of mikrotik are different enough that you don't know if 
you have API access, the expect script is going to be a bit of work as 
well, the 2.8 to 2.9 to 3.x to 4.x to 5.x command structures and output 
changed enough to be a royal pain.

If the majority are post 3.x I would write code to handle those with the 
API and do the others by hand.

On 11/2/11 5:26 AM, Scott Reed wrote:
> I have used expect and telnet.
> Butch Evans has some scripts for doing something similar.
>
> On 11/2/2011 6:14 AM, Paolo Di Francesco wrote:
>> Hi all
>>
>> I need to do update some parameters into the customer CPEs and it would
>> be boring to do it for hundreds of them.
>>
>> Therefore I was wondering what is the best way to write a script to tell
>> to a linux box to log into the cpe and do the following:
>>
>> 1) read some firewall parameters
>> 2) add some firewall parameters
>> 3) check the configuration
>> etc
>>
>> I have the IPs and passwords, I jut find it boring to do it by hand.
>>
>> About the API, the CPEs are different versions of mikrotik so I don't
>> know if it's a good idea to start thinking about the API.
>>
>> Any example
>> Thank you in advance
>>
>>


--------------------------------------------------------------------------------
WISPA Wants You! Join today!
http://signup.wispa.org/
--------------------------------------------------------------------------------
 
WISPA Wireless List: wireless@wispa.org

Subscribe/Unsubscribe:
http://lists.wispa.org/mailman/listinfo/wireless

Archives: http://lists.wispa.org/pipermail/wireless/

Reply via email to