System Resource Management

Document revision 20-Jan-2003
This document applies to the MikroTik RouterOS v2.7

Table of Contents

Summary

MikroTik RouterOS offers several features for monitoring and managing the system resources.

Specifications

Packages required : system
License required : Any
Home menu level : /system
Protocols utilized : None
Hardware usage: not significant

Related Documents

Software Package Installation and Upgrading
Network Time Protocol (NTP)

System Resource Monitor

Submenu level : /system resource

Example

To view the basic system resource status:
[admin@MikroTik] system resource> print
             uptime: 1d23h32m6s
        free-memory: 1112 kB
       total-memory: 29528 kB
                cpu: "WinChip"
           cpu-load: 0
     free-hdd-space: 6400 kB
    total-hdd-space: 46478 kB
[admin@MikroTik] system resource>
To view the current system CPU usage and free memory:
[admin@MikroTik] system resource> monitor
       cpu-used: 3
    free-memory: 1112

[admin@MikroTik] system resource>

Notes

The propery names are self-explanatory.

In monitor command printout the values for cpu usage and free memory are in percentage and kilobytes, respectively.

IRQ Usage Monitor

Command name : /system resource irq print

Description

IRQ usage shows which IRQ (Interrupt requests) are currently used by hardware.

Example

[admin@MikroTik] system resource> irq print
Flags: U - unused
   IRQ OWNER
   1   keyboard
   2   APIC
 U 3
   4   sync1
   5   pc1
 U 6
 U 7
 U 8
 U 9
   10  ether2
   11  ether1
 U 12
   13  FPU
   14  IDE 1
[admin@MikroTik] system resource>

IO Port Usage Monitor

Command name : /system resource io print

Description

IO usage shows which IO (Input/Output) ports are currently used by hardware.

Example

[admin@MikroTik] system resource> io print
 PORT-RANGE        OWNER
 20-3F             APIC
 40-5F             timer
 60-6F             keyboard
 80-8F             DMA
 A0-BF             APIC
 C0-DF             DMA
 F0-FF             FPU
 1F0-1F7           IDE 1
 300-33F           pc1
 3C0-3DF           VGA
 3F6-3F6           IDE 1
 CF8-CFF           [PCI conf1]
 1000-100F         [Silicon Integrated Systems [SiS] 5513 [IDE]]
 1000-1007         IDE 1
 1008-100F         IDE 2
 6000-60FF         [Realtek Semiconductor Co., Ltd. RTL-8139]
 6000-60FF         [8139too]
 6100-61FF         [Realtek Semiconductor Co., Ltd. RTL-8139 (#2)]
 6100-61FF         [8139too]
[admin@MikroTik] system resource>

Reboot

Command name : /system reboot

Description

The system reboot is required when upgrading or installing new software packages. The packages are installed during the system shutdown.

The reboot process sends termination signal to all running processes, unmounts the file systems, and reboots the router.

Notes

Only users, which are members of groups with reboot privileges are permitted to reboot the router

Reboot can be called from scripts, in which case it does not prompt for confirmation

Example

[admin@MikroTik] system> reboot
Reboot, yes? [y/N]: y
system will reboot shortly

Shutdown

Command name : /system shutdown

Description

Before turning the power off for the router, the system should be brought to halt. The shutdown process sends termination signal to all running processes, unmounts the file systems, and halts the router.

For most systems, it is necessary to wait approximately 30 seconds for a safe power down.

Notes

Only users, which are members of groups with reboot privileges are permitted to shutdown the router

Shutdown can be called from scripts, in which case it does not prompt for confirmation

Example

[admin@MikroTik] system> shutdown
Shutdown, yes? [y/N]: y
system will shutdown promptly

Configuration Reset

Command name : /system reset

Description

The command clears all configuration of the router and sets it to the default including the login name and password ('admin' and no password).

The router is rebooted after the reset command.

Example

[admin@MikroTik] system> reset
Dangerous! Reset anyway? [y/N]:

Router Identity

Submenu level : /system identity

Description

The router identity is displayed before the command prompt. It is also used for DHCP client as 'host name' parameter when reporting it to the DHCP server.

Example

To view the router identity:
[admin@MikroTik] system identity> print
    name: "MikroTik"
[admin@MikroTik] system identity>
To set the router identity:
[admin@MikroTik] system identity> set name=Our_GW
[admin@Our_GW] system identity>

Date and Time

Submenu level : /system clock

Property Description

time (string) - date and time in format: "mm/DD/YYYY HH:MM:SS"
time-zone (string) - UTC timezome

Notes

It is recommended that you reboot the router after time change to obviate the possible errors in time measurments and logging

Date and time settings become permanent and effect BIOS settings.

Example

To view the current date and time settings
[admin@MikroTik] system clock> print
         time: aug/09/2002 21:27:29
    time-zone: +03:00
[admin@MikroTik] system resource>
To set the system date and time:
[adminMikroTik] system clock> set date=mar/26/2002 time=14:41:00 time-zone=+02:00
[admin@MikroTik] system clock> print
         time: mar/26/2002 16:41:12
    time-zone: +02:00
[admin@MikroTik] system clock>

Configuration Change History

Submenu level : /system history Command name : /undo Command name : /redo

Description

The history of system configuration changes is held until the next router shutdown. The invoked commands can be 'undone' (in reverse order they have been invoked). The 'undone' commands may be 'redone' (in reverse order they have been 'undone').

Command Description

/undo - undoes previous configuration changing command (except another /undo command)
/redo - undoes previous /undo command
/system history print - print a list of last configuration changes, specifying whether the action can be undone or redone

Notes

Floating-undo actions are created within the current SAFE mode session. They are automatically converted to undoable and redoable when SAFE mode terminated successfully, and are all undone irreverively when SAFE mode terminated insuccessfully.

Undo command cannot undo commands past start of the SAFE mode.

Example

To show the list of configuration changes:
[admin@MikroTik] system history> print
Flags: U - undoable, R - redoable, F - floating-undo
   ACTION                                   BY                 POLICY
 U new traffic monitor script added
 U DNS server configuration changed
 U device changed
 U marking rule moved                       admin
 U route changed
 U route added
 U routing table added
 U ipsec manual sa ex1 added
[admin@MikroTik] system history>
The undo command's effect:
[MikroTik] system history> /undo
[admin@MikroTik] system history> print
Flags: U - undoable, R - redoable
   ACTION                                   BY                 POLICY
 R new traffic monitor script added
 U DNS server configuration changed
 U device changed
 U marking rule moved                       admin
 U route changed
 U route added
 U routing table added
 U ipsec manual sa ex1 added
[admin@MikroTik] system history>

© Copyright 1999-2003, MikroTik