Community discussions

MUM Europe 2020

Search found 7 matches

by springlandswifi
Sun Nov 20, 2011 7:22 am
Forum: The User Manager
Topic: User Manager Feature request - sticky please?
Replies: 193
Views: 54365

Re: User Manager Feature request - sticky please?

Hi All, The feature that I would really love to be added to the user CLI/API is the profile being about to be set to the user Come on Guys at Mikrotik, I would be easy for you very talented guys to do and it would some many of it MISP's happy Please advise when it is going to be fixed. Mark Springla...
by springlandswifi
Tue Oct 25, 2011 1:31 am
Forum: Scripting
Topic: PHP API version of /tool user-manager user reset-counters 0
Replies: 9
Views: 4095

Re: PHP API version of /tool user-manager user reset-counter

Hi,

It turns out that when I set up the api user I has set it to 'read' not 'full'. All is right in the world and all is working as it should. Will post the monthlyaccount script after I have tidyed it up a little. I used the script to do this months accounts. Happy as. Thanks boen_robot.

Mark
by springlandswifi
Wed Oct 19, 2011 4:00 pm
Forum: Scripting
Topic: PHP API version of /tool user-manager user reset-counters 0
Replies: 9
Views: 4095

Re: PHP API version of /tool user-manager user reset-counter

I got the package from another link, cant remember where.

The $userId and $comment are in the Bigger monthlyaccount script. Will advise on code changes.
by springlandswifi
Tue Oct 18, 2011 6:42 am
Forum: Scripting
Topic: PHP API version of /tool user-manager user reset-counters 0
Replies: 9
Views: 4095

Re: PHP API version of /tool user-manager user reset-counter

What am I missing? I have looked at the examples in ur wiki. Puzzled. <?php namespace PEAR2\Net\RouterOS; require_once 'PEAR2/Net/RouterOS/Autoload.php'; require_once 'PEAR2/Net/Transmitter/Autoload.php'; try { $client = new Client('172.16.0.1', 'api', 'api1234barbs'); $printRequest = new Request('/...
by springlandswifi
Sat Oct 15, 2011 1:11 am
Forum: Scripting
Topic: PHP API version of /tool user-manager user reset-counters 0
Replies: 9
Views: 4095

Re: PHP API version of /tool user-manager user reset-counter

I got this error when trying to get your package. Will test your mods to the code and advise. Thanks for replying The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. --------------------------------...
by springlandswifi
Fri Oct 14, 2011 12:24 am
Forum: Scripting
Topic: PHP API version of /tool user-manager user reset-counters 0
Replies: 9
Views: 4095

Re: PHP API version of /tool user-manager user reset-counter

Hi, do you mean like this? if ($API2->connect('172.17.0.1', 'api', 'api1234marks')) { $AA = $API2->comm("/tool/user-manager/user/print", array('.proplist' => '.id', '?name' => 'markto1970', )); $BB = $API2->comm('/tool/user-manager/user/reset-counter', array('=numbers' => '$AA', )); print_r($AA); pr...
by springlandswifi
Wed Oct 12, 2011 4:35 pm
Forum: Scripting
Topic: PHP API version of /tool user-manager user reset-counters 0
Replies: 9
Views: 4095

PHP API version of /tool user-manager user reset-counters 0

Hi There, I have a PHP script I have written to email the clients their usage and cost. I want to add the PHP API version of this /tool/user-manager/user/reset-counters 0 and/or /tool user-manager user reset-counters A_Number to it but I cant seem to get around the space after the reset-counters com...