9.5.10. tpm query Command

The query command provides information about the current tpm installation. There are a number of subcommands to query specific information:

Returns the manifest information for the identified release of Tungsten Clustering, including the build, source and component versions, returned in the form of a JSON value:

shell>  tpm query manifest
{
  "SVN": {
    "bristlecone": {
      "URL": "https://bristlecone.googlecode.com/svn/trunk/bristlecone",
      "revision": 170
    },
    "connector": {
      "URL": "svn+ssh://svn.continuent.com/svnroot/tungsten/trunk/connector",
      "revision": 9150
    },
    "fsm": {
      "URL": "svn+ssh://svn.continuent.com/svnroot/tungsten/trunk/fsm",
      "revision": 9150
    },
    "manager": {
      "URL": "svn+ssh://svn.continuent.com/svnroot/tungsten/trunk/manager",
      "revision": 9150
    },
    "replicator": {
      "URL": "https://tungsten-replicator.googlecode.com/svn/trunk",
      "revision": 2020
    }
  },
  "date": "Fri Jan 24 22:25:07 UTC 2014",
  "host": "ip-10-250-35-16",
  "hudson": {
    "SVNRevision": null,
    "URL": "http://cc.aws.continuent.com/",
    "buildId": 227,
    "buildNumber": 227,
    "buildTag": "jenkins-Base_Continuent_Tungsten_2.0.2_JUnit-227",
    "jobName": "Base_Continuent_Tungsten_2.0.2_JUnit"
  },
  "product": "Continuent Tungsten",
  "userAccount": "jenkins",
  "version": {
    "major": 2,
    "minor": 0,
    "revision": 2
  }
}

Shows the list of configuration files that have been modified since the installation was completed. Modified configuration files cannot be overwritten during an upgrade process, using this command enables you identify which files contain changes so that these modifications can be manually migrated to the new installation. To restore or replace files with their original installation, copy the .filename.orig file.

Returns the host and directory from which the current installation was created:

shell> tpm query staging
tungsten@host1:/home/tungsten/tungsten-clustering-5.2.2-275

This can be useful when the installation host and directory from which the original configuration was made need to be updated or modified.

Returns the current topology and list of configured servers and roles in the form of a JSON object:

shell> tpm query topology
{
  "host1": "slave",
  "host2": "slave",
  "host3": "master"
}

Returns a summarized list of the currently configured users in the user.map:

shell> tpm query usermap
# user.map Summary

# Configured users
app_user ******** alpha

# Script entries


# DirectRead users


# Host-based routing entries

Returns the version for the identified version of Tungsten Clustering:

shell>  tpm query version
5.2.2-275