Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pmisettimezone(3) [centos man page]

PMISETTIMEZONE(3)					     Library Functions Manual						 PMISETTIMEZONE(3)

NAME
pmiSetTimezone - set the source timezone for a LOGIMPORT archive C SYNOPSIS
#include <pcp/pmapi.h> #include <pcp/impl.h> #include <pcp/import.h> int pmiSetTimezone(const char *value); cc ... -lpcp_import -lpcp Perl SYNOPSIS use PCP::LogImport; pmiSetTimezone($value); DESCRIPTION
As part of the Performance Co-Pilot Log Import API (see LOGIMPORT(3)), pmiSetTimezone sets the source timezone in the current context to be value. In the absence of a call to pmiSetTimezone the source timezone defaults to the timezone of the localhost. DIAGNOSTICS
pmiSetTimezone returns zero on success else a negative value that can be turned into an error message by calling pmiErrStr(3). SEE ALSO
LOGIMPORT(3), pmiErrStr(3), pmiSetHostname(3) and pmiStart(3). Performance Co-Pilot PMISETTIMEZONE(3)

Check Out this Related Man Page

PMIPUTRESULT(3) 					     Library Functions Manual						   PMIPUTRESULT(3)

NAME
pmiPutResult - add a data record to a LOGIMPORT archive C SYNOPSIS
#include <pcp/pmapi.h> #include <pcp/impl.h> #include <pcp/import.h> int pmiPutResult(const pmResult *result); cc ... -lpcp_import -lpcp DESCRIPTION
As part of the Performance Co-Pilot Log Import API (see LOGIMPORT(3)), pmiPutResult provides an interface for developers familiar with the internal PCP data structures to create output archives directly. By building the pmResult data structure directly, then calling pmiPutResult the developer avoids calls to pmiPutValue(3) and/or pmiPutVal- ueHandle(3) followed by a call to pmiWrite(3) for each record written to the archive. Any metrics and instances appearing in the result must have been defined by prior calls to pmiAddMetric(3) and pmiAddInstance(3). pmiPutResult will arrange for any new metadata (metrics and/or instance domain changes) covered by result to be also written to the PCP ar- chive. Because of the complexity of the pmResult data structure, this routine is not available in the Perl interface to the LOGIMPORT services. DIAGNOSTICS
pmiPutResult returns zero on success else a negative value that can be turned into an error message by calling pmiErrStr(3). SEE ALSO
LOGIMPORT(3), PMAPI(3), pmiAddInstance(3), pmiAddMetric(3), pmiErrStr(3), pmiPutValue(3), pmiPutValueHandle(3), pmiSetTimezone(3) and pmi- Write(3). Performance Co-Pilot PMIPUTRESULT(3)
Man Page

4 More Discussions You Might Find Interesting

1. Programming

Finding timezone information

how to extract current/existing timezone information ?? (2 Replies)
Discussion started by: kartik.patel
2 Replies

2. Shell Programming and Scripting

Timezone not changed.

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)
Discussion started by: nua7
1 Replies

3. Shell Programming and Scripting

convert timezone into human output

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)
Discussion started by: iga3725
3 Replies

4. UNIX for Advanced & Expert Users

Performance problem with bidirectional nc

Working on a simple, half duplex network diagnostic that will run anywhere using nc and dd. Performance is symmetrical with sink and source nc processes open as a server: nc -vkl 5000 > /dev/null & cat /dev/zero | nc -vkl 5001 & With this on the client: nc host0 5001 | dd of=/dev/null... (0 Replies)
Discussion started by: netdrx
0 Replies