Hi, Thanks, and questions about usage and features

Re: Hi, Thanks, and questions about usage and features

Postby fvdw » Tue Aug 15, 2023 1:07 pm

Looks promising
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Hi, Thanks, and questions about usage and features

Postby RiveDC1 » Wed Aug 16, 2023 5:54 pm

Sorry for the delay

I've been looking for a program which could read APCUPSD
It was a perfect RTFM moment when I noticed that APCUPSD can do that... :doh

This comes from the NAS:
Code: Select all
/$ apcaccess
APC      : 001,036,0897
DATE     : 2023-08-16 19:02:33 +0200 
HOSTNAME : bakter.workgroup
VERSION  : 3.14.14 (31 May 2016) unknown
UPSNAME  : bakter.workgroup
CABLE    : USB Cable
DRIVER   : USB UPS Driver
UPSMODE  : Stand Alone
STARTTIME: 2023-08-15 06:09:12 +0200 
MODEL    : Back-UPS XS 950U   
STATUS   : ONLINE
LINEV    : 232.0 Volts
LOADPCT  : 14.0 Percent
BCHARGE  : 100.0 Percent
TIMELEFT : 43.8 Minutes
MBATTCHG : 50 Percent
MINTIMEL : 30 Minutes
MAXTIME  : 0 Seconds
SENSE    : Medium
LOTRANS  : 155.0 Volts
HITRANS  : 280.0 Volts
ALARMDEL : 30 Seconds
BATTV    : 13.7 Volts
LASTXFER : Unacceptable line voltage changes
NUMXFERS : 0
TONBATT  : 0 Seconds
CUMONBATT: 0 Seconds
XOFFBATT : N/A
SELFTEST : NO
STATFLAG : 0x05000008
SERIALNO : 3B1638X28885 
BATTDATE : 2016-09-24
NOMINV   : 230 Volts
NOMBATTV : 12.0 Volts
NOMPOWER : 480 Watts
FIRMWARE : 925.T2 .I USB FW:T2
END APC  : 2023-08-16 19:03:09 +0200 


The same is accessible through the local network too.

I'll do a shutdown test at weekend, and I think that'll conclude the thing

Very thanks for the support!
RiveDC1
Donator VIP
Donator VIP
 
Posts: 18
Joined: Wed Jun 07, 2023 3:08 pm

Re: Hi, Thanks, and questions about usage and features

Postby fvdw » Wed Aug 16, 2023 7:29 pm

Oke, if the shutdown command doesn't work properly I can supply a more sophisticated one in which also delay and warnings can be send
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Hi, Thanks, and questions about usage and features

Postby RiveDC1 » Mon Aug 21, 2023 9:09 am

... and shutdown at 50% was successful. Works like charm.

Thanks for the help :applause

One more question: how can I make the APCUPSD start automatically at every startup?
RiveDC1
Donator VIP
Donator VIP
 
Posts: 18
Joined: Wed Jun 07, 2023 3:08 pm

Re: Hi, Thanks, and questions about usage and features

Postby Jocko » Mon Aug 21, 2023 1:25 pm

Hi

You can easily do it by using boot jobs feature.

So load the menu "Boot jobs", set-up the feature and enable it. This will create a folder 'cron- boot' in the share fvdw
Then create here a text file with this content :
Code: Select all
#!/bin/sh
[ -f "/etc/apcupsd.conf" ] && apcupsd

Reload Boot jobs menu, you should see now your file in the job lists table. Then check the line so that the script runs at the next booting and save the boot jobs table
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Hi, Thanks, and questions about usage and features

Postby fvdw » Mon Aug 21, 2023 9:12 pm

Be sure the text file is in unix format and not in dos format, so not containing <LF><CR> at the of a line but only <LF>.

If it contains carriage returns the script may not be executed correctly
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Previous

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 1 guest

cron