EasyManuals Logo

MikroTik RouterOS v2.9 User Manual

MikroTik RouterOS v2.9
709 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #653 background imageLoading...
Page #653 background image
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 global list pick time toip typeof
delay find if local put toarray tonum while
do for led log resolve tobool tostr
environment foreach len nothing set toid totime
[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] > :beep length=2s frequency=10000
[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
Page 639 of 695
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.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

MikroTik RouterOS v2.9 Specifications

General IconGeneral
BrandMikroTik
ModelRouterOS v2.9
CategorySoftware
LanguageEnglish