Setup guide
• boolean
• string
There is no way to explicitly control this type conversion.
In console integers are internally represented as 64 bit signed numbers, so the range of variable
values can be from -9223372036854775808 to 9223372036854775807. It is possible to input them
as hexadecimal numbers, by prefixing with 0x.
Lists are written as comma separated sequence of values. Putting whitespaces around commas is not
recommended, because it might confuse console about word boundaries.
Boolean values are written as either true or false. Console also accepts yes for true, and no for
false.
Internal numbers begin with *.
Time intervals are written as sequence of numbers, that can be followed by letters specifying the
units of time measure. The default is a second. Numbers may have decimal point. It is also possible
to use the HH:MM:SS notation. Accepted time units:
• d, day, days - one day, id est 24 hours
• h, hour, hours - one hour
• m, min - one minute
• s - one second
• ms - one millisecond, id est 0.001 second
Internal Console Expressions (ICE)
Description
Within this document, ICE refers to console's built-in commands and expressions those 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.
Command Description
put - this action takes one argument, which it echoes to console. The action cannot be used in
scripts since scripts do not have a place to display values on.
if - this action takes one argument, a logical condition, id est an expression which must return a
boolean value. It has also two parameters, do and else. If the logical condition is evaluated to true
then the part after the do parameter is executed, otherwise the else part takes place. Note, that else
part is optional.
[admin@Wandy] > :if (yes) do={:put yes} else={:put no}
true
[admin@Wandy] > :if ([/ping 10.0.0.1 count=1] = 0) do {:put "gw unreachable"}
10.0.0.1 pong timeout
1 packets transmitted, 0 packets received, 100% packet loss
gw unreachable
[admin@Wandy] >
while - this action takes one argument, a logical condition, id est an expression which must return a
boolean value. It has also one parameter, do. The logical condition is evaluated every time before
executing do statement.
[admin@Wandy] > {:global i; :set i 0; :while ($i < 10) \