Community discussions

MikroTik App
 
domoticz
just joined
Topic Author
Posts: 3
Joined: Wed May 20, 2020 1:10 pm

print built in RouterOS variables

Wed May 20, 2020 1:20 pm

how to print
built in RouterOS variables

example for windows is
cmd
set

Thanx
 
2frogs
Long time Member
Long time Member
Posts: 587
Joined: Fri Dec 03, 2010 1:38 am

Re: print built in RouterOS variables

Wed May 20, 2020 5:57 pm

[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
 
domoticz
just joined
Topic Author
Posts: 3
Joined: Wed May 20, 2020 1:10 pm

Re: print built in RouterOS variables

Wed May 20, 2020 9:39 pm

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
 
2frogs
Long time Member
Long time Member
Posts: 587
Joined: Fri Dec 03, 2010 1:38 am

Re: print built in RouterOS variables

Wed May 20, 2020 9:49 pm

 
domoticz
just joined
Topic Author
Posts: 3
Joined: Wed May 20, 2020 1:10 pm

Re: print built in RouterOS variables

Sun May 31, 2020 1:39 pm

please write eksaples to print buil in variables ROUTER os

please
 
msatter
Forum Guru
Forum Guru
Posts: 1633
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: print built in RouterOS variables

Sun May 31, 2020 3:56 pm

Exampel:
:put ([:pick [/ip route print as-value where gateway="ether1"] 0]->"pref-src")
The manual on this:

https://wiki.mikrotik.com/wiki/Manual:S ... nd_returns
One RB4011 (cooled) and a RB760iGS (hEX S) in series. 4011 Does PPPoE/IKEv2.
Running:
RouterOS 6.47 / Winbox 3.24 / MikroTik APP 1.3.12
NordVPN viewtopic.php?f=2&t=158439&p=781009 for multiple connections.

Who is online

Users browsing this forum: No registered users and 80 guests