PMNEWCONTEXTZONE(3) Library Functions Manual PMNEWCONTEXTZONE(3)NAME
pmNewContextZone - establish a reporting timezone based on a PMAPI context
C SYNOPSIS
#include <pcp/pmapi.h>
int pmNewContextZone(void);
cc ... -lpcp
DESCRIPTION
The current reporting timezone affects the timezone used by pmCtime(3) and pmLocaltime(3).
If the current PMAPI context is an archive, pmNewContextZone uses the timezone from the archive label record to set the current reporting
timezone.
If the current PMAPI context corresponds to a host source of metrics, pmNewContextZone executes a pmFetch(3) to retrieve the value for the
metric pmcd.timezone and uses that to set the current reporting timezone.
In both cases, pmNewContextZone returns a value to identify the current reporting timezone that may be used in a subsequent call to pmUse-
Zone(3) to restore this reporting timezone.
SEE ALSO PMAPI(3), pmCtime(3), pmFetch(3), pmGetConfig(3), pmLocaltime(3), pmNewContext(3), pmNewZone(3), pmUseZone(3), pmWhichZone(3), pcp.conf(5),
pcp.env(5) and environ(5).
DIAGNOSTICS
PM_ERR_NOCONTEXT
the current PMAPI context is not valid
other a return value less than zero indicates a fatal error from a system call, most likely malloc(3C)Performance Co-Pilot PCP PMNEWCONTEXTZONE(3)
Check Out this Related Man Page
PMGETARCHIVEEND(3) Library Functions Manual PMGETARCHIVEEND(3)NAME
pmGetArchiveEnd - locate logical end of file for an archive log
C SYNOPSIS
#include <pcp/pmapi.h>
int pmGetArchiveEnd(struct timeval *tvp);
cc ... -lpcp
DESCRIPTION
Assuming the current PMAPI context is associated with an archive log, pmGetArchiveEnd will attempt to find the logical end of file (after
the last complete record in the archive), and return the last recorded timestamp via tvp. This timestamp may be passed to pmSetMode(3) to
reliably position the context at the last valid log record, e.g. in preparation for subsequent reading in reverse chronological order.
For archive logs that are not concurrently being written, the physical end of file and the logical end of file are co-incident. However if
an archive log is being written by pmlogger(1) at the same time an application is trying to read the archive, the logical end of file may
be before the physical end of file due to write buffering that is not aligned with the logical record boundaries.
pmGetArchiveEnd returns an error less than zero if the context is neither valid, nor associated with an archive, or the archive is seri-
ously corrupted. Otherwise, the return value is 0 if there has been no change of state since the last call, or 1 if the logical end of
file has advanced since the last call.
In the absence of an error, the result returned via tvp is well-defined.
pmGetArchiveEnd preserves the positioning state of the log file prior to this function call.
PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the
file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura-
tion file, as described in pcp.conf(5). Values for these variables may be obtained programmatically using the pmGetConfig(3) function.
SEE ALSO PMAPI(3), pmFetch(3), pmFetchArchive(3), pmGetArchiveLabel(3), pmGetConfig(3), pmSetMode(3), pcp.conf(5) and pcp.env(5).
DIAGNOSTICS
PM_ERR_NOCONTEXT
the current PMAPI context is either invalid, or not associated with an archive log
PM_ERR_LOGREC
the archive is sufficiently damaged, that not a single valid record can be found
Performance Co-Pilot PCP PMGETARCHIVEEND(3)
Hello again,
under hp-ux i have a file /etc/TIMEZONE. here is definied which timezone i am.
i dont know who reads this file to set after reading the timezone under /usr/lib/tztab.
my 2 questions, who reads the file /etc/TIMEZONE ( which service ) and do i need in the first line to set my... (6 Replies)
Hi,
I got an question about changing timezone thrue command line on a SunOS Release 4.1.2 without restarting the computer.
Now it's set on WET and I want to set the timezone to CET (GMT +1)
Plz somebody help me.
Regards
Novisern:confused: (5 Replies)
could sun make this more complex?
http://sunsolve.sun.com/search/document.do?assetkey=1-26-102775-1
I think I need a 2nd cup to identify what patches I need to address the 2007 timezone changes...
manny (2 Replies)
Does anyone know if there is a patch for SunOS 5.6 timezone update for new daylight savings times. I have looked and have updated my 5.8 machine. Can not find one for 5.6. I still use one box for a certian piece of hardware that can not use the newer versions. (6 Replies)
Hi
On several AIX 5.3 LPARs the timezone is currrently set to:
TZ=NZST-12NZDT,M9.5.0/02:00,M4.1.0/03:00
Daylight savings in NZ starts on Sun 28th Sep 2008, which is the fourth Sunday. Do I need to change my TZ variable to NZST-12NZDT,M9.4.0/02:00,M4.1.0/03:00 or will AIX interpret the fifth... (2 Replies)
Hi All,
While installing Red Hat Linux, I tried changing the timezone to Japan for testing.But the timezone was not set to Japan.
I tried other timezones , but they didn't work as well.
I am guessing the problem might be due to some missing rpm.Does anyone has any idea or faced a similar... (1 Reply)
Need help with a timezone change for my user profile on HPUX, from UTC to PDT8PST
pgop:/home/pgop > date
Thu Sep 25 15:09:50 UTC 2008
to
Thu Sep 25 08:12:44 PDT 2008
Tried looking through manuals for date over this to no luck!!
:confused: (3 Replies)
Hi,
I have date with my server's timezone. I want to convert it with another timezone either EST or GMT, found Date:Manip module but cant find exact use, can anyone help... (4 Replies)
Hi
I have a command which returns a timezone, Ej:
root@bsades2: /usr/local/bin # lsuser -a time_last_login israel
israel time_last_login=1279032223
Question: I want to parse this timezone '1279032223' into a 'martes, 13 de julio de 2010 16:43:43' from the ksh shell. Is itt possible?
... (3 Replies)
Hi,
I would like to change time zone Linux from IST to US/Canada but not getting the option , I have run the command setup -> timezone configuration but not getting the option of us/canada or pacific us/canada.
Please suggest.
Regards,
Manoj (1 Reply)
I have created user and set timezone different from root user timezone in .bash_profile of user using TZ command,
i have created cronjob for user using crontab -e, my concern is that job schedule in cronjob must executive as per timezone of user , but i am getting that job schedule in cron of user... (6 Replies)
Hello everyone,
Can you please help me with this problem?
I want to change the timezone of my Solaris 10 system. I found on internet that I should do the following steps:
1- Edit the /etc/TIMEZONE file
2- restart the system : init 6
My question is : In the file /etc/TIMEZONE I should... (5 Replies)
Am new on Solaris
If I compare with ESXi default timezone is UTC and we have to set BIOS timezone to UTC too .
What we follow and best practice in Solaris Sparc servers .
Thanks in advance . (2 Replies)
Hi Everyone,
Does anyone know if can access
/etc/environment from SNAP file
to check the time zone from the snap file
Objective:
The timezone on the server was changed by someone to another timezone, so I want to check what is the old timezone was ?
I have an old SNAP file.
Does... (4 Replies)