Community discussions

MikroTik App
 
solelunauno
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Jul 16, 2012 7:00 pm
Location: Roseto Capo Spulico CS Italy
Contact:

script and character constants

Wed Feb 05, 2014 11:30 am

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!
 
solelunauno
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Jul 16, 2012 7:00 pm
Location: Roseto Capo Spulico CS Italy
Contact:

Re: script and character constants

Thu Feb 06, 2014 8:32 pm

Is there anyone who use "character constants" in scripts?
 
ditonet
Forum Veteran
Forum Veteran
Posts: 835
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: script and character constants

Thu Feb 06, 2014 10:21 pm

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,
 
solelunauno
Member Candidate
Member Candidate
Topic Author
Posts: 120
Joined: Mon Jul 16, 2012 7:00 pm
Location: Roseto Capo Spulico CS Italy
Contact:

Re: script and character constants

Thu Feb 06, 2014 10:37 pm

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?
 
ditonet
Forum Veteran
Forum Veteran
Posts: 835
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: script and character constants

Thu Feb 06, 2014 11:23 pm

Probably it's impossible to use these 'character constans' from script.
Maybe you should make feature request for this.

Regards,