Operating System - HP-UX
1826955 Members
4154 Online
109705 Solutions
New Discussion

time difference in powerchute software output

 
SOLVED
Go to solution
bhavin asokan
Honored Contributor

time difference in powerchute software output

hi all,

My D220 server with HP-UX 10.20 is connected to the APC UPS through the serial connector.
I am using powerchute software for configuration and controlling the UPS.As per the manual of powerchute,it should display the same date & time of system.And it should give same timings for event notifications.but it is displaying a time which is 10 hours behind.pls help me.
2 REPLIES 2
Robert-Jan Goossens
Honored Contributor
Solution

Re: time difference in powerchute software output

Hi,

Problem:

PowerChute plus displays a current time inconsistent with the system clock.

For example, your system displays 2 o'clock pm but PowerChute plus displays 3

o'clock pm.



Solution:

For HP-UX machines, the upsd script searches for /etc/src.sh to determine

which time zone to support. If this environment variable is not set within

this file, PowerChute plus uses Eastern(EST5EDT) as a default. Change this

environment setting to suit your time zone.



Example: src.sh



TZ = EST5EDT

export TZ



If this file does not exist or is not being referenced by the system, you can

manually edit the upsd script to show the correct time.. Using VI or any other

text editor, look for the following lines in the upsd script:



#TZ=EST5EDT

#export TZ



1. Remove the "#" from both lines. This will force the script to read these

lines.

2. Replace EST5EDT with the time zone your system is using.

3. Save the file, then stop and restart the upsd process.

Within the powerchute directory type, ./killpc.sh (enter)

Then type ./upsd (enter)



The correct time should now be displayed. If the problem continues and you are

in the US or Canada please contact APC by phone at 800-800-4272 or via

E-Support at www.apcc.com/support/contact. For support outside North America,

please refer to our worldwide contact page at :

www.apcc.com/support/contact/#worldwide.

Regards,
Robert-Jan.
bhavin asokan
Honored Contributor

Re: time difference in powerchute software output

thanks,

that solved the problem