MikroTik RouterOS v2.9 Reference Manual page 657

Reference manual
Table of Contents

Advertisement

{...
:put
"pick
pick
and
[admin@MikroTik]
pick - returns a range of elements or a substring depending on the type of input value ( text | ) - the
string or value list from which a substring or a subrange should be returned ( integer ) - start
position of substring or subrange ( integer ) - end position for substring or subrange
[admin@MikroTik]
[admin@MikroTik]
8
[admin@MikroTik]
1
[admin@MikroTik]
1,2,3,4
[admin@MikroTik]
3,4
[admin@MikroTik]
3
[admin@MikroTik]
6,7,8
[admin@MikroTik]
[admin@MikroTik]
10
[admin@MikroTik]
a
[admin@MikroTik]
abcd
[admin@MikroTik]
cd
[admin@MikroTik]
c
[admin@MikroTik]
fghij
put - echoes supplied argument to the console ( text ) - the text to be echoed to the console
Display the MTU of ether1 interface
[admin@MikroTik]
1500
[admin@MikroTik] >
resolve - returns IP address of the host resolved from the DNS name. The DNS settings should be
configured on the router (/ip dns submenu) prior to using this command. ( text ) - domain name to
be resolved into an IP address
DNS configuration and resolve command example
[admin@MikroTik]
[admin@MikroTik]
192.0.34.166
set - assigns new value to a variable ( name ) - the name of the variable ( text ) - the new value of
the variable
Measuring time needed to resolve www.example.com
[admin@MikroTik]
00:00:00.006
[admin@MikroTik] >
time - measures the amount of time needed to execute given console commands ( text ) - the
console commands to measure execution time of
Measuring time needed to resolve www.example.com
[admin@MikroTik]
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
and
nothing
nothing
commands
>
>
>
:put
>
:put
>
:put
>
:put
>
:put
>
:set
>
:put
>
:put
>
:put
>
:put
>
:put
>
:put
>
:put
ip
route>
ip
route>
>
:put
[:time
>
:put
[:time
commands
return
return
:set
:put
[:pick
[:pick
[:pick
[:pick
[:pick
$a
a
[:len
[:pick
[:pick
$a
[:pick
$a
[:pick
[:pick
[/interface
/ip
dns
set
:put
[:resolve
[:resolve
[:resolve
the
same
the
same
a
1,2,3,4,5,6,7,8
[:len
$a]
$a
0
$a
2
$a
2]
5
1000000]
abcdefghij
$a]
$a]
0
4]
2
4]
$a
2]
$a
5
get
ether1
primary-dns=159.148.60.2
www.example.com]
www.example.com
www.example.com
Page 643 of 695
value"}
value
>
$a]
4]
4]
1000000]
mtu]
]]
]]

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RouterOS v2.9 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF