Open patan32 opened 8 months ago
Hi, Thanks for sharing. Indeed, in Linux you can achieve the goal using different approach. This way it will also work. The only one thing I do not recommend on production and if you take care about the security in your environment: -o StrictHostKeyChecking=no -o CheckHostIP=no Why? Well because this way you will not avoid middle in the man attack. You can read about this here: https://sysadmin.info.pl/en/blog/known-hosts-file/ and also I am talking about this here: https://sysadmin.info.pl/en/blog/ansible-ssh-prompt-known_hosts-issue-explained-and-solved/
Hi, Thanks for sharing. Indeed, in Linux you can achieve the goal using different approach. This way it will also work. The only one thing I do not recommend on production and if you take care about the security in your environment: -o StrictHostKeyChecking=no -o CheckHostIP=no Why? Well because this way you will not avoid middle in the man attack. You can read about this here: https://sysadmin.info.pl/en/blog/known-hosts-file/ and also I am talking about this here: https://sysadmin.info.pl/en/blog/ansible-ssh-prompt-known_hosts-issue-explained-and-solved/
Yes, i was thinking about it. What i have done, i create a management VLAN that this PC and only monitoring UPS are connected. I have dedicated a single port for that VLAN only. Nothing is allowed from any other VLANS so i am secure this way. I need to be on the same network to do anything. This is home environment but set up like enterprise. I am hoping that Mikrotik will put a nutclient package soon.
Hello,
Thanks for the information and setup guide you provided. I was able to do this little easier way.
I created the bash file called "mikrotik.sh" with the contents below.
In the upssched.conf file i added the below. Change the 3 to what ever you like for your shutdown parameter.
This is the contents of my upssched-cmd file.
Once the online power drops i get this message in the syslog. My Mikrotik shuts down and after 120 seconds shuts the load off. It will take 180 seconds for the load to turn on after inline power returns.
I hope it helps someone else.