archiver_appliance_monitoring.substitutions#
Note
Click here to check the source code of this file.
This file is a substitutions file implementing ssh_monitor_core.template in order to monitor Archiver Appliance.
In particular, this substitutions file implements ssh_monitor_core.template two time, in two dedicated scopes (‘scope1’ and ‘scope2’).
Note that in the Doxygen documentation, a scope is interpreted as a class, and an EPICS macro substitution is interpreted either by a global variable or by a class attribute.
-
namespace archiver_appliance_monitoring#
Variables
-
str PREFIX = "${PREFIX_MACRO}"#
The ‘PREFIX’ macro prefixes all the PVs names of this ‘.substitutions’ file.
This macro is set to the ‘PREFIX_MACRO’ macro, which has to be defined in the ‘.cmd’ file.
-
str SSH_OPTS_AND_ARGS = "${SSH_OPTS_AND_ARGS_MACRO}"#
The ‘SSH_OPTS_AND_ARGS’ macro defines the SSH options and arguments used for all the SSH commands (including associated shell instructions) of this ‘.substitutions’ file.
This macro is set to the ‘SSH_OPTS_AND_ARGS_MACRO’ macro, which has to be defined in the ‘.cmd’ file.
-
str AA_IP = "${AA_IP_MACRO=localhost}"#
The ‘AA_IP’ macro defines the Archiver Appliance IP address used in this ‘.substitutions’ file.
This macro is set to the ‘AA_IP_MACRO’ macro, which defaults to ‘localhost’ and can be re-defined in the ‘.cmd’ file.
-
str AA_MGMT_PORT = "${AA_MGMT_PORT_MACRO=17665}"#
The ‘AA_MGMT_PORT’ macro defines the Archiver Appliance TCP port number used in this ‘.substitutions’ file.
This macro is set to the ‘AA_MGMT_PORT_MACRO’ macro, which defaults to ‘17665’ and can be re-defined in the ‘cmd’ file.
-
str AA_APPLIANCE_ID = "${AA_APPLIANCE_ID_MACRO=appliance0}"#
The ‘AA_APPLIANCE_ID’ macro defines the Archiver Appliance ID used in this ‘.substitutions’ file.
This macro is set to the ‘AA_APPLIANCE_ID_MACRO’ macro, which defaults to ‘appliance0’ and can be re-defined in the ‘cmd’ file.
-
class scope1#
Public Static Attributes
-
static str CATEGORY = "archiver-appliance-general:"#
The ‘CATEGORY’ macro defines the category name of this scope.
-
static str SCAN = "${SCAN_MACRO=10 minute}"#
The ‘SCAN’ macro defines how often the commands of this scope should be triggered.
This macro is set to the ‘SCAN_MACRO’ macro, which defaults to ‘10 minute’ and can be re-defined in the ‘cmd’ file.
-
static str PV_NAME_SCALAR_1 = "status"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’.
-
static str SCALAR_1_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getInstanceMetrics' | tr '}' ',' | tr -d '[{}]' | xargs | grep -qo 'status:Working' && echo 0 || echo 1"#
This macro defines a shell instruction making sure the status of archiver appliance is “Working”.
-
static str PREC_SCALAR_1 = "0"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_1 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’ ai record.
-
static str HIHI_SCALAR_1 = "1"#
This macro sets to ‘1’ the ‘HIHI’ field (i,e, the “high high” alarm level) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’ ai record.
-
static str LOAD_HIHI_SCALAR_1 = ""#
This macro uncomments the ‘HIHI’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’ ai record.
-
static str HHSV_SCALAR_1 = "MAJOR"#
This macro sets to ‘MAJOR’ the ‘HHSV’ field (i,e, the severity of the ‘HIHI’ field) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’ ai record.
-
static str LOAD_HHSV_SCALAR_1 = ""#
This macro uncomments the ‘HHSV’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’ ai record.
-
static str LOLO_SCALAR_1 = "-1"#
This macro sets to ‘-1’ the ‘LOLO’ field (i,e, the “low low” alarm level) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’ ai record.
-
static str LOAD_LOLO_SCALAR_1 = ""#
This macro uncomments the ‘LOLO’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’ ai record.
-
static str LLSV_SCALAR_1 = "MAJOR"#
This macro sets to ‘MAJOR’ the ‘LLSV’ field (i,e, the severity of the ‘LOLO’ field) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’ ai record.
-
static str LOAD_LLSV_SCALAR_1 = ""#
This macro uncomments the ‘LLSV’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’ ai record.
-
static str PV_NAME_SCALAR_2 = "errors"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’.
-
static str SCALAR_2_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getInstanceMetrics' | tr '}' ',' | tr -d '[{}]' | xargs | grep -qo 'errors:0' && echo 0 || echo 1"#
This macro defines a shell instruction making sure that the current number of errors of Archiver Appliance is ‘0’.
-
static str PREC_SCALAR_2 = "0"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_2 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’ ai record.
-
static str HIHI_SCALAR_2 = "1"#
This macro sets to ‘1’ the ‘HIHI’ field (i,e, the “high high” alarm level) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’ ai record.
-
static str LOAD_HIHI_SCALAR_2 = ""#
This macro uncomments the ‘HIHI’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’ ai record.
-
static str HHSV_SCALAR_2 = "MAJOR"#
This macro sets to ‘MAJOR’ the ‘HHSV’ field (i,e, the severity of the ‘HIHI’ field) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’ ai record.
-
static str LOAD_HHSV_SCALAR_2 = ""#
This macro uncomments the ‘HHSV’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’ ai record.
-
static str LOLO_SCALAR_2 = "-1"#
This macro sets to ‘-1’ the ‘LOLO’ field (i,e, the “low low” alarm level) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’ ai record.
-
static str LOAD_LOLO_SCALAR_2 = ""#
This macro uncomments the ‘LOLO’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’ ai record.
-
static str LLSV_SCALAR_2 = "MAJOR"#
This macro sets to ‘MAJOR’ the ‘LLSV’ field (i,e, the severity of the ‘LOLO’ field) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’ ai record.
-
static str LOAD_LLSV_SCALAR_2 = ""#
This macro uncomments the ‘LLSV’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’ ai record.
-
static str PV_NAME_SCALAR_3 = "connected-pvs-count"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_3}’.
-
static str SCALAR_3_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getInstanceMetrics' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=\\(?<!dis\\)connectedPVCount:\\)[[:digit:]]*\\(?=,\\)'"#
This macro defines a shell instruction retrieving the number of connected PVs.
-
static str PREC_SCALAR_3 = "0"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_3 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_3}’ ai record.
-
static str PV_NAME_SCALAR_4 = "disconnected-pvs-count"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_4}’.
-
static str SCALAR_4_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getInstanceMetrics' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=disconnectedPVCount:\\)[[:digit:]]*\\(?=,\\)'"#
This macro defines a shell instruction retrieving the number of disconnected PVs.
-
static str PREC_SCALAR_4 = "0"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_4 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_4}’ ai record.
-
static str PV_NAME_SCALAR_5 = "pvs-count"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_5}’.
-
static str SCALAR_5_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getInstanceMetrics' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=pvCount:\\)[[:digit:]]*\\(?=,\\)'"#
This macro defines a shell instruction retrieving the total number of PVs (connected or not).
-
static str PREC_SCALAR_5 = "0"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_5 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_5}’ ai record.
-
static str PV_NAME_SCALAR_6 = "data-rate-per-year"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_6}’.
-
static str SCALAR_6_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getInstanceMetrics' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=dataRateGBPerYear:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | tr ',' '.'"#
This macro defines a shell instruction retrieving the data rate per year (GB/year).
-
static str PREC_SCALAR_6 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_6 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_6}’ ai record.
-
static str EGU_SCALAR_6 = "GB/year"#
This macro sets to ‘GB/year’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_6}’ ai record.
-
static str LOAD_EGU_SCALAR_6 = ""#
This macro uncomments the ‘EGU_SCALAR_6’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_6}’ ai record.
-
static str PV_NAME_SCALAR_7 = "data-rate-per-day"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_7}’.
-
static str SCALAR_7_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getInstanceMetrics' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=dataRateGBPerDay:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | tr ',' '.'"#
This macro defines a shell instruction retrieving the data rate per day (GB/day).
-
static str PREC_SCALAR_7 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_7 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_7}’ ai record.
-
static str EGU_SCALAR_7 = "GB/day"#
This macro sets to ‘GB/day’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_7}’ ai record.
-
static str LOAD_EGU_SCALAR_7 = ""#
This macro uncomments the ‘EGU_SCALAR_7’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_7}’ ai record.
-
static str PV_NAME_STRING_1 = "uptime"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_STRING_1}’.
-
static str STRING_1_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getInstanceMetrics' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=MGMT_uptime:\\).*?\\(?=,\\)'"#
This macro defines a shell instruction retrieving the uptime.
-
static str LOAD_STRING_1 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_STRING_1}’ ai record.
-
static str PV_NAME_STRING_2 = "version"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_STRING_2}’.
-
static str STRING_2_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getApplianceInfo?id=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=version:\\).*?\\(?=,\\)'"#
This macro defines a shell instruction retrieving the archiver appliance version.
-
static str LOAD_STRING_2 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_STRING_2}’ ai record.
-
static str CATEGORY = "archiver-appliance-general:"#
-
class scope2#
Public Static Attributes
-
static str CATEGORY = "archiver-appliance-storage:"#
The ‘CATEGORY’ macro defines the category name of this scope.
-
static str SCAN = "${SCAN_MACRO=10 minute}"#
The ‘SCAN’ macro defines how often the commands of this scope should be triggered.
This macro is set to the ‘SCAN_MACRO’ macro, which defaults to ‘10 minute’ and can be re-defined in the ‘cmd’ file.
-
static str PV_NAME_SCALAR_1 = "sts-space-percent"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’.
-
static str SCALAR_1_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=available_space_percent:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 1p | tr ',' '.'"#
This macro defines a shell instruction retrieving the STS available space percent.
-
static str PREC_SCALAR_1 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_1 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’ ai record.
-
static str EGU_SCALAR_1 = "%"#
This macro sets to ‘’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’ ai record.
-
static str LOAD_EGU_SCALAR_1 = ""#
This macro uncomments the ‘EGU_SCALAR_1’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_1}’ ai record.
-
static str PV_NAME_SCALAR_2 = "sts-total-space"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’.
-
static str SCALAR_2_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=total_space:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 1p | tr ',' '.'"#
This macro defines a shell instruction retrieving the STS total space.
-
static str PREC_SCALAR_2 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_2 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’ ai record.
-
static str EGU_SCALAR_2 = "GiB"#
This macro sets to ‘GiB’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’ ai record.
-
static str LOAD_EGU_SCALAR_2 = ""#
This macro uncomments the ‘EGU_SCALAR_2’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_2}’ ai record.
-
static str PV_NAME_SCALAR_3 = "sts-available-space"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_3}’.
-
static str SCALAR_3_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=available_space:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 1p | tr ',' '.'"#
This macro defines a shell instruction retrieving the STS available space.
-
static str PREC_SCALAR_3 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_3 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_3}’ ai record.
-
static str EGU_SCALAR_3 = "GiB"#
This macro sets to ‘GiB’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_3}’ ai record.
-
static str LOAD_EGU_SCALAR_3 = ""#
This macro uncomments the ‘EGU_SCALAR_3’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_3}’ ai record.
-
static str PV_NAME_SCALAR_4 = "sts-time-to-copy"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_4}’.
-
static str SCALAR_4_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=time_copy_data_into_store:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 1p | tr ',' '.'"#
This macro defines a shell instruction retrieving the STS time to copy data into store (in s).
-
static str PREC_SCALAR_4 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_4 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_4}’ ai record.
-
static str EGU_SCALAR_4 = "s"#
This macro sets to ‘s’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_4}’ ai record.
-
static str LOAD_EGU_SCALAR_4 = ""#
This macro uncomments the ‘EGU_SCALAR_4’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_4}’ ai record.
-
static str PV_NAME_SCALAR_5 = "sts-time-to-copy-in-percent"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_5}’.
-
static str SCALAR_5_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=time_copy_data_into_store_percent:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 1p | tr ',' '.'"#
This macro defines a shell instruction retrieving the STS time to copy data into store (in %).
-
static str PREC_SCALAR_5 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_5 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_5}’ ai record.
-
static str EGU_SCALAR_5 = "%"#
This macro sets to ‘’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_5}’ ai record.
-
static str LOAD_EGU_SCALAR_5 = ""#
This macro uncomments the ‘EGU_SCALAR_5’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_5}’ ai record.
-
static str PV_NAME_SCALAR_6 = "mts-space-percent"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_6}’.
-
static str SCALAR_6_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=available_space_percent:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 2p | tr ',' '.'"#
This macro defines a shell instruction retrieving the MTS available space percent.
-
static str PREC_SCALAR_6 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_6 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_6}’ ai record.
-
static str EGU_SCALAR_6 = "%"#
This macro sets to ‘’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_6}’ ai record.
-
static str LOAD_EGU_SCALAR_6 = ""#
This macro uncomments the ‘EGU_SCALAR_6’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_6}’ ai record.
-
static str PV_NAME_SCALAR_7 = "mts-total-space"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_7}’.
-
static str SCALAR_7_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=total_space:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 2p | tr ',' '.'"#
This macro defines a shell instruction retrieving the MTS total space (in GiB).
-
static str PREC_SCALAR_7 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_7 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_7}’ ai record.
-
static str EGU_SCALAR_7 = "GiB"#
This macro sets to ‘GiB’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_7}’ ai record.
-
static str LOAD_EGU_SCALAR_7 = ""#
This macro uncomments the ‘EGU_SCALAR_7’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_7}’ ai record.
-
static str PV_NAME_SCALAR_8 = "mts-available-space"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_8}’.
-
static str SCALAR_8_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=available_space:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 2p | tr ',' '.'"#
This macro defines a shell instruction retrieving the MTS available space (in GiB).
-
static str PREC_SCALAR_8 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_8 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_8}’ ai record.
-
static str EGU_SCALAR_8 = "GiB"#
This macro sets to ‘GiB’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_8}’ ai record.
-
static str LOAD_EGU_SCALAR_8 = ""#
This macro uncomments the ‘EGU_SCALAR_8’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_8}’ ai record.
-
static str PV_NAME_SCALAR_9 = "mts-time-to-copy"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_9}’.
-
static str SCALAR_9_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=time_copy_data_into_store:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 2p | tr ',' '.'"#
This macro defines a shell instruction retrieving the MTS time to copy data into store (in s).
-
static str PREC_SCALAR_9 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_9 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_9}’ ai record.
-
static str EGU_SCALAR_9 = "s"#
This macro sets to ‘s’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_9}’ ai record.
-
static str LOAD_EGU_SCALAR_9 = ""#
This macro uncomments the ‘EGU_SCALAR_9’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_9}’ ai record.
-
static str PV_NAME_SCALAR_10 = "mts-time-to-copy-in-percent"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_10}’.
-
static str SCALAR_10_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=time_copy_data_into_store_percent:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 2p | tr ',' '.'"#
This macro defines a shell instruction retrieving the MTS time to copy data into store (in %).
-
static str PREC_SCALAR_10 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_10 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_10}’ ai record.
-
static str EGU_SCALAR_10 = "%"#
This macro sets to ‘’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_10}’ ai record.
-
static str LOAD_EGU_SCALAR_10 = ""#
This macro uncomments the ‘EGU_SCALAR_10’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_10}’ ai record.
-
static str PV_NAME_SCALAR_11 = "lts-space-percent"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_11}’.
-
static str SCALAR_11_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=available_space_percent:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 3p | tr ',' '.'"#
This macro defines a shell instruction retrieving the LTS available space (in percent).
-
static str PREC_SCALAR_11 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_11 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_11}’ ai record.
-
static str EGU_SCALAR_11 = "%"#
This macro sets to ‘’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_11}’ ai record.
-
static str LOAD_EGU_SCALAR_11 = ""#
This macro uncomments the ‘EGU_SCALAR_11’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_11}’ ai record.
-
static str PV_NAME_SCALAR_12 = "lts-total-space"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_12}’.
-
static str SCALAR_12_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=total_space:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 3p | tr ',' '.'"#
This macro defines a shell instruction retrieving the LTS total space (in GiB).
-
static str PREC_SCALAR_12 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_12 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_12}’ ai record.
-
static str EGU_SCALAR_12 = "GiB"#
This macro sets to ‘’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_12}’ ai record.
-
static str LOAD_EGU_SCALAR_12 = ""#
This macro uncomments the ‘EGU_SCALAR_12’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_12}’ ai record.
-
static str PV_NAME_SCALAR_13 = "lts-available-space"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_13}’.
-
static str SCALAR_13_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=available_space:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 3p | tr ',' '.'"#
This macro defines a shell instruction retrieving the LTS available space (in GiB).
-
static str PREC_SCALAR_13 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_13 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_13}’ ai record.
-
static str EGU_SCALAR_13 = "GiB"#
This macro sets to ‘GiB’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_13}’ ai record.
-
static str LOAD_EGU_SCALAR_13 = ""#
This macro uncomments the ‘EGU_SCALAR_13’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_13}’ ai record.
-
static str PV_NAME_SCALAR_14 = "lts-time-to-copy"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_14}’.
-
static str SCALAR_14_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=time_copy_data_into_store:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 3p | tr ',' '.'"#
This macro defines a shell instruction retrieving the LTS time to copy data into store (in s).
-
static str PREC_SCALAR_14 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_14 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_14}’ ai record.
-
static str EGU_SCALAR_14 = "s"#
This macro sets to ‘s’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_14}’ ai record.
-
static str LOAD_EGU_SCALAR_14 = ""#
This macro uncomments the ‘EGU_SCALAR_14’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_14}’ ai record.
-
static str PV_NAME_SCALAR_15 = "lts-time-to-copy-in-percent"#
This macro defines the PV name, note that this PV name is composed like so: ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_15}’.
-
static str SCALAR_15_INSTRUCTION = "curl --connect-timeout 0.5 -s 'http://${AA_IP}:${AA_MGMT_PORT}/mgmt/bpl/getStorageMetricsForAppliance?appliance=${AA_APPLIANCE_ID}' | tr '}' ',' | tr -d '[{}]' | xargs | grep -oP '\\(?<=time_copy_data_into_store_percent:\\)[[:digit:]]*[,.]?[[:digit:]]*\\(?=,\\)' | sed -n 3p | tr ',' '.'"#
This macro defines a shell instruction retrieving the LTS time to copy data into store (in %).
-
static str PREC_SCALAR_15 = "2"#
This macro specifies the floating point precision (i.e.
the number of digits to show after decimal point) with which to display the value of the associated scalar instruction.
-
static str LOAD_SCALAR_15 = ""#
This macro uncomments the ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_15}’ ai record.
-
static str EGU_SCALAR_15 = "%"#
This macro sets to ‘’ the ‘EGU’ field (i,e, the engineering unit associated to the data held by this PV) of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_15}’ ai record.
-
static str LOAD_EGU_SCALAR_15 = ""#
This macro uncomments the ‘EGU_SCALAR_15’ field of the associated ‘${PREFIX}${CATEGORY}${PV_NAME_SCALAR_15}’ ai record.
-
static str CATEGORY = "archiver-appliance-storage:"#
-
str PREFIX = "${PREFIX_MACRO}"#