Community discussions

 
HongTH
just joined
Topic Author
Posts: 17
Joined: Thu Aug 10, 2017 2:05 pm

How to push and run script to CAP from CAPSMAN

Sat Jun 16, 2018 1:56 pm

Hi all,

Currently I have Capsman installed with 300+ units of CAP provisioned in it. I would like to change the username and password for those 300+ units of CAP in once.

Hence, may I know that is there anyway for me to come out with the solution whereby I can push the script from Capsman to instruct those CAP to change the username and password without the needs to log in to those CAP one by one?

Thanks for your kind assist.
 
User avatar
dasiu
Trainer
Trainer
Posts: 232
Joined: Fri Jan 30, 2009 11:41 am
Location: Reading, UK
Contact:

Re: How to push and run script to CAP from CAPSMAN

Mon Jun 18, 2018 3:27 pm

Yes.
1. On all CAPs enable FTP to be available only from the IP of CAPsMAN.
2. On CAPsMAN prepare the file like script.rsc, which will have the command to be sent to CAPs, like "/user set admin password=qwerty12".
3. On CAPsMAN write the script to get all IPs of CAPs and for each IP to run /tool fetch uploading the file to the CAPs. Important - to change the file name, so the file sent to the CAPs will be called script.auto.rsc - this is a special feature, that will automatically run such file after it's uploaded via FTP.
Please see:
https://wiki.mikrotik.com/wiki/Manual:C ... tic_Import

Who is online

Users browsing this forum: No registered users and 7 guests