There are different ways to log into console: Input and validation of user name and password is done by login process. Login process can also show different informative screens (license, demo version upgrade reminder, software key information, default configuration). At the end of successful login sequence login process prints banner and hands over control to the console process. Console process displays system note, last critical log entries, auto-detects terminal size and capabilities and then displays command prompt]. After that you can start writing commands. Use up arrow to recall previous commands from command history, TAB key to automatically complete words in the command you are typing, ENTER key to execute command, and Control-C to interrupt currently running command and return to prompt. Easiest way to log out of console is to press Control-D at the command prompt while command line is empty (You can cancel current command and get an empty line with Control-C, so Control-C followed by Control-D will log you out in most cases). Starting from v3.14 it is possible to specify console options during login process. These options enables or disables various console features like color, terminal detection and many other. Additional login parameters can be appended to login name after '+' sign. If parameter is not present, then default value is used. If number is not present then implicit value of parameter is used. example: admin+c80w - will disable console colors and set terminal width to 80. Login process will display MikroTik banner after validating user name and password. Actual banner can be different from the one shown here if it is replaced by distributor. See also: branding. After logging in for the first time after installation you are asked to read software licenses. Answer y to read licenses, n if you do not wish to read licenses (question will not be shown again). Pressing SPACE will skip this step and the same question will be asked after next login. After logging into router that has demo key, following remonder is shown: If router does not have software key, it is running in the time limited trial mode. After logging in following information is shown: After entering valid software key, following information is shown after login:
Applying and removing of the default configuration is done using console script (you can press 'v' to review it). It is possible to always display some fixed text message after logging into console. Console will display last critical error messages that this user has not seen yet. See log for more details on configuration. During console session these messages are printed on screen. Q: How do I turn off colors in console?
Q: After logging in console prints rubbish on the screen, what to do?
Q: Thank you, now terminal width is not right. How do I set terminal width?
Description
Console login options
login_name ::= user_name [ '+' parameters ]
parameters ::= parameter [ parameters ]
parameter ::= [ number ] 'a'..'z'
number ::= '0'..'9' [ number ]
Param Default Implicit Description "w" auto auto Set terminal width "h" auto auto Set terminal height "c" on off disable/enable console colors "t" on off Do auto detection of terminal capabilities "e" on off Enables "dumb" terminal mode Different information shown by login process
Banner
License
Do you want to see the software license? [Y/n]:
Demo version upgrade reminder
UPGRADE NOW FOR FULL SUPPORT
----------------------------
FULL SUPPORT benefits:
- receive technical support
- one year feature support
- one year online upgrades
(avoid re-installation and re-configuring your router)
To upgrade, register your license "software ID"
on our account server www.mikrotik.com
Current installation "software ID": ABCD-456
Please press "Enter" to continue!
Software key information
ROUTER HAS NO SOFTWARE KEY
----------------------------
You have 16h58m to configure the router to be remotely accessible,
and to enter the key by pasting it in a Telnet window or in Winbox.
See www.mikrotik.com/key for more details.
Current installation "software ID": ABCD-456
Please press "Enter" to continue!
ROUTER HAS NEW SOFTWARE KEY ----------------------------
Your router has a valid key, but it will become active only after reboot.
Router will automatically reboot in a day.
=== Automatic configuration ===
Usually after [[netinstall|installation]] or configuration [[reset]] RouterOS will apply [[default
settings]], such as an IP address.
First login into will show summary of these settings and offer to undo them.
This is an example:The following default configuration has been installed on your router:-------------------------------------------------------------------------------IP address 192.168.88.1/24 is on ether1ether1 is enabled-------------------------------------------------------------------------------You can type "v" to see the exact commands that are used to add and removethis default configuration, or you can view them later with'/system default-configuration print' command.To remove this default configuration type "r" or hit any other key to continue.If you are connected using the above IP and you remove it, you will be disconnected.Different information shown by console process after logging in
System Note
Critical log messages
dec/10/2007 10:40:06 system,error,critical login failure for user root from 10.0.0.1 via telnet
dec/10/2007 10:40:07 system,error,critical login failure for user root from 10.0.0.1 via telnet
dec/10/2007 10:40:09 system,error,critical login failure for user test from 10.0.0.1 via telnet
FAQ
A: Add '+c' after login name.
Q: My expect script does not work with newer 3.0 releases, it receives some strange characters. What are those?
A: These sequences are used to automatically detect terminal size and capabilities. Add '+t' after login name to turn them off.
A: Add '+t80w' after login name, where 80 is your terminal width.
Manual:Console login process
www.basic-mikrotik.blogspot.com on 18.38. FAQ -

Join The Community