Setup guide
[admin@Wandy] > /interface
[admin@Wandy] interface> find type=ether
[admin@Wandy] interface>
[admin@Wandy] interface> :put [find type=ether]
*1,*2
[admin@Wandy] interface>
This way you can see console internal numbers of items. Naturally, you can use them in other
commands:
[admin@Wandy] interface> enable [find type=ether]
[admin@Wandy] interface>
Operators
Description
Console can do simple calculations with numbers, time values, ip addresses, strings and lists. It is
achieved by writing expressions and putting them in parentheses '(' and ')'. The result of the
expression serves as a return value for the parentheses.
Command Description
! - logical NOT. Unary operator, which inverts given boolean value
- - unary minus. Inverts given number value.
~ - bit inversion. Unary operator, which inverts bits in IP address
+ - binary plus. Adds two numbers, two time values or a number and an IP address.
- - binary minus. Substracts two numbers, two time values, two IP addresses or an IP address and a
number
* - multiplication. Binary operator, which can multiply two numbers or a time value by a number.
/ - division. Binary operator. Divides one number by another (gives number) or a time value by a
number (gives time value).
< - less. Binary operator which compares two numbers, two time values or two IP addresses.
Returns boolean value
> - greater. Binary operator which compares two numbers, two time values or two IP addresses.
Returns boolean value
<= - less or equal. Binary operator which compares two numbers, two time values or two IP
addresses. Returns boolean value
>= - greater or equal. Binary operator which compares two numbers, two time values or two IP
addresses. Returns boolean value
&& - logical AND. Binary operator. The argumens and the result are both logical values
|| - logical OR. Binary operator. The argumens and the result are both logical values
& - bitwise AND The argumens and the result are both IP addresses
| - bitwise OR. The argumens and the result are both IP addresses
^ - bitwise XOR. The argumens and the result are both IP addresses
<< - left shift. Binary operator, which shifts IP address by a given amount of bits. The first
argument is an IP address, the second is an integer and the result is an IP address.
>> - right shift. Binary operator, which shifts IP address by a given amount of bits. The first
argument is an IP address, the second is an integer and the result is an IP address.
. - concatenation. Binary operator, concatenates two string or append one list to another or appends