APC SmartUPS Status Device

I think this is what’s confusing me. The IP address on the card (which, according to my router interface, is 10.44.6.111) is totally foreign to me and unpingable. I don’t know if it’s an APC default or what. My DHCP range is 192.168.1.1-254.

Perhaps going back to basics. The address of 10.44.6.111 comes from your "router interface"? Can you provide more detail as to what that means? Starting with what the device you are referring to as "router" actually is?

I was referring to my network router which is a UniFi (UDM Pro). UDM has a couple interfaces that allow me to see what devices are attached. The interface sees the NMC but with this unpingable IP address.

That sounds like the card is set statically. If that is the case, I would recommend factory reset because likely a lot of older settings are on that card as well.

Okay, so the NMC is connected directly to one of the RJ45 ports on the UniFi, yes? Does the UniFi have an IP address in the in the same network as the NMC card? Can you ping the NMC from the UniFi?

[Btw, if you need to make up an address for use in the same net, not knowing the mask currently in use by the NMC you'll want to use 10.44.6.110 which is guaranteed to be adjacent even with a /31.]

Also, does the UniFi report a MAC for the NMC? If so, does it look correct?

First of all, you have the patience of a saint. I don't know how to thank you enough.

To answer your questions:

  • yes, the NMC is connected via ethernet to my main Unifi switch, which is then connected to my UDM-Pro (unifi router)
  • I cannot ping the NMC2 from any computer on my network (just opened terminal, typed ping 10.44.6.111 and then after a minute or so, it says timed out). Same if I try ssh obviously.
  • Yes, it looks like the MAC is correct. I say that because the first 3 octets are 00:C0:B7, which is an APC MAC range.

I take your point about using an adjacent IP address, but I think my problem (one of them anyway lol) is that I don't know how to use a laptop to setup a fixed address to connect with the NMC. I've been reading APC's docs, but they're impenetrable to me.

Yes, I appreciate this suggestion and have done it multiple times.

How are you doing the factory reset on the card? (what model card is it?)

It's an NMC2. The factory reset instructions say to hold down (via the pinhole reset through the NMC's faceplate) for 20-25 seconds while the light flashes green, and then let go when it changes to orange. Which thankfully in my case was at 20-25 secs!

OK, I'm embarrassed to admit that I had my neighbor (whose a network engineer) drop by with his laptop. He did some magic to access the NMC and get it mapped to an IP address in my DHCP range. And I was just able to access the NMC interface. Three days of struggle to get to this point. Phew.

Now, how do I buy you guys a beer for all your help? I'd like to think I would be just as patient and helpful, but I'm not so sure :wink:

1 Like

You would find this in the OS doc for your laptop rather than APC's doc. Look for how to set a static IP address.

Two suggestions:

  1. Make sure the NMC is set for DHCP.
  2. Consider doing a full factory reset on the NMC via the NMC interface.
3 Likes

OK but is there a reason I can't reserve a static IP address for this NMC. That's what I did and it seems to work fine.

Done. And now this device driver seems to work great. I'm getting the data from the UPS into HE fine. connectStatus=Connected, so that's good. I do notice that after each update of the data into HE, the telnet stream closes (which I suppose is normal), but then the telnet attribute of the HE device is "receive error: Stream is Closed". Is this actually an error, or am I taking it too literally? It shows the same in the OP, so I'm thinking it's fine.

1 Like

There is a difference between a reserved (also called a "fixed reservation" or "static reservation") IP address assigned by the DHCP server, and a statically assigned IP address which is configured on the device itself (NMC in this case). I am suggesting that you configure the NMC for DHCP, and that you set up a reserved IP address in the DHCP server so that each time the NMC asks "what address should I use?", it will receive the same (reserved) address. This approach is generally better than having the IP address configured on the NMC itself.

Having a static address configured on the NMC is what caused you all the trouble in the first place. If you use the DHCP server to manage the address, you won't have to go through all this again if you change your network for some reason.

3 Likes

Thats normal as is the telnet closed warning in the log.

1 Like

Guys, I ended up receiving a new SMT1500 with an NMC3 from APC to replace my old SMT1500 with an old NMC that wouldn't upgrade firmware. Despite the fact that I finally got the old UPS/NMC working with this driver, I thought I'd install the new hardware to see if I could get it working too.

But I couldn't quite. Any reason to believe v3 of the NMC wouldn't work with this driver? I have it setup on my network with telnet enabled no problem, yet the driver shows this after an hour or two:
Screenshot 2024-10-25 at 12.41.28 AM

I'm tempted to swap the NMC2 into the newer SMT1500 unless I can find something about the driver I'm just missing. Any ideas?

And btw, on my old setup, I noticed the UPSStatus attribute never populated. And the Time Remaining attributes are both at zero. Do they only show up if the UPS is on battery power? Guess I could just pull the plug :wink:

Thats why i said the apc9631 card if u read.i said the newer cards dont work

The NMC3 is an APC9631, thus my confusion, but thx for clarifying just the same.

On the NMC2, the UPSStatus attribute never populates. And the Time Remaining attributes are both at zero. Even when on battery power. Everything else appears to work fine. Any ideas?

Edit: Actually I think an NMC3 is APC9641 — so totally my bad. Sorry.

Turn.on debugging and look at logs

  1. what version of s/w is on your 9631 .. if older than 7.1.2 upgrade with this.. (us the ftp method and make sure ftp is enabled on your card)
  1. issue the following commands and post your results

apc>detstatus -ss
E000: Success
Status of UPS: Online - Green Mode
Last Transfer: UPS battery test
Input Status: Acceptable
Next Battery Replacement Date: 09/04/2041

apc>detstatus -soc
E000: Success
Battery State Of Charge: 100.0 %

apc>detstatus -all
E000: Success
Status of UPS: Online - Green Mode
Last Transfer: UPS battery test
Input Status: Acceptable
Next Battery Replacement Date: 09/04/2041
Runtime Remaining: 0 hr 21 min 0 sec
Battery State Of Charge: 100.0 %
Output Voltage: 120.2 VAC
Output Frequency: 60.0 Hz
Output Watts Percent: 17.5 %
Output VA Percent: 14.9 %
Output Current: 1.78 A
Output Efficiency: 94.0 %
Output Energy: 9847.818 kWh
Input Voltage: 120.2 VAC
Input Frequency: 60.0 Hz
Battery Voltage: 27.0 VDC
Battery Temperature: 31.0 C, 87.8 F
Self-Test Result: Passed via internal operation
Self-Test Date: 10/17/2024