How to Check the Uptime and RouterOS version on the Mikrotik Command Line

Check uptime and RouterOS version

The system uptime is displayed in the system resources output.

/system/resource/print

Example Output:

                   uptime: 1w2d10h2m52s        <-- Uptime
                  version: 7.17 (stable)       <-- RouterOS version
               build-time: 2025-01-10 11:30:08
              free-memory: 21.1MiB
             total-memory: 64.0MiB
                      cpu: MIPS 24Kc V7.4
                cpu-count: 1
            cpu-frequency: 400MHz
                 cpu-load: 16%
           free-hdd-space: 45.2MiB
          total-hdd-space: 64.0MiB
  write-sect-since-reboot: 631
         write-sect-total: 486250
               bad-blocks: 0%
        architecture-name: mipsbe
               board-name: RB750GL
                 platform: MikroTik

Check RouterOS Firmware version

We can check the firmware version by running the following command.

/system/routerboard/print

Example output:

       routerboard: yes
             model: RB750GL
     serial-number: XXXXXXXXXXXX
     firmware-type: ar7240
  factory-firmware: 3.29
  current-firmware: 7.17
  upgrade-firmware: 7.17

If there is a line that says ;;; Firmware upgraded successfully, please reboot for changes to take effect!, then the firmware has been updated at some point and the router needs a reboot to apply it. Remember you need to update both the RouterOS version and the firmware version when upgrading.

Find system uptime in Linux

There are a few different ways to find out the system up time in Linux.

cat /proc/uptime

admin@localhost [~]# cat /proc/uptime
 306350.37 2218975.63
admin@localhost [~]#

Taking the above command one step further, we can run it in the date command to see the system start up date.

date  --date="cat /proc/uptime | awk '{print $1}'seconds ago"

uptime command

[admin@localhost ~]$ uptime
  6:25AM  up 2 days,  6:24, 3 users, load averages: 0.00, 0.00, 0.00
[admin@localhost ~]$

w command

[admin@localhost ~]$ w
  6:27AM  up 2 days,  6:25, 2 users, load averages: 0.00, 0.00, 0.00
 USER             TTY      FROM              LOGIN@  IDLE WHAT
 admin       p1       localhost.  6:09AM    13 su (bash)
 admin       p2       localhost.  6:25AM     - w
[admin@localhost ~]$

Reference links

https://www.cyberciti.biz/faq/server-uptime-command-to-find-out-how-long-the-system-has-been-running/

https://sharadchhetri.com/2013/03/18/4-different-commands-to-find-system-uptime-in-linux/

How to Find System Uptime in Windows

There are a few different ways to view the system uptime.   either the Task Manager or the Command Prompt.

Task Manager

Launch the Task manager by using the Ctrl+Shift+ESC Shortcut keys, Right clicking on the Task Bar, or by searching and launching from the start menu.

Go to the Performance tab, view Up time at the bottom (On Windows 10 you may need to hit More “details first”

 

Command Prompt

Launch the Command Prompt.  Can do this by clicking start and searching for cmd.

Then run

 systeminfo | find "System Boot Time"

It’ll show you when the system last started up.

Example:

C:\Users\Owner>systeminfo | find "System Boot Time"
System Boot Time: 6/21/2018, 3:45:12 AM

C:\Users\Owner>