RouterOS Italia

Versione completa: [Mikrotik] Set global and local variables
Al momento stai visualizzando i contenuti in una versione ridotta. Visualizza la versione completa e formattata.
It is common mistake among RoutterOS users who just upgraded to ver. 2.9 to assign a value to global variable by using set command. The proper way to assign a value to global variable in RouterOS ver. 2.9 is following: 
Codice:
[admin@MikroTik] >:global g1 "this is global variable"
[admin@MikroTik] >:put $g1
this is global variable
[admin@MikroTik] >
Likewise if you want to create a local variable you have to assign a value to this variable:
Codice:
[admin@MikroTik] >:local l1 "this is local variable"

Codice:
[admin@MikroTik] >:put $l1

Codice:
this is local variable

Codice:
[admin@MikroTik] >