modified on 21 lip 2010 at 09:12 ••• 3 180 views


Z MikroTik Wiki

  • [admin@MikroTik] /interface> - Default command prompt, shows user name, system identity, and current command path.
  • [admin@MikroTik] /interface<SAFE> - Prompt indicates that console session is in Safe Mode.
  • [admin@MikroTik] >> - Prompt indicates that HotLock is turned on.
  • {(\... - While entering multiple line command continuation prompt shows open parentheses.
  • line 2 of 3> - While editing multiple line command prompt shows current line number and line count.
  • address: - Command requests additional input. Prompt shows name of requested value.

Console can show different prompts depending on enabled modes and data that is being edited. Default command prompt looks like this:

[admin@MikroTik] /interface>

Default command prompt shows name of user, '@' sign and system name in brackets, followed by space, followed by current command path (if it is not '/'), followed by '>' and space. When console is in safe mode, it shows word SAFE in the command prompt.

[admin@MikroTik] /interface<SAFE> 

Hotlock mode is indicated by an additional yellow '>' character at the end of the prompt.

[admin@MikroTik] >> 

It is possible to write commands that consist of multiple lines. When entered line is not a complete command and more input is expected, console shows continuation prompt that lists all open parentheses, braces, brackets and quotes, and also trailing backslash if previous line ended with backslash-whitespace.

[admin@MikroTik] > {
{... :put (\
{(\... 1+2)}

When you are editing such multiple line entry, prompt shows number of current line and total line count instead of usual username and system name.

line 2 of 3> :put (\

Sometimes commands ask for additional input from user. For example, command '/password' asks for old and new passwords. In such cases prompt shows name of requested value, followed by colon and space.

[admin@MikroTik] > /password 
old password: ******
new password: **********
retype new password: **********