Page 1 of 1

script and character constants

Posted: Wed Feb 05, 2014 11:30 am
by solelunauno
Is there any real way to use character constants in a RouterOS script?
As described here: http://forum.mikrotik.com/viewtopic.php ... hilit=mail .
I use 6.7 . I tried to use character constants in terminal because I would make some reminder scripts for UM.
I tried something as this:
global a /
set a [/tool user-manager user get 1 %u_actualProfileLeft%] /
whithout success. I cannot find any way to use %u_actualProfileLeft% (as any other character constant) in terminal.
I'm finding to abandon UM because I think it's very unuseful if it isn't able to send notices and reminders to administrator about users profile expiration!

Re: script and character constants

Posted: Thu Feb 06, 2014 8:32 pm
by solelunauno
Is there anyone who use "character constants" in scripts?

Re: script and character constants

Posted: Thu Feb 06, 2014 10:21 pm
by ditonet
As Wiki says (http://wiki.mikrotik.com/wiki/User_Mana ... _constants),
these 'character constans' are available only for voucher template.
Is not mentioned in any place that they are also available from scripts.

Regards,

Re: script and character constants

Posted: Thu Feb 06, 2014 10:37 pm
by solelunauno
And so, how can be made a reminder script to have some notice when a user profile is reaching expiration? Where can I extract from UM information about user profile state to use for e-mail alert?

Re: script and character constants

Posted: Thu Feb 06, 2014 11:23 pm
by ditonet
Probably it's impossible to use these 'character constans' from script.
Maybe you should make feature request for this.

Regards,