pmiSetVersion - Man Page

set the archive version for a LOGIMPORT archive

C Synopsis

#include <pcp/pmapi.h>
#include <pcp/import.h>

int pmiSetVersion(int value);

cc ... -lpcp_import -lpcp

Perl Synopsis

use PCP::LogImport;

pmiSetVersion($value);

Python Synopsis

from pcp import pmi

log = pmi.pmiLogImport(path).pmiSetVersion(value)

Description

As part of the Performance Co-Pilot Log Import API (see LOGIMPORT(3)), pmiSetVersion sets the output archive version in the current context to be value.

In the absence of a call to pmiSetVersion the version currently defaults to the traditional v2 format. In a future major version of PCP it will default to v3 format.

Diagnostics

pmiSetVersion 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), pmiSetTimezone(3) and pmiStart(3).

Referenced By

pmiSetHostname(3), pmiSetTimezone(3), pmiStart(3).

Performance Co-Pilot