I've got a problem to reach an UPS with apcupsd over ethernet.
Here my Setup:
Smart-UPS 2200 (Firmware Revision: UPS 09.3 (ID18)) with an Network Management Card 2 - AP9630 (Version: v6.2.0)DNS bvg-usv001IP 192.168.65.24
debian host with apcupsdDNS bund-shutdownIP 192.168.66.26
UPSNAME bvg-usv001UPSCABLE etherUPSTYPE pcnetDEVICE 192.168.65.24:admin:test123LOCKFILE /var/lockSCRIPTDIR /etc/apcupsdPWRFAILDIR /etc/apcupsdNOLOGINDIR /etcONBATTERYDELAY 6BATTERYLEVEL 5MINUTES 3TIMEOUT 0ANNOY 300ANNOYDELAY 60NOLOGON disableKILLDELAY 0NETSERVER onNISIP 127.0.0.1NISPORT 3551EVENTSFILE /var/log/apcupsd.eventsEVENTSFILEMAX 10UPSCLASS standaloneUPSMODE disableSTATTIME 0STATFILE /var/log/apcupsd.statusLOGSTATS offDATATIME 0
The account and password work with the Website. But I got still a comlost:
apcaccess APC : 001,018,0458DATE : 2017-06-13 10:29:39 +0200 HOSTNAME : bund-shutdownVERSION : 3.14.12 (29 March 2014) debianUPSNAME : bvg-usv001CABLE : Ethernet LinkDRIVER : PCNET UPS DriverUPSMODE : Stand AloneSTARTTIME: 2017-06-13 10:29:36 +0200 STATUS : COMMLOST MBATTCHG : 5 PercentMINTIMEL : 3 MinutesMAXTIME : 0 SecondsNUMXFERS : 0TONBATT : 0 SecondsCUMONBATT: 0 SecondsXOFFBATT : N/ASTATFLAG : 0x05000100END APC : 2017-06-13 14:19:25 +0200
When I test the port on bvg-usv001:
nmap -p 3052 bvg-usv001Starting Nmap 6.47 ( http://nmap.org ) at 2017-06-13 14:23 CESTNmap scan report for bvg-usv001 (192.168.65.24)Host is up (0.0063s latency).rDNS record for 192.168.65.24: bvg-usv001.bvg.localPORT STATE SERVICE3052/tcp closed powerchuteMAC Address: 00:C0:B7:ED:0B:DA (American Power Conversion)Nmap done: 1 IP address (1 host up) scanned in 0.46 seconds
I guess I've to open the port?
On the USV I tried to set the debian Server as Powerchute Client, but that didn't open the port. I doesn't do anything on the firewall ;-)
The PCNET driver relies on a passphrase rather than a password. On my AP9606 it defaults to "admin user phrase". So the driver needs to look like this :
UPSTYPE pcnetDEVICE 192.168.2.231:apc:admin user phrase
You might want to re-check your authentication just to ensure it is set up right.
If you fire up tcpdump you should see the PCNET packets back and forwards, from memory they are plaintext anyway.
OK I find my error. The apcupsd got the commando from the USV, and I have to use the default PW for the apc user.
The next question is, were could I change the default PW on the UPS?
Thank you for reply Brad,
It was just in the moment I write my one ;-)
Maybe you now where to change the passphrase?
I found it!
Under -->configuration --> shutdown, very strange site for it,...
Nice job. I only have AP9606 and AP9617 and it's different for both, so I had no idea with the AP9630.
I will say after many years of using a direct serial connection, the PCNET driver does work very well.
Choose a location
There are no forums in this space.