GeezerVison is showing docs.voltdb.com — @SystemInformation
@SystemInformation@SystemInformation@SystemInformation — Returns configuration information about VoltDB and the individual nodes of the database cluster. Synopsis@SystemInformation String component DescriptionThe @SystemInformation system procedure returns information about the configuration of the VoltDB database or the
individual nodes of the database cluster, depending upon the component keyword you specify. The following are the allowable
values of component: - "DEPLOYMENT"
Returns information about the configuration of the database. In particular, this keyword returns information
about the various features and settings, such as export, snapshots, K-safety, and so on. These properties are returned
in a single VoltTable of name/value pairs. - "ENV"
Returns information about the environment variables defined for each host, returning a row containing the
variable name and value per host. - "LICENSE"
Returns information about the license in use by the database. The license properties are returned in a single
VoltTable of name/value pairs. - "OVERVIEW"
Returns information about the individual servers in the database cluster, including the host name, the IP
address, the version of VoltDB running on the server, as well as the path to the configuration file in use. The
overview also includes entries for the start time of the server and length of time the server has been running.
If you do not specify a component, @SystemInformation returns the results of the OVERVIEW component (to provide
compatibility with previous versions of the procedure). Return ValuesReturns different VoltTables depending on which component is requested. DEPLOYMENT — returns one row for each
configuration property. | Name | Datatype | Description |
|---|
| PROPERTY | STRING | The name of the configuration property. The system procedure reports the following properties,
depending on what features are enabled in the database configuration: | | VALUE | STRING | The corresponding value of that property in the configuration (either explicitly or by default). |
ENV — returns a row for every environment variable
defined on every host in the cluster. | Name | Datatype | Description |
|---|
| HOST_ID | INTEGER | A numeric identifier for the host node. | | ENV_NAME | STRING | The name of the environment variable. | | ENV_VALUE | STRING | The value of the variable on the specified host. |
LICENSE — returns one row for each property of
the currently active license. (Not all properties apply to all licenses.) | Name | Datatype | Description |
|---|
| PROPERTY | STRING | The name of the license property. The system procedure reports the following properties, depending on
what license features are enabled: -
PERMIT_VERSION — for internal use
-
PERMIT_SCHEME — for internal use
-
TYPE — the type of license in use
-
ISSUER_COMPANY — the company that issued the license
-
ISSUER_EMAIL — the email address of the company that issued the license
-
ISSUER_URL — the website of the company that issued the license
-
ISSUER_PHONE — the telephone number of the company that issued the license
-
ISSUE_DATE — the date the license was issued
-
LICENSEE — who the license was issued to
-
EXPIRATION — the date the license expires
-
HOSTCOUNT_MAX — the maximum number of hosts supported by the license
-
CORECOUNT_MAX — the maximum number of processor cores supported by the license
-
FEATURES_* — there may be multiple "feature" entries, each identifying a separately licensable function enabled by the license
-
NOTE — notes regarding the license
-
SIGNATURE — an encrypted signature identifying the license (for internal use)
| | VALUE | STRING | The corresponding value of the property (either set explicitly by the license or by default). |
OVERVIEW — returns a row for every system
attribute on every node of the cluster. The rows contain an additional column to identify the host node associated with the
attribute. | Name | Datatype | Description |
|---|
| HOST_ID | INTEGER | A numeric identifier for the host node. | | KEY | STRING | The name of the system attribute. | | VALUE | STRING | The corresponding value of that attribute for the specified host. The system procedure reports the
following properties: |
ExamplesThe first example displays information about the individual servers in the database cluster: $ sqlcmd
1> exec @SystemInformation overview; The following program example uses @SystemInformation to display information about the nodes in the cluster and then
about the database itself. VoltTable[] results = null;
try {
results = client.callProcedureSync("@SystemInformation",
"OVERVIEW").getResults();
System.out.println("Information about the database cluster:");
for (VoltTable node : results) System.out.println(node.toString());
results = client.callProcedureSync("@SystemInformation",
"DEPLOYMENT").getResults();
System.out.println("Information about the database configuration:");
for (VoltTable node : results) System.out.println(node.toString());
}
catch (Exception e) {
e.printStackTrace();
}
|