Sponsored Content
Operating Systems Solaris Solaris container date diference Post 302513620 by anonymouzz on Wednesday 13th of April 2011 05:46:29 PM
Old 04-13-2011
Solaris container date diference

Hi people,

I dont have a real problem, its also a so strange issue.

When i connect to my system from a ssh session or telnet normaly from putty and execute the command "date" its show me the correctly time in BRT format for root and all other users.

But when i connect from the global machine from zlogin or zlogin -C and execute the command "date" its show me the time on GMT format, like a date -u with a 3 hours difference from Brazil time for root and all other users on the system.

I think its not a problem because all external users connect from ssh, but i have other time/date issue on this machine and the only different thing i found is this.

Can anyone help me know why its happens?

Thanks very mutch all.

Observation: Its only happens on this container, in all others the date is OK from ssh and from console.

The commands out:

The console command out from the global machine (wrong):

root@n1grid20 # for a in `zoneadm list | tail -9`; do zlogin $a date; done
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 18:43:37 BRT 2011
Wed Apr 13 21:43:37 GMT 2011
Wed Apr 13 18:43:37 BRT 2011
root@n1grid20 #

The command from a normal ssh (correctly):

-bash-3.00# date
Wednesday, April 13, 2011 06:43:53 PM BRT
-bash-3.00#

Im running a Solaris 10 10/09 on a M8K machine.
 

10 More Discussions You Might Find Interesting

1. Solaris

Cant priocntl within solaris 10 non global container

Hello ! Can anybody help me with the following: my sparc server ( solaris 10 06/07) has 1 global and 4 non-global zones running we are using one of the non-global-zones for a jboss application server we want to levitate the JBOSS process within the non_global_zone with: < priocntl -s -c FX -p... (1 Reply)
Discussion started by: moofoo
1 Replies

2. Solaris

solaris 9 container on solaris 10

'Solaris 9 container' package/product is supported on Solaris 10 operating system with Solaris containers technology(including solaris zones). Using Solaris Container technology, A single physical machine can be divided into virtual servers called as containers in which user feels as if he is... (4 Replies)
Discussion started by: shafi2all
4 Replies

3. Solaris

Solaris 8 Container Error

Log File: /var/tmp/server1.install.18730.log Source: /vmpool/tmp/server1.flar Installing: This may take several minutes... Postprocessing: This may take several minutes... Postprocess: ERROR: p2v module S40_setup_preload failed: 0 Postprocess: ERROR: Postprocessing failed. ... (0 Replies)
Discussion started by: cornsnap
0 Replies

4. Solaris

Solaris 6 container support

Is solaris 6 container support available ? Say, If I have a machine with Solaris 10 operating system.. Can i install Solaris 6 container on this machine, so that the machine will have Solaris 6 virtual environment... Does sun support Solaris 6 container ? Any ideas over this ? (1 Reply)
Discussion started by: shafi2all
1 Replies

5. Solaris

Monitoring services in zones with Solaris container Manager

I need to know how to Manage Solaris services (SMF) in sparse zone with Solaris container manager. I have navigated all the documentation and I have not found any clue. I installed the Sun management center (SMC) server on a server box and the agents on others. I can manage the SMF of the global... (5 Replies)
Discussion started by: ibroxy
5 Replies

6. Solaris

Memory usage, free and used, using sar, top and vmstat in Solaris zone/container

Hi all, I have a server running an Oracle database that is part of a Solaris M5000 container. Presumably this is referred to as a zone within a cluster, not sure if I get the terminology right. Anyway, a third-party manages the zone and unfortunately is not "helpful/friendly" to assist me on... (1 Reply)
Discussion started by: newbie_01
1 Replies

7. Solaris

Solaris 10 container graceful shutdown?

Hi, I've got a UPS connected to my Solaris 10 machine and I'm planning to run containers/zones on there. At the moment if the UPS agent sends the signal to the solaris machine to shutdown, all the apps shutdown gracefully and then the host goes down. If I setup containers for the apps, does... (9 Replies)
Discussion started by: fastexit
9 Replies

8. Solaris

Memory usage in a Solaris Container

Hi All, We have a server with Solaris 10 installed. The total memory of the server is 64GB. In order to check the memory info of the server I use "top" utility that gives me total and free memory in real-time. I have also installed a Sun container (non-global zone) on top of parent operating... (4 Replies)
Discussion started by: Slayer
4 Replies

9. Solaris

solaris zones vs container..

kindly share what are difference b/w solaris zones and containers.... (8 Replies)
Discussion started by: Rajesh_Apple
8 Replies

10. Solaris

Differences of Solaris zone and Solaris Container

Hi everyone! I am in dire need to know what are the differences between a solaris zone and a solaris container.. Explanations over the net are very confusing. Please help. Thanks! (8 Replies)
Discussion started by: arah
8 Replies
Date::Parse(3)						User Contributed Perl Documentation					    Date::Parse(3)

NAME
Date::Parse - Parse date strings into time values SYNOPSIS
use Date::Parse; $time = str2time($date); ($ss,$mm,$hh,$day,$month,$year,$zone) = strptime($date); DESCRIPTION
"Date::Parse" provides two routines for parsing date strings into time values. str2time(DATE [, ZONE]) "str2time" parses "DATE" and returns a unix time value, or undef upon failure. "ZONE", if given, specifies the timezone to assume when parsing if the date string does not specify a timezone. strptime(DATE [, ZONE]) "strptime" takes the same arguments as str2time but returns an array of values "($ss,$mm,$hh,$day,$month,$year,$zone)". Elements are only defined if they could be extracted from the date string. The $zone element is the timezone offset in seconds from GMT. An empty array is returned upon failure. MULTI-LANGUAGE SUPPORT Date::Parse is capable of parsing dates in several languages, these include English, French, German and Italian. $lang = Date::Language->new('German'); $lang->str2time("25 Jun 1996 21:09:55 +0100"); EXAMPLE DATES
Below is a sample list of dates that are known to be parsable with Date::Parse 1995:01:24T09:08:17.1823213 ISO-8601 1995-01-24T09:08:17.1823213 Wed, 16 Jun 94 07:29:35 CST Comma and day name are optional Thu, 13 Oct 94 10:13:13 -0700 Wed, 9 Nov 1994 09:50:32 -0500 (EST) Text in ()'s will be ignored. 21 dec 17:05 Will be parsed in the current time zone 21-dec 17:05 21/dec 17:05 21/dec/93 17:05 1999 10:02:18 "GMT" 16 Nov 94 22:28:20 PST LIMITATION
Date::Parse uses Time::Local internally, so is limited to only parsing dates which result in valid values for Time::Local::timelocal. This generally means dates between 1901-12-17 00:00:00 GMT and 2038-01-16 23:59:59 GMT BUGS
When both the month and the date are specified in the date as numbers they are always parsed assuming that the month number comes before the date. This is the usual format used in American dates. The reason why it is like this and not dynamic is that it must be deterministic. Several people have suggested using the current locale, but this will not work as the date being parsed may not be in the format of the current locale. My plans to address this, which will be in a future release, is to allow the programmer to state what order they want these values parsed in. AUTHOR
Graham Barr <gbarr@pobox.com> COPYRIGHT
Copyright (c) 1995-2009 Graham Barr. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.1 2010-07-01 Date::Parse(3)
All times are GMT -4. The time now is 01:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy