Servers - General
1748224 Members
4435 Online
108759 Solutions
New Discussion юеВ

Re: Is it possible to query the current bypass mode of the PowerTrust UPS?

 
SOLVED
Go to solution
Jack C. Mahaffey
Super Advisor

Is it possible to query the current bypass mode of the PowerTrust UPS?

I have some HP-UX servers running 11.0 that don't have anybody around to monitor them on a daily basis and I would like to be able to query the current 'bypass mode' of the PowerTrust UPS's. I'd like to know if the UPS is currently in bypass mode. Is there a command I can execute to query it's status?
9 REPLIES 9
Gavin Clarke
Trusted Contributor

Re: Is it possible to query the current bypass mode of the PowerTrust UPS?

Do you have UPS Manager II, that can run a script when they are OnByPass.

The manual I've got is Order part number B1453-90013 E0399.

We used to run L-classes with this on.
Jack C. Mahaffey
Super Advisor

Re: Is it possible to query the current bypass mode of the PowerTrust UPS?

No, I un-installed it long ago because of problems.
Gavin Clarke
Trusted Contributor

Re: Is it possible to query the current bypass mode of the PowerTrust UPS?

I've just found a post with your name on it in 2002 about UPS Manager II.

The other options seem to involve SNMP cards or Network Node Manager neither of which I can tell you much about I'm afraid.

I take it the problem you had with UPS Manager II had nothing to do with ups_mond running?

We have a totally different UPS solution now with came with our room UPS, it just runs a script to tidy things up before power off.

Good Luck with finding the answer.

Gavin Clarke
Trusted Contributor
Solution

Re: Is it possible to query the current bypass mode of the PowerTrust UPS?

Apparently ups_mond will log whether the UPS has gone to bypass mode.

Could that be the answer?

Try man ups_mond.
A. Clay Stephenson
Acclaimed Contributor

Re: Is it possible to query the current bypass mode of the PowerTrust UPS?

You can look in syslog for the message "UPS /dev/ttyxxx in bypass-mode; no AC Power-loss protection.". This should be a straightforward use of awk, grep -E, or Perl.
If it ain't broke, I can fix that.
Gavin Clarke
Trusted Contributor

Re: Is it possible to query the current bypass mode of the PowerTrust UPS?

Just to get this absolutely clear.

Do you need to be running ups_mond for that message to appear in syslog please?
Jack C. Mahaffey
Super Advisor

Re: Is it possible to query the current bypass mode of the PowerTrust UPS?

I get the same startup message on two of the servers that I'm interested in, here's the output:

Jul 22 01:04:56 server1 /usr/lbin/ups_mond[1538]: /usr/lbin/ups_mond: UPS Monitor daemon starting; us
ing configuration file /etc/ups_conf

Jul 22 00:30:51 server2 /usr/lbin/ups_mond[1452]: /usr/lbin/ups_mond: UPS Monitor daemon starting; us
ing configuration file /etc/ups_conf


If the ups_mond process will include the 'bypass' text as part of the message then I'm okay. My servers must not be in bypass mode.

Thanks...


Jack C. Mahaffey
Super Advisor

Re: Is it possible to query the current bypass mode of the PowerTrust UPS?

Looked at the man page for ups_mond and it does appear that the startup message for the ups will indicate bypass.

Thanks... Jack...

Here's the cut-and-paste from the man page:

UPS in bypass-mode; no AC Power-loss protection.

Gavin Clarke
Trusted Contributor

Re: Is it possible to query the current bypass mode of the PowerTrust UPS?

Looks like you're okay then.

ps -ef | grep ups_mond

will tell you if ups_mond is running.

One other thing, keep an eye on the age of your batteries, if I remember correctly they need changing every three years, we had some unplanned downtime because we/I didn't keep our eye on this and they went when they couldn't guarantee reliable service.

The system went with them.

It looks like you've had these systems or some like them for a while so you probably know this by now.