Shutdown remote

Suporte NTP

Cadet
Joined
Dec 5, 2019
Messages
8
I have two no-breaks APC and for Windows Servers there is a client installed that when the electric energy is down a signal to server is send to shutdown them.
But there's no client for FreeNAS.
So I tought to write a script on Windows Server to shutdown the FreeNAS server.
Anybody had already seen this or have any idea on how to do this?
 

Dan Tudora

Patron
Joined
Jul 6, 2017
Messages
276
hello
"no-breaks APC" what do you mean ??
UPS ??, Smart UPS, more detail please !!

for wingoz apcupsd
for FreeNAS "NUT" is the client, and YES is a client

1st scenario
wingoz run on a machine and UPS have a usb cable put on that calc and you run apcupsd on wingoz
FreeNAS have NUT activate with this settings

ups mode = master
ups name = whatever you want
driver = various ups 3 SNMP
port = IP of wingoz machine
auxiliary param =
mibs=apcc
community=private

2nd scenario
put a USB cable on computer whit FreeNAS and UPS
same NUT but with other driver, etc

simple
 

Suporte NTP

Cadet
Joined
Dec 5, 2019
Messages
8
hello
"no-breaks APC" what do you mean ??
UPS ??, Smart UPS, more detail please !!

for wingoz apcupsd
for FreeNAS "NUT" is the client, and YES is a client

1st scenario
wingoz run on a machine and UPS have a usb cable put on that calc and you run apcupsd on wingoz
FreeNAS have NUT activate with this settings

ups mode = master
ups name = whatever you want
driver = various ups 3 SNMP
port = IP of wingoz machine
auxiliary param =
mibs=apcc
community=private

2nd scenario
put a USB cable on computer whit FreeNAS and UPS
same NUT but with other driver, etc

simple
 

Suporte NTP

Cadet
Joined
Dec 5, 2019
Messages
8
Hello, thanks for your answer but I still have some doubts:

"hello
"no-breaks APC" what do you mean ??
UPS ??, Smart UPS, more detail please !!"

Yes, they are Smart UPS.

"for wingoz apcupsd "

Sorry, I didn't understood what is "wingoz apcupsd".

Shouldn't I configure the username/password for UPS?
 

Suporte NTP

Cadet
Joined
Dec 5, 2019
Messages
8
Hello

It worked. Amazing!!! Thanks all.
Only one more question.
Can I receive a e-mail from server informing that's shutting down?
We configurated the option "Send email status update", but I didn't received any message.
 

Dan Tudora

Patron
Joined
Jul 6, 2017
Messages
276
hello
you set the email for root user??
if not, do that and do a test to see if working
if test email working make a power event (pull the UPS from power source) and wait for email
happy new year
 
Top