Community discussions

 
hackclub
newbie
Topic Author
Posts: 26
Joined: Thu Dec 12, 2013 7:28 am

Urgent request from Mikrotik ... Please

Fri Mar 16, 2018 10:09 pm

Hello All ...
Please ... Why not do such a thing :

Image
So that the input and modification of the values required for variables in the scripts are restricted to the normal user level of this screen only, and to prevent it from accessing and modifying the scripts or changing the content "if using Webfig". The basic editing of scripts is restricted to the administrator, And minimize the exploitation of comments , And far from using [/system script environment]

Do I find support for it?

I want a big business , I have a lot of micro-routers, and requests from customers

This is very important in case of customization WebFig

Example script 1 :
:local DynDnsUser [/system nots-list get DynUser]
:local DynDnsPassword [/system nots-list get DynPassword]
:local DynDnsInterface [/system nots-list get DynInterface]
:local DynDnsHost [/system nots-list get DynHost]

Example script 2 :
:local SmsUser [/system nots-list get SmsUser]
:local SmsPassword  [/system nots-list get SmsPassword]
:local SmsSender [/system nots-list get SmsSender]
:local SmsMessage [/system nots-list get SmsMessage]
Thank you all ..
You do not have the required permissions to view the files attached to this post.
 
anav
Forum Guru
Forum Guru
Posts: 2967
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada

Re: Urgent request from Mikrotik ... Please

Sat Mar 17, 2018 12:25 am

I am confused by your title.
Is this an urgent request from mikrotik or an urgent request to (for) mikrotik
I'd rather manage rats than software. Follow my advice at your own risk! (Sob & mkx forced me to write that!)
 
User avatar
Cha0s
Forum Veteran
Forum Veteran
Posts: 899
Joined: Tue Oct 11, 2005 4:53 pm

Re: Urgent request from Mikrotik ... Please

Sat Mar 17, 2018 3:34 pm

I am confused about everything the OP posted :P
I couldn't make any sense of what the request is...
 
Sob
Forum Guru
Forum Guru
Posts: 4631
Joined: Mon Apr 20, 2009 9:11 pm

Re: Urgent request from Mikrotik ... Please

Sat Mar 17, 2018 7:26 pm

I'm not sure about all OP's goals, but some kind of name=value storage sounds like interesting idea for scripting. Or how does one store some persistent data now? Just in files? Such storage could be easier to use. GUI where you could see and edit values would also help. Access control (admin could create some items that would be read-only for less privileges users) would be nice too.
People who quote full posts should be spanked with ethernet cable. Some exceptions for multi-topic threads may apply.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 1715
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Urgent request from Mikrotik ... Please

Sat Mar 17, 2018 11:03 pm

....name=value storage....
It's just called "macros"
Real admins use real keyboards.
 
Sob
Forum Guru
Forum Guru
Posts: 4631
Joined: Mon Apr 20, 2009 9:11 pm

Re: Urgent request from Mikrotik ... Please

Sun Mar 18, 2018 12:26 am

I meant something like existing "/system script environment", but:

- Fully editable from WinBox. Currently you can't add new variables.
- With ability to survive across reboots. Unless I missed something, currently the only way to store persistent data is to write them to file. This could be easier to use.
- Possibly with different access permissions. But I'm not sure about exact details, because I'm not familiar enough with current user permissions system. I know it's there, but I never really did much with it.
People who quote full posts should be spanked with ethernet cable. Some exceptions for multi-topic threads may apply.
 
User avatar
docmarius
Forum Guru
Forum Guru
Posts: 1219
Joined: Sat Nov 06, 2010 12:04 pm
Location: Timisoara, Romania
Contact:

Re: Urgent request from Mikrotik ... Please

Sun Mar 18, 2018 12:44 am

Have a script initializing the needed variables on startup is not enough?
This would give you a solution to your problem and leave Ros uncluttered for users not needing that.
Torturing CCR1009-7G-1C-1S+, RB450G, RB750GL, RB951G-2HnD, RB960PGS, RB260GSP, OmniTIK 5HnD and NetMetal 922UAGS-5HPacD + R11e-5HnD in my home network.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 1715
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Urgent request from Mikrotik ... Please

Sun Mar 18, 2018 12:48 am

But variables could be used only in scripts, not in rules like address-lists, interface-lists.
Real admins use real keyboards.
 
User avatar
docmarius
Forum Guru
Forum Guru
Posts: 1219
Joined: Sat Nov 06, 2010 12:04 pm
Location: Timisoara, Romania
Contact:

Re: Urgent request from Mikrotik ... Please

Sun Mar 18, 2018 12:49 am

Yes, you are right. Maybe that should be changed :-)
e.g. to have the ability to place some $GLOBAL_VARIABLE_NAME as command parameters.
It works in CLI as a one time substitution, but it would be nice to have it dynamic. Unfortunately this seems IMHO to need a radical core redesign...
Torturing CCR1009-7G-1C-1S+, RB450G, RB750GL, RB951G-2HnD, RB960PGS, RB260GSP, OmniTIK 5HnD and NetMetal 922UAGS-5HPacD + R11e-5HnD in my home network.
 
Sob
Forum Guru
Forum Guru
Posts: 4631
Joined: Mon Apr 20, 2009 9:11 pm

Re: Urgent request from Mikrotik ... Please

Sun Mar 18, 2018 1:00 am

I think OP's goal is to have configurable parameters outside of script itself, i.e. if there are several devices, they can have exactly the same script (for easy maintenance) and read device-specific parameters from somewhere else. I'm not scripting guy, so I may be wrong, but I belive that currently the only way to do this is to use files on disk, and I don't know if there's anything between all or nothing for access control.
People who quote full posts should be spanked with ethernet cable. Some exceptions for multi-topic threads may apply.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 1715
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Urgent request from Mikrotik ... Please

Sun Mar 18, 2018 1:09 am

@Docmarius... IMHO it shouldn't be so hard ... I know, Iknow ... it is easy to write this but ... if there is already implemented mechanism which lets change eg. interface name in Winbox which leads to change this name in all rules at once then it have to be already implemented as a list of pointers of all occurances of this name. I know that many things are represented as internal "*n" entity which could have pointer to "human readable" name but it means that it is also already implemented. Therefore implementing "macros" or variables outside CLI should not be REVOLUTION but EVOLUTION.

Let's start with MAC-list first :-)
Real admins use real keyboards.
 
User avatar
docmarius
Forum Guru
Forum Guru
Posts: 1219
Joined: Sat Nov 06, 2010 12:04 pm
Location: Timisoara, Romania
Contact:

Re: Urgent request from Mikrotik ... Please

Sun Mar 18, 2018 1:51 am

The reason i said that is doe to the fact that, at the moment, any stored configuration is static, with a few exceptions in the address lists. That means that variables names are resolved to their values when set (and not on use).
e.g. for a route using a dns name for its gateway, that will be resolved to an IP and will go that way into the working config. No re-resolving is done later on.
Having a symbolic name there, it needs to be able to be resolved on change, which needs some kind of check and trigger mechanism, which does not exist (yet?). And also a new storage paradigm for the configuration needs to be established, so that symbols get stored instead of parameter values. In my view this is a radical change, and it does not resemble list handling (unless everything becomes a list, or even better, a generic object which could be also a list).
Torturing CCR1009-7G-1C-1S+, RB450G, RB750GL, RB951G-2HnD, RB960PGS, RB260GSP, OmniTIK 5HnD and NetMetal 922UAGS-5HPacD + R11e-5HnD in my home network.
 
Sob
Forum Guru
Forum Guru
Posts: 4631
Joined: Mon Apr 20, 2009 9:11 pm

Re: Urgent request from Mikrotik ... Please

Sun Mar 18, 2018 2:22 am

For the record, I'd say that we now have two completely different topics in this thread. I can't speak for OP, but what I was describing as my interpretation of the request, didn't have anything to do with macros.
People who quote full posts should be spanked with ethernet cable. Some exceptions for multi-topic threads may apply.
 
hackclub
newbie
Topic Author
Posts: 26
Joined: Thu Dec 12, 2013 7:28 am

Re: Urgent request from Mikrotik ... Please

Wed Mar 21, 2018 6:18 pm

I am confused by your title.
Is this an urgent request from mikrotik or an urgent request to (for) mikrotik
urgent request to (for) mikrotik
 
hackclub
newbie
Topic Author
Posts: 26
Joined: Thu Dec 12, 2013 7:28 am

Re: Urgent request from Mikrotik ... Please

Wed Mar 21, 2018 6:21 pm

I am confused about everything the OP posted :P
I couldn't make any sense of what the request is...
I apologize to all of you
I speak English something :roll:
I Use Google Translator :oops:
 
hackclub
newbie
Topic Author
Posts: 26
Joined: Thu Dec 12, 2013 7:28 am

Re: Urgent request from Mikrotik ... Please

Wed Mar 21, 2018 8:46 pm

I'm not sure about all OP's goals, but some kind of name=value storage sounds like interesting idea for scripting. Or how does one store some persistent data now? Just in files? Such storage could be easier to use. GUI where you could see and edit values would also help. Access control (admin could create some items that would be read-only for less privileges users) would be nice too.
this example my dear ...

This is required

I do not want any User Limited access to script or edit any script , only edit value from note list

This is very important in case of customization and Design Skin WebFig

You do not have the required permissions to view the files attached to this post.
 
pe1chl
Forum Guru
Forum Guru
Posts: 5811
Joined: Mon Jun 08, 2015 12:09 pm

Re: Urgent request from Mikrotik ... Please

Thu Mar 22, 2018 12:55 am

Instead of using larger fonts or different colors, you need to explain what you want in more detail and in a way
that other people can understand. As it is now, it looks like nobody understands what your requirements are.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24199
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Urgent request from Mikrotik ... Please

Thu Mar 22, 2018 1:57 pm

Yep, I also don't understand the purpose of this request. You can already do this stuff in other ways. If you mean something else, I don't see the purpose yet.
No answer to your question? How to write posts
 
hackclub
newbie
Topic Author
Posts: 26
Joined: Thu Dec 12, 2013 7:28 am

Re: Urgent request from Mikrotik ... Please

Thu Mar 22, 2018 10:36 pm

Thank you for your prompt response ...

i have 30 router model : CCR1036-8G-2S+

1/ I want to make special settings and configuration in routers , too create special scripts
2/ I want to create a limited user
3/ I want to create a Design Skin custom and limited by WebFig
4/ make user limited allow access to this Skin by WebFig
5/ I want to block limited user access to (system scripts) in WebFig

But this programming script needs to change some value in variables

The only solution to prevent the limited user's support to programming and give it the power to change the value of some variables...

As shown in previous pictures also by way of calling the value from that window
:local DynDnsUser [/system nots-list get DynUser]
:local DynDnsPassword [/system nots-list get DynPassword]
:local DynDnsInterface [/system nots-list get DynInterface]
:local DynDnsHost [/system nots-list get DynHost]
Only the process of regulation and protection
 
changeip
Forum Guru
Forum Guru
Posts: 3803
Joined: Fri May 28, 2004 5:22 pm

Re: Urgent request from Mikrotik ... Please

Sat Mar 24, 2018 12:01 am

how about you create web portal where users can setup the variables, and then your router fetches them and installs the config / variables.

he's basically asking for environment variable per user security probably.
Colo and Wholesale Bandwidth Available! Sales at SanDiegoBroadband dot com
 
pe1chl
Forum Guru
Forum Guru
Posts: 5811
Joined: Mon Jun 08, 2015 12:09 pm

Re: Urgent request from Mikrotik ... Please

Sat Mar 24, 2018 10:43 am

Maybe that is it... it is unclear to me what he means with nots-list
Probably it is something that makes sense when translated in his language.

However, I wondered before what the situation is with environment variables.
When looking at the global variables in winbox there is a "User" column that for me is always empty.
It would be reasonable to expect that the user who set the variable is shown there, and maybe also to expect that only that user can change the variable later.
Or the admin would be able to change anyone's variables but a user with lower privilege can only change their own variable.
In that case, the admin may have to be able to set a variable including a username who is to own it for further modification.

Maybe there have been plans for this but it never was completed?
 
hackclub
newbie
Topic Author
Posts: 26
Joined: Thu Dec 12, 2013 7:28 am

Re: Urgent request from Mikrotik ... Please

Sat Mar 24, 2018 5:22 pm

When looking at the global variables in winbox there is a "User" column that for me is always empty.
It would be reasonable to expect that the user who set the variable is shown there, and maybe also to expect that only that user can change the variable later.
Or the admin would be able to change anyone's variables but a user with lower privilege can only change their own variable.
In that case, the admin may have to be able to set a variable including a username who is to own it for further modification.

Maybe there have been plans for this but it never was completed?
Your reply is true dear
yes . That's what I wanted to reach
"Note List " or any Name,,, is just an alternative solution to the "environment variables"
"environment " Maybe there have been plans for this but it never was completed?

thank you all .. and pe1chl dear
 
hackclub
newbie
Topic Author
Posts: 26
Joined: Thu Dec 12, 2013 7:28 am

Re: Urgent request from Mikrotik ... Please

Mon Mar 26, 2018 9:13 am

UP ...
 
hackclub
newbie
Topic Author
Posts: 26
Joined: Thu Dec 12, 2013 7:28 am

Re: Urgent request from Mikrotik ... Please

Wed Mar 28, 2018 11:50 am

UP ...
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24199
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Urgent request from Mikrotik ... Please

Wed Mar 28, 2018 11:56 am

Thank you for the suggestions. Posting "UP UP" will make the thread locked, not more. If you want to send suggestions to MikroTik, use the email address, not the forum.
No answer to your question? How to write posts

Who is online

Users browsing this forum: No registered users and 96 guests