EasyManuals Logo

MikroTik RouterOS v2.9 User Manual

MikroTik RouterOS v2.9
709 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #642 background imageLoading...
Page #642 background image
on reboot and on most item configuration changes
log ( yes | no ; default: no ) - whether to add a message in form of name-of-sigwatch-item: signal
changed [to high | to low] to System-Info facility whenever this sigwatch item is triggered
name ( name ) - name of the sigwatch item
on-condition ( on | off | change ; default: on ) - on what condition to trigger action of this item
• on - trigger when state of pin changes to high
• off - trigger when state of pin changes to low
• change - trigger whenever state of pin changes. If state of pin changes rapidly, there might be
triggered only one action for several state changes
port ( name ) - serial port name to monitor
script ( name ) - script to execute when this item is trigered
signal ( dtr | rts | cts | dcd | ri | dsr ; default: rts ) - name of signal of number of pin (for standard
9-pin connector) to monitor
• dtr - Data Terminal Ready (pin #4)
• rts - Request To Send (pin #7)
• cts - Clear To Send (pin #8)
• dcd - Data Carrier Detect (pin #1)
• ri - Ring Indicator (pin #9)
• dsr - Data Set Ready (pin #6)
state ( read-only: text ) - last remembered state of monitored signal
Notes
You can type actual script source instead of the script name from /system script list.
Example
In the following example we will add a new sigwatch item that monitors whether the port serial1
has cts signal.
[admin@10.179] tool sigwatch> pr
Flags: X - disabled
# NAME PORT SIGNAL ON-CONDITION LOG
0 test serial1 cts change no
[admin@MikroTik] tool sigwatch>
By typing a command print detail interval=1s, we can check whether a cable is connected or it is
not. See the state argument - if the cable is connected to the serial port, it shows on, otherwise it
will be off.
[admin@MikroTik] tool sigwatch> print detail
Flags: X - disabled
0 name="test" port=serial1 signal=cts on-condition=change log=no script=""
count=1 state=on
[admin@MikroTik] tool sigwatch> print detail
Flags: X - disabled
0 name="test" port=serial1 signal=cts on-condition=change log=no script=""
count=1 state=on
[admin@MikroTik] tool sigwatch> print detail
Page 628 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the MikroTik RouterOS v2.9 and is the answer not in the manual?

MikroTik RouterOS v2.9 Specifications

General IconGeneral
BrandMikroTik
ModelRouterOS v2.9
CategorySoftware
LanguageEnglish