Manual:The Dude v6/Functions

From MikroTik Wiki
Revision as of 12:32, 10 June 2019 by Pauls (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Version.png

Applies to RouterOS: v6.34+

Overview

The Functions pane lists all the functions that can be used in the Dude, for example in Charts. You can open up predefined functions so see how they are written. The function language consists of expressions and formulas, similar to Excel spreadsheet formulas. You can use SNMP OIDs and other values when writing a new function.

Dude-functions-0.JPG


Dude-functions-1.JPG

Adding new functions

Check interface status usign SNMP

Simple command to monitor link state. The last OID digit represents interface number.

if((oid_raw("1.3.6.1.2.1.2.2.1.8.1")=1),"Running", "Down")