Loading ...
Home » Spaces » UPS Management Devices & PowerChute Software » discussion » General » apcupsd can't connect to Smart-UPS 2200/Network Management Card 2

apcupsd can't connect to Smart-UPS 2200/Network Management Card 2

Discussion in UPS Management Devices & PowerChute Software started by Admin , 6/13/2017 12:28 PM
Login to follow, share, and participate in this space.
Not a member?Join now
  • bvgadmin
    Admin
    Novice Novice
    Admin 6/13/2017 12:28 PM

    Hi,

    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-usv001
    IP 192.168.65.24
    debian host with apcupsd
    DNS bund-shutdown
    IP 192.168.66.26

    The apcups_conf:

    UPSNAME bvg-usv001
    UPSCABLE ether
    UPSTYPE pcnet
    DEVICE 192.168.65.24:admin:test123

    LOCKFILE /var/lock
    SCRIPTDIR /etc/apcupsd
    PWRFAILDIR /etc/apcupsd
    NOLOGINDIR /etc
    ONBATTERYDELAY 6
    BATTERYLEVEL 5
    MINUTES 3
    TIMEOUT 0

    ANNOY 300
    ANNOYDELAY 60
    NOLOGON disable
    KILLDELAY 0

    NETSERVER on
    NISIP 127.0.0.1
    NISPORT 3551

    EVENTSFILE /var/log/apcupsd.events
    EVENTSFILEMAX 10

    UPSCLASS standalone
    UPSMODE disable

    STATTIME 0
    STATFILE /var/log/apcupsd.status
    LOGSTATS off
    DATATIME 0

    The account and password work with the Website. But I got still a comlost:

    apcaccess 
    APC : 001,018,0458
    DATE : 2017-06-13 10:29:39 +0200
    HOSTNAME : bund-shutdown
    VERSION : 3.14.12 (29 March 2014) debian
    UPSNAME : bvg-usv001
    CABLE : Ethernet Link
    DRIVER : PCNET UPS Driver
    UPSMODE : Stand Alone
    STARTTIME: 2017-06-13 10:29:36 +0200
    STATUS : COMMLOST
    MBATTCHG : 5 Percent
    MINTIMEL : 3 Minutes
    MAXTIME : 0 Seconds
    NUMXFERS : 0
    TONBATT : 0 Seconds
    CUMONBATT: 0 Seconds
    XOFFBATT : N/A
    STATFLAG : 0x05000100
    END APC : 2017-06-13 14:19:25 +0200

    When I test the port on bvg-usv001:

    nmap -p 3052 bvg-usv001
    Starting Nmap 6.47 ( http://nmap.org ) at 2017-06-13 14:23 CEST
    Nmap 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.local
    PORT STATE SERVICE
    3052/tcp closed powerchute
    MAC 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 ;-)

    Bye

    Gregor

  • Brad_C
    Brad
    Apprentice Apprentice
    Brad 6/14/2017 2:14 PM (in response to Admin)

    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 pcnet
    DEVICE 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.

  • bvgadmin
    Admin
    Novice Novice
    Admin 6/14/2017 2:15 PM (in response to Admin)

    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? 

  • bvgadmin
    Admin
    Novice Novice
    Admin 6/14/2017 2:16 PM (in response to Admin)

    Thank you for reply Brad,

    It was just in the moment I write my one ;-)

    Maybe you now where to change the passphrase?

  • bvgadmin
    Admin
    Novice Novice
    Admin 6/14/2017 2:18 PM (in response to Admin)

    I found it!

    Under -->configuration --> shutdown, very strange site for it,...

  • Brad_C
    Brad
    Apprentice Apprentice
    Brad 6/14/2017 2:28 PM (in response to Admin)

    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.

  • Page 1 of 1 (6 items)
Choose your language:  
powered by Communifire
Version 5.2.6420.11692