i just buy hAC ax2 and it is very nice well build device with all features, and winbox with dark theme is woow!
Keep that good work developers of MikroTik.
I have question, i would like to program Mode Button in MikroTik so when i press the button MikroTik bootsup and it is working, when i again press Mode Button Mikrotih shutdown.
This is very important because when it is lighting and storm outdoor you just press MODE BUTTON on MikroTik and when all lights power off just unplug wall ac adapter and you are safe. (i use optics fiber so there is no danger of damaging device).
When lighting and storm is over i just press MODE BUTTON on MikroTik and device is back online and all is working.
Is there any script that do that? I im new to MikroTik and i im learning, but could not find any example for Mode Button like:
If MODE_BUTTON pressed & DEVICE_POWERED_ON then /system shutdown
ELSE
MODE_BUTTON pressed & DEVICE_POWERED_OFF then /system poweron
How to do that or is easy way?
How about command to put in MODE BUTTON in mikrotik winbox command?
There is no power off button. I guess you could create a script which would perform “shutdown” … but it wouldn’t power off device (none of MT hardware so far supports power off from ROS) so you’d have to time yourself before cutting power.
Piwer-on is simply done by connecting power, no button press is needed (or even possible, button events when ROS is not fully running are hard-coded in firmware).
OTOH it’s been said a few times by MT staff (@Normis in particular) that simpky cutting power (without prior shutdown) is perfectly safe to fo on MT devices … so you even shoukdn’t need a shutdown-triggered-by-button script.
Great, so i im safe to unplug ac power adapter from ac outlet when i want and during years of usage of Mikrotik any data will not be corrupted or MikroTik ROS failed to boot?
I know to run WinBox and using GUI menu to shutdown device, this works perfectly but when i im not at home and out is lighting weather my old parents can safety unplug AC power adapter from AC outlet and when lighting is gone just plug AC adapter back to AC outlet? If i understand this will work but have worries about duration of NAND flash during years of usage, it will be after some years NAND flash corrupted?
And final question what does MODE BUTTON on mikrotik does? What is designed for? I press button but nothing happens, as i think i need to configure using WinBox function, but don’t know what is designed for for what function? Is there any MikroTik tutorial or webpage with description of what to do with that button?
I im new to MikroTik but i have all correctly setup to use my fiber optics with eth1 as wan and bridge ports eth2-eth5, set up wlan0 at 2,4Ghz and disable wlan1 at 5GHz as 2,4GHz works better and are imune better to walls and distance that 5GHz. Connection is using PPPoE using ONT set as bridge and all is working very fast and stable as ISP modem Huawei is very slow, have limited options and is 6 years old. So i im very happy new user of MikroTik and will buy one more MikroTik device for training as main Home Network Internet using hAP ax2 is working very nice and i don’t wan’t to study all features on main internet router.
Keep that good work developers of MikroTik and thank you for quick forum answer.
I suggest to unplug wire from MT device itself. Reason being that power adapter (embedded in wall plug) contains capacitors, which try to power connected device after AC fails (or is disconnected), And while doing so, voltage steadily drops and when it drops below device minimum required voltage, undefined things can happen. If you unplug the low voltage DC side from device itself, device looses power in a moment and time for device to misbehave is reduced to microseconds.
After that you may unplug PA from mains (to protect PA).
When attempting to restore power to device I suggest you to plug PA into mains first and then connect it to device. This way voltage is alrrady stabilised before being applied to router.
As to functionality of mode button: depends on particular device model, some description can be found here.
Don’t unplug/replug, and certainly don’t make your parents do that.
Buy an extension cable with a switch (with light) and a surge protector.
mkx is very correct in describing the best possible approach, but it must be convenient for the user.
I can imagine (old) parents unplugging, but I have difficulties in imagining them re-inserting the tiny DC plug in the device.
With a lighted switch everything is easier, not the absolute best, but good enough (IMHO).