File MIES_CheckInstallation.ipf

CHI Routines for checking the health of the MIES installation

Functions

static variable CHI_InitInstallationState(CHI_InstallationState *state)
static variable CHI_CheckJSONXOPVersion(CHI_InstallationState *state)
static variable CHI_CheckTUFXOPVersion(CHI_InstallationState *state)
static variable CHI_OutputVersionCheckResult(CHI_InstallationState *state, string xopName, string expectedVersion, string foundVersion)
static variable CHI_CheckITCXOPVersion(CHI_InstallationState *state)
static variable CHI_CheckXOP(string *list, string item, string name, CHI_InstallationState *state, string expectedHash = defaultValue)

Search list for matches of item and print the results.

static variable CHI_LoadInstallationConfiguration()
Returns:

JSON id or NaN if configuration file does not exist

static std::tuple<variable, string> CHI_GetInstallationConfigProp(string key, variable defValue = defaultValue, string defSValue = defaultValue)
Parameters:
  • key – key in JSON tree under /Installation

  • defValue – [optional] default value to return if the key does not exist. Either defValue or defSValue can be given as argument, not both.

  • defSValue – [optional] default value to return if the key does not exist. Either defValue or defSValue can be given as argument, not both.

Returns:

either value or sValue depending on requested JSOn key, the unused result value is either Nan or “”.

variable CHI_IsMIESInstalledWithHardware()
Returns:

1 if MIES was installed with hardware support, 0 otherwise

variable CHI_IsMIESInstalledForAllUsers()
Returns:

1 if MIES was installed for all users, 0 otherwise

variable CHI_CheckInstallation()

Check the installation and print the results to the history.

Currently checks that all expected/optional XOPs are installed.

Returns:

number of errors

Variables

static const string CHI_NIDAQ_XOP_64_HASH = "b13267a080053c07b80302212b7f73ac199e1f001d9a1b4303e2d7dce1aeb39e"
static const string CHI_JSON_XOP_VERSION = "version-892-g9251933"
static const string CHI_TUF_XOP_VERSION = "version-163-g686effb"
static const string CHI_ITC_XOP_VERSION = "latest-174-gb9915a9"
static const string CHI_INSTALLCONFIG_NAME = "installation_configuration.json"
static const double CHI_INSTALLDEFAULT_WITHHARDWARE = 1
static const string CHI_INSTALLDEFAULT_ALLUSER = "current"
struct CHI_InstallationState

Collection of counters used for installation checking.

Public Members

variable numErrors
variable numTries