Operating System - HP-UX
1820695 Members
2844 Online
109627 Solutions
New Discussion юеВ

APC Powerchute appears different timezone with HP-UX

 
SOLVED
Go to solution
Timmy Sin
Advisor

APC Powerchute appears different timezone with HP-UX

Hey Guys,

I installed the APC Powerchute software 4.2.3 on my HP-UX 11i box. The software seems to be lagged behind the OS by 12 hours and give undesired reslts for daily shutdown/startup schedule. I found nothing to set in Powerchute for timezone information.

/etc/TIMEZONE has been correctly set to
TZ=EAT-8
export TZ

Grateful if someone can give me some advice on that.

Thanks,
Timmy Sin
6 REPLIES 6
Wodisch_1
Honored Contributor
Solution

Re: APC Powerchute appears different timezone with HP-UX

Hi Timmy,

check in your APC's start-script (in "/sbin/rc?.d/S*") wether the environmental variable "TZ" is reset there... (and insert ". /etc/TIMEZONE" in the next line, then).

Just my $0.02,
Wodisch
Timmy Sin
Advisor

Re: APC Powerchute appears different timezone with HP-UX

Hi Wodisch,

Thanks for your advice.
I only found a file rc.APCupsd under /etc. There is no any timezone setting in the script.

Regards,
Timmy Sin
Michael Tully
Honored Contributor

Re: APC Powerchute appears different timezone with HP-UX

Hi Timmy,

If there is no start-up script, how is the application going to start automatically when the system boots?

I suggest you look at implementing a proper start-up script in /sbin/init.d with a link to the run-level of your choice generally 3 or 4. The /etc/inittab file will tell you which. Insert this into your application start-up script.


# Set the TIMEZONE

if [ -r /etc/TIMEZONE ]
then
. /etc/TIMEZONE
else
TZ=EAT-8 # change this for local time.
export TZ
fi

Michael
Anyone for a Mutiny ?
Timmy Sin
Advisor

Re: APC Powerchute appears different timezone with HP-UX

Hi Michael,

I forget to mention the inittab. The following entry is found in inittab:

APCd:0123456:wait:/etc/rc.APCupsd start

I would try your suggestion to include the lines in rc.APCupsd.

By the way, there is no problem in my other HP boxes. I wonder there is something wrong with my HP settings.

Regards,
Timmy Sin
Michael Tully
Honored Contributor

Re: APC Powerchute appears different timezone with HP-UX

Hi Timmy,

If this system does not work and the others
do with the same application and version
you will most likely find that these systems
are patched differently. There are a number
of patches they could have the fix in it.
Usually best practise is to install the same
level of patch bundle.

HTH
Michael
Anyone for a Mutiny ?
Timmy Sin
Advisor

Re: APC Powerchute appears different timezone with HP-UX

Hi,

I just find a customization required. There is a timezone setting in /usr/lib/powerchute/upsd which is called by rc.APCupsd.

Thank you for your assistance.

Regards,
Timmy