Community discussions

MikroTik App
 
tact1982
just joined
Topic Author
Posts: 21
Joined: Thu Feb 18, 2010 11:13 pm

How to add time to user in userman

Fri Jul 30, 2010 5:08 am

I want to add time to a user in userman
By code
New Terminal

Image
 
tact1982
just joined
Topic Author
Posts: 21
Joined: Thu Feb 18, 2010 11:13 pm

Re: How to add time to user in userman

Tue Aug 03, 2010 8:04 am

Please help me
 
tact1982
just joined
Topic Author
Posts: 21
Joined: Thu Feb 18, 2010 11:13 pm

Re: How to add time to user in userman

Wed Aug 04, 2010 12:57 pm

Impossible to resolve ??????????????? :?
 
tact1982
just joined
Topic Author
Posts: 21
Joined: Thu Feb 18, 2010 11:13 pm

Re: How to add time to user in userman

Tue Aug 10, 2010 5:47 pm

up up
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: How to add time to user in userman

Wed Aug 11, 2010 3:12 pm

/tool user-manager user add add-credit=
?
 
tact1982
just joined
Topic Author
Posts: 21
Joined: Thu Feb 18, 2010 11:13 pm

Re: How to add time to user in userman

Thu Aug 12, 2010 7:33 am

my Credits

1d
3d
5d

my users

user1 Credit=d3
user2 Credit=d3
user3 Credit=d3


I want add credit 3d to the user 2
/tool user-manager user add add-credit=3d name=user2
But this code does not work

Thank you sergejs
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: How to add time to user in userman

Thu Aug 12, 2010 11:30 am

/tool user-manager credit print
Is there name 3d?
 
tact1982
just joined
Topic Author
Posts: 21
Joined: Thu Feb 18, 2010 11:13 pm

Re: How to add time to user in userman

Thu Aug 12, 2010 3:53 pm

3d = time

credit
[host@SS] /tool user-manager credit> print
 # SUBSCRIBER                     NAME                     TIME                 FULL-PRICE  EXTEND-PRICE
 0 host                           Qemah3_3day              3d                   2500        2500        
 1 host                           Qemah4_1day              1d                   1000        1000        
 2 host                           Qemah1_30day             4w2d                 17000       17000             
[host@SS] /tool user-manager credit> 
user
[host@SS] /tool user-manager user> print
Flags: X - disabled, A - active, I - incomplete 

 1     subscriber=host name="user1" password="1234" rate-limit=" 64000/512000" uptime-used=1d14h11s 
       download-used=3442988178 upload-used=132995046 last-seen=feb/19/2010 10:54:42 credit-count=1 
       credit-left=0s credit-duration=4w2d credit-price=17000 credit-till-time=feb/28/2010 18:39:46 
       credit-time-added=0s 

I want add credit Qemah3_3day to the user1 By code
Last edited by tact1982 on Thu Aug 12, 2010 3:56 pm, edited 1 time in total.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: How to add time to user in userman

Thu Aug 12, 2010 3:55 pm

So what happen when you specify add-credit=Qemah3_3day?
 
tact1982
just joined
Topic Author
Posts: 21
Joined: Thu Feb 18, 2010 11:13 pm

Re: How to add time to user in userman

Thu Aug 12, 2010 4:04 pm

I want to code "New Terminal" who is doing the job
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to add time to user in userman

Thu Aug 12, 2010 4:09 pm

So adjust the cord that was given to you in this thread with the correct names.
/tool user-manager user add add-credit=Qemah3_3day name=user1
 
tact1982
just joined
Topic Author
Posts: 21
Joined: Thu Feb 18, 2010 11:13 pm

Re: How to add time to user in userman

Thu Aug 12, 2010 4:18 pm

[host@SS] > /tool user-manager user add add-credit=Qemah3_3day name=user1
subscriber: host
failure: such username already exists
[host@SS] > 
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to add time to user in userman

Thu Aug 12, 2010 4:28 pm

Remove the 'add' and keep 'add-credit'.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: How to add time to user in userman

Thu Aug 12, 2010 4:53 pm

You can use commands,

/tool user-manager user print
/tool user-manager user set <client_number> add-credit= Qemah3_3day
 
tact1982
just joined
Topic Author
Posts: 21
Joined: Thu Feb 18, 2010 11:13 pm

Re: How to add time to user in userman

Fri Aug 13, 2010 3:50 am

Yes, this is wonderful :D :D :D
Thank you very much, Mr sergejs

Code works great
/tool user-manager user set user1 add-credit= Qemah3_3day
/tool user-manager user set user2 add-credit= Qemah3_3day
/tool user-manager user set user3 add-credit= Qemah3_3day


Thank you very much, Mr sergejs

Who is online

Users browsing this forum: techcomtecnico and 57 guests