Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

Close
Important Announcement: WELCOME to the new Schneider Electric Community! Community is now no longer part of Exchange, and is now rebranded under se.com. If you have any bookmarks and links saved, we request you to update them to ensure that you continue accessing our community from this new location. For any issues that you might encounter as part of this change, please reach out to SchneiderCommunity.Support@se.com, and the team will help to get your issues resolved.
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
82165members
349752posts

APC 2200VA Smart UPS with SmartConnect, SMT2200C management/autoshutdown from Linux

APC UPS for Home and Office Forum

Schneider Electric support forum for our APC offers including Home Office UPS, Surge Protectors, UTS, software and services and associated products designed to share knowledge, installation, and configuration.

jjg60
Cadet
0 Likes
3
275

APC 2200VA Smart UPS with SmartConnect, SMT2200C management/autoshutdown from Linux

On extended power outages, there is no external internet connection and the server will corrupt files if not shutdown before UPS runs out of battery power.  My server is Ubuntu 20.04 Linux. Given the popularity of linux for servers, I was surprised not to find documentation by APC for setting this up.

 

Q1: My SMT2200C has a usb-a female port, so does my Ubuntu server.  So I purchased a "USB to USB Cable Type A Male to Male USB 3.0" cable to connect the 2 devices.  Is this correct, or do I need a hub in between?

 

Q2: Is apcupsd the recommended application for this?

 

Q3: Is the minimal configuration to /etc/apcupsd/apcupsd.conf is to make DEVICE blank

since default is already "UPSCABLE USB" ?

 

If I run the command "apctest" I get the following error:

 

2022-02-07 09:41:36 apctest 3.14.14 (31 May 2016) debian
Checking configuration ...
sharenet.type = Network & ShareUPS Disabled
cable.type = USB Cable
mode.type = USB UPS Driver
Setting up the port ...
apctest FATAL ERROR in apctest.c at line 319
Unable to open UPS device.
If apcupsd or apctest is already running,
please stop it and run this program again.
apctest error termination completed

 

I would appreciate a pointer to documentation for setting my SMT2200C for extended power outages.

 

Tags (1)
3 Replies 3
BillP
Administrator Administrator
Administrator
0 Likes
2
261

Re: APC 2200VA Smart UPS with SmartConnect, SMT2200C management/autoshutdown from Linux

@jjg60 

 

You can use APCUPSD or configure the built in battery settings

 

In the screenshot below I connected SMT1500C to Ubuntu 20.4 via USB

I see the battery icon in the upper right 

 

Ubuntu Battery.png

To configure I select the battery and click on the charged status - power settings - Auto suspend 

Ubuntu Battery.png

Ubuntu Battery Auto Suspend.png

 

I can see the status of the UPS using the power app.

Ubuntu Power App.png

Ubuntu Power Stats.png

 

For assistance with apcupsd I recommend using the apcupsd list group. There you can search for answers and post questions. 

http://www.apcupsd.org/wordpress/email-lists/

Tags (1)
jjg60
Cadet
0 Likes
1
246

Re: APC 2200VA Smart UPS with SmartConnect, SMT2200C management/autoshutdown from Linux

Thank you.

 

When you say "You can use APCUPSD or configure the built in battery settings":

- Does the battery setting kick in when a ubs cable is connected to SMT2200C from Ubuntu 20.04 or does this rely on APCUPSD?

  I ask because the man page for APCUPSD does not describe any GUI. So I'm guessing it is built into Ubuntu 20.04.  Also, your screen shot shows UPS details and History and statics while mine only shows suspend options.

 

image.png

- if I use APCUPSD, how do I disable battery so it does not conflict with /etc/apcupsd/apcupsd.conf

  For example: power setting has default "automatic shutdown on battery after 20 minutes" but apcupsd.conf

   has default of BATTERYLEVEL 5.

  If I disable "automatic suspend" on the power setting under battery, will this leave APCUPSD alone or are they connected?

image.png

- The power setting under battery does not have a power down when battery level is at xxx, it only has a time delay after on power.

   A server under high load can consume 1600 watts while a server under low load can consume 150watts.  So a time-based suspension is a poor choice for a server. Does the ubuntu battery / power settinghave any battery level trigger?  If not, then APCUPSD is the only choice and I need to know how to prevent the battery setting from interfering.

- Does Schneider APC support Linux servers using their UPS or does APC wash their hands of linux server and leave it to Sourceforge mailer list?

Tags (1)
BillP
Administrator Administrator
Administrator
0 Likes
0
239

Re: APC 2200VA Smart UPS with SmartConnect, SMT2200C management/autoshutdown from Linux

@jjg60 

 

The UPS would be visible once connected via USB. If it is not and you have install APCUPSD it may not appear. I know with Windows OS APCUPSD using it own USB driver so the UPS is not visible to native power options. 

 

If I have time I will install APCUPSD and report back. 

 

What I did was install Ubuntu 20.04. Connect the USB cable between the PC and UPS. In the upper right I see see the battery. If I click on it and select settings I can configure the automatic suspend. I see form your screenshot you have not enabled automatic suspend as it is listed as off. 

 

To view the UPS I selected applications and searched for power statistics. From that window I selected UPS. 

Tags (1)