0

I am trying to change the User Manager User account profile from terminal but it seems like I can't so how exactly to change the profile from Terminal..!

Why I can't do this???

[admin@TP-Link] > tool user-manager                        
[admin@TP-Link] /tool user-manager> user
[admin@TP-Link] /tool user-manager user> set [find username=home] profile="1 Mbps"
expected end of command (line 1 column 26)
[admin@TP-Link] /tool user-manager user> 

I have even tried with it as :

[admin@TP-Link] > /tool user-manager user
[admin@TP-Link] /tool user-manager user> set [find username=home] actual-profile="2 Mbps"
expected end of command (line 1 column 26)

Since the profile is stored as in value on print :

[admin@TP-Link] /tool user-manager user> print
Flags: X - disabled, A - active, I - incomplete

0 customer=admin actual-profile="1 Mbps" username="home" password="home1234" shared-users=1 wireless-psk="" wireless-enc-key="" wireless-enc-algo=none uptime-used=1w6h9m28s download-used=9836712280 upload-used=465715361 last-seen=feb/18/2017 07:51:03

Here is a screenshot too :

enter image description here

Umair Shah
  • 2,305
  • 2
  • 25
  • 50
  • have you tried using the `tool user-manager user create-and-activate-profile` command? – Andreu Ramos Feb 20 '17 at 19:40
  • @AndreuHeineken : This command is only for adding and activating new profile which will be added in queue after the first one profile so there is no benefit of that...What I want is to replace the current profile with new profile..! :D – Umair Shah Feb 21 '17 at 01:42
  • @AndreuHeineken : I have wrote this script to achieve this in a way but that needs improvement as : http://stackoverflow.com/questions/42314535/mikrotik-auto-user-manager-user-script-needs-improvement – Umair Shah Feb 22 '17 at 16:36

1 Answers1

0

/tool user-manager user create-and-activate-profile [find username="hone"] customer=admin profile="1 Mbps"

James Parsons
  • 6,097
  • 12
  • 68
  • 108
  • 2
    A direct solution is welcome, but please ensure you add context around it so your fellow users will understand how it solves the problem – Pratibha Apr 04 '19 at 14:52
  • 1
    Hello Omid, and welcome to SO! Thanks for your post. Please review [How to answer](https://stackoverflow.com/help/how-to-answer) to give a more thorough answer and help out not only this original poster, but also the rest of the community. Thanks for your post. – IAmNerd2000 Apr 04 '19 at 14:57