Command Reference - MikroTik RouterOS v2.9 Reference Manual

Reference manual
Table of Contents

Advertisement

or as sequence of numbers, optionally followed by letters specifying the units of time measure (d
dor days, h for hours, m for minutes, s for seconds and ms for milliseconds), e.g.:
[admin@MikroTik] > :put 2d11h12
2d11:00:12
[admin@MikroTik] >
As can bee seen, time values with omitted unit specificators are treated as expressed in seconds.
• d, day, days - one day, or 24 hours
• h, hour, hours - one hour
• m, min - one minute
• s - one second
• ms - one millisecond, id est 0.001 second
Possible aliases for time units:
The console also accepts time values with decimal point:
[admin@MikroTik] > :put 0.1day1.2s
02:24:01.200
[admin@MikroTik] >

Command Reference

Description
RouterOS has a number of built-in console commands and expressions (ICE) that do not depend on
the current menu level. These commands do not change configuration directly, but they are useful
for automating various maintenance tasks. The full ICE list can be accessed by typing '?' after the ':'
prefix (therefore it can be safely assumed that all ICE have ':' prefix), for example:
[admin@MikroTik] > :
beep
execute
delay
find
do
for
environment
foreach
[admin@MikroTik] >
Command Description
beep - forces the built-in PC beeper to produce a signal for length seconds at frequency Hz. (
integer ; default: 1000 ) - signal frequency measured in Hz ( time ; default: 100ms ) - signal length
[admin@MikroTik]
[admin@MikroTik] >
delay - does nothing for a given amount of time. ( time ) - amount of time to wait
• omitted - delay forever
do - executes commands repeatedly until given conditions are met. If no parameters are given, do
just executes its payload once, which does not make much use. If a logical condition is specified for
the while parameter, it will be evaluated after executing commands, and in case it is true, do
statement is executed again and again until false. The if parameter, if present, is evaluated only once
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.
global
list
pick
if
local
put
led
log
resolve
len
nothing
set
>
:beep
time
toip
typeof
toarray
tonum
while
tobool
tostr
toid
totime
length=2s
frequency=10000
Page 639 of 695

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?

Table of Contents

Save PDF