how to print
built in RouterOS variables
example for windows is
cmd
set
Thanx
how to print
built in RouterOS variables
example for windows is
cmd
set
Thanx
[tab] button is your best friend in RouterOS.
/[tab] - will show you directory and available commands for that directory
/int[tab] > /interface - auto completes
/interface set [tab] - will show all variables
i’m sorry dont understand
interface and ?
print enviroment only local and global variables and
built in variables?
please write eksaples to print buil in variables ROUTER os
ONLY TRUE COMMAND
Thanx
please write eksaples to print buil in variables ROUTER os
please
Exampel:
:put ([:pick [/ip route print as-value where gateway="ether1"] 0]->"pref-src")
The manual on this:
I’m sorry, you don’t understand the question, I’ll specify
i don’t speak english, sorry, google translator
how do i find the internal variables of routeros?
example windows
command promt
“set”
lists internal variables windows os
ALLUSERPROFILE = C: \ Windows
.
.
.
COMPUTERNAME = pc1
.
.
.
WINDIR = C: \ WINDOWS
if I want to list, for example, the file
test.cmd (test.bat)
echo "Computer name is "% COMPUTERNAME%
pause
save file
run file
test.cmd
“Computer name is pc1”
routeros
/ system identity print
(this is only one command)
Therefore, I wonder if there is a list of these internal variables listed with one command as in windows (“set” without parameters) for routeros, no prit one command but all routeros variables.
well thank you
You should be talking about environment variables. It seems that ROS does not provide this function.
environment print;
it’s good, but no gloval print variables from routerOS
any ideas?
great pity if such an order does not exist
Thanx