How to add limit time in cli command '/user add' ?

Hi community. I´m from brazil and apreciate any help for these beginners questions? Thank´s any help!

(A)
If a need add user with time limit of 3 hour " 03:00:00 ", how to add limit time in cli command ‘/user add’ ?

When i access with this user after 3 hour its can´t loggin. What is the command in terminal of winbox?

--------------------------------------- Another possible?
(B)

I´m reading ‘User Manager/Limiting’ (http://wiki.mikrotik.com/wiki/User_Manager/Limiting#Example).

But in the examplo i can´t see the command cli to do the Uptime limit. How to do that?

“(…)Uptime limit is maximum time amount a user is allowed to be active(…)”. How am i do this in terminal of winbox?


--------------------------------------- Another possible?
(C)

/tool user-manager user add username=Username password=12345 group=hotspotuserprofilename location=hotspotlocation upload-limit=0 uptime-limit=1h subscriber=myhotspots

I try the command above for me. Look. But don´t work:

/user add name=testeb password=123456 group=write uptime-limit=1h

Hello community,

I suppose the answer is:

$tarefa = 'testetask';
$dt = 'Aug/26/2010';
$hr = '18:09:00';
$hrint = '00:01:00';
$politica = 'read,write,policy';
$comando = '/user remove teste; /system scheduler remove '.$tarefa;
							
$API->write('/system/scheduler/add', false);
$API->write('=name='.$tarefa, false);
$API->write('=start-date='.$dt, false);
$API->write('=start-time='.$hr, false);
$API->write('=interval='.$hrint, false);
$API->write('=policy='.$politica, false);
$API->write('=on-event='.$comando);

$ARRAY = $API->read();
							
$API->disconnect();

For me it´s work. I create ‘scheduler task’ and it do what i need with command cli adapted to API PHP.

Thanks for any correction or increase.

Without charity there is no salvation.

Why wouldn’t you use RADIUS for this?

I don´t know exactly becuse i’m not a network administrator and frankly I know very little about it. I´m a novice programmer.

After three months working in this company they asked me to build a system with web interface to control access to the mikrotik. I don´t knew anything about the mikrotik at this day. My previous experience was related to Internet pages with simple PHP´s systems.

The objective of this system is to store information about who did what in the mikrotik and automatically controls an agenda for access to maintenance people. I think I’m getting…

Perhaps, in the future, this system turns into something more complex to manage mikrotiks, customers, maintenance workers, etc … It is too early to say.

I don´t have read much about the RADIUS (http://www.mikrotik.com/testdocs/ros/2.9/guide/aaa_radius.php) but I think he is just an authenticator.