I tried using plink to add users to the internalDB of the controler and i was succesful
here is what i did
Copy the below commands on a notepad and save it as internaldb.bat
@ECHO OFF C:\plink.exe <username>@<x.x.x.x> -pw <password> <com.txt exit |
In order to automatically run commands without interaction, the commands you want to run need to be inserted into a text file "com.txt"
local-userdb add username <username1> password <password1> local-userdb add username <username2> password <password2> . . local-userdb add username <username50> password <password50> |
Keep the internaldb.bat , com.txt and plink.exe on the same directory and execute the bat file
open up a command prompt, black screen comes up. Drag and drop your .bat file onto the window. If that doesnt work use cd (change directory) to go to where the file is and then press enter.
Sample :
@ECHO OFF
C:\plink.exe admin@10.30.156.14 -pw aruba123 <com.txt
exit
- Use ssh to connect
- Connect with the username admin
- The IP address of the device we are connecting is 10.30.156.14
- use the password aruba123
- run the commands contained in the file called com.txt that resides in the current directory.
Contents of com.txt file :
local-userdb add username testprog1 password testprog1
local-userdb add username testprog2 password testprog2
.
.
.
local-userdb add username testprog50 password testprog50
please try the above and If this doesn't works for you we need investigate further what's different on your case