1846868 Members
3415 Online
110256 Solutions
New Discussion

Kernel Para

 
ricky_1
Frequent Advisor

Kernel Para

Hi All,

Can somebody tell me about timezone kernel parameter?.
The range for this parameter is given as 720 to -720 but when i tried using -1020 it was accepted.Can somebody tell me whether the defined range is wrong or what is it?

Iam using 10.20 Hpux OS.

Thanxs.

Believe in Yourself!!
7 REPLIES 7
Steven Sim Kok Leong
Honored Contributor

Re: Kernel Para

Hi,

It specifies the time delay from Coordinated Universal Time west to the local time zone.

In HP-UX 11.00, the minimum is 0 and the maximum is 1440. The default is 420.

It uses the structure defined in /usr/include/sys/time.h:

struct timezone {
int tz_minuteswest; /* minutes west of Greenwich */
int tz_dsttime; /* type of dst correction */
};

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix dmin
http://www.brainbench.com
Michael Tully
Honored Contributor

Re: Kernel Para

Hi,

Have a look at this link

http://www.docs.hp.com/hpux/onlinedocs/os/KCparam.TimeZone.html

HTH
-Michael
Anyone for a Mutiny ?
ricky_1
Frequent Advisor

Re: Kernel Para

Hi steven/micheal,

i would like to know why out of range value is accepted in first place?, is it a bug/loophole sort of?
Thanxs
Believe in Yourself!!
Roger Baptiste
Honored Contributor

Re: Kernel Para

hi,

Are you sure it accepted the value?? Can you reconfirm the current value by looking it up through SAM?

-raj
Take it easy.
Frank Slootweg
Honored Contributor

Re: Kernel Para

In nearly all cases, the *kernel* parameter "timezone" (and its associated parameter "dst") is irrelevant.

Make sure that /etc/TIMEZONE is correct and that all 'applications' get and use the TZ *environment* variable.

If that is all OK and you still get timezone or/and DST problems for certain applications, *only then* you can look at the kernel parameters (and fix the bad application! :-))

Put in other words: *Only* processes which are *not* (indirectly) started by a login *and* are *not* (indrectly) started by /sbin/rc could/should have problems.
Eugen Cocalea
Respected Contributor

Re: Kernel Para

Eugen Cocalea
Respected Contributor

Re: Kernel Para

Hi,

looks like a 10.20 problem, I couldn't specify -1020 on a 11.00. A patch should be available for 10.20.

E.
To Live Is To Learn