Community discussions

MikroTik App
 
qoole
just joined
Topic Author
Posts: 19
Joined: Tue Jul 02, 2013 4:20 pm

Poor API/Console behaviour

Wed Jun 22, 2016 5:56 pm

Hiya,

Further to my previous post about discrepancies in users added through the API/Terminal not showing up in the WebUI (post HERE) I also wanted to express a couple more irritations/limitations.

I will edit this post when I find more.

1) if you create a profile and limitation that limits the bandwidth of a client it takes a REBOOT of the router for it to take effect, not simply adding it to the user.
2) there is no way via the API or Terminal to see what profile/profiles are attributed to a user. You can add them via the 'create-and-activate-profile' function in '/tool user-manager user' but no way to manipulate them afterwards. (You can also run 'create-and-activate-profile' with the same arguments multiple times and end up with multiple copies of the same profile showing up as associated with a user via the WebUI)
/tool user-manager customer
set admin access=own-routers,own-users,own-profiles,own-limits,config-payment-gw

add access=own-routers,own-users,own-profiles,own-limits,config-payment-gw,parent-routers,parent-users,parent-profiles,parent-limits,parent-payment-gw backup-allowed=no disabled=no login=hs1 parent=admin \
    paypal-accept-pending=no paypal-allowed=no paypal-secure-response=no permissions=full signup-allowed=yes time-zone=-00:00
/tool user-manager profile
add name=unlimited name-for-users="" override-shared-users=unlimited owner=admin price=0 starts-at=logon validity=0s
add name=staff name-for-users="" override-shared-users=unlimited owner=admin price=0 starts-at=now validity=0s
add name=students name-for-users="" override-shared-users=off owner=admin price=0 starts-at=logon validity=0s
/tool user-manager profile limitation
add address-list=staff_address_list download-limit=0B group-name="" ip-pool=staff_pool name="Staff Pool/AddressList" owner=admin transfer-limit=0B upload-limit=0B uptime-limit=0s
/tool user-manager database
set db-path=user-manager
/tool user-manager profile profile-limitation
add from-time=0s limitation="Staff Pool/AddressList" profile=staff till-time=23h59m59s weekdays=sunday,monday,tuesday,wednesday,thursday,friday,saturday
/tool user-manager router
add coa-port=1700 customer=hs1 disabled=no ip-address=127.0.0.1 log=auth-ok,auth-fail,acct-ok,acct-fail name=hs1Router shared-secret=hs1routersecret use-coa=no
/tool user-manager user
add customer=admin disabled=no shared-users=unlimited username=00:00:00:00:00:00 wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
As you can see in the above export - nowhere does it show that the user has a profile associated with it.

All of these functions are available through the WebUI so why not Terminal/API?!

This is actually pushing me towards having to use another RADIUS server which is not what I wanted to do at all :(
Mikrotik stuff tends to be so polished, why has Userman fallen by the wayside?

Who is online

Users browsing this forum: No registered users and 2 guests