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
PMGETCONTEXTHOSTNAME(3) Library Functions Manual PMGETCONTEXTHOSTNAME(3)NAME
pmGetContextHostName - return the hostname associated with a Performance Co-Pilot context
C SYNOPSIS
#include <pcp/pmapi.h>
const char *pmGetContextHostName(int id);
cc ... -lpcp
DESCRIPTION
Given a valid PCP context identifier previously created with pmNewContext(3) or pmDupContext(3), the pmGetContextHostName function returns
the hostname associated with id.
If the context id is associated with an archive source of data, the hostname returned is extracted from the archive label using
pmGetArchiveLabel(3).
For live contexts, an attempt will first be made to retrieve the hostname from the PCP collector system using pmFetch(3) with the
pmcd.hostname metric. This allows client tools using this interface to retrieve an accurate host identifier even in the presence of port
forwarding and tunnelled connections.
Should this not succeed, then a fallback method is used. For local contexts - with local meaning any of DSO, ``localhost'' or Unix domain
socket connection - a hostname will be sought via gethostname(3). For other contexts, the hostname extracted from the initial context host
specification will be used.
RETURN VALUE
If id is not a valid PCP context identifier, this function returns a zero length string and hence never fails.
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 PCPIntro(1), PMAPI(3), gethostname(3), pmDupContext(3), pmFetch(3), pmGetArchiveLabel(3), pmNewContext(3), pcp.conf(5) and pcp.env(5).
Performance Co-Pilot PCP PMGETCONTEXTHOSTNAME(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)