7.6 Service Persistent Raw Data and Runtime Statistics
7.6.2.2
Accessing Runtime Statistics through SNMP
Runtime parameter statistics can also be retrieved and reset through SNMP by
requesting the wrzParamMetrics and wrzParamXResetMetrics tables.
Here is an example of retrieving statistics through SNMP:
To reset runtime statistics through SNMP, you can use the snmpset command.
Here is an example:
7.6.2.3
Accessing Runtime Statistics through the REST-API
Runtime metrics are retrieved using the same endpoint that is used to retrieve
the actual value of a parameter, i.e, the gpa endpoint. They are requested by spe-
cifying the complete format. They are stored under the metrics_dic field of the
response.
162
# snmpget -v 3 -u adminSNMP -l authPriv -a MD5 -x DES -A
adminSNMPpass -X adminSNMPpass 10.22.26.213 SEVEN-PRODUCT-
MIB::wrzParamMetrics.1.2020.25
SEVEN-PRODUCT-MIB::wrzParamMetrics.1.2020.25 = STRING: min:
-0.003000000000 max: 0.001000000000 mean: -0.000526315789
# snmpset -v 3 -u adminSNMP -l authPriv -a MD5 -x DES -A
adminSNMPpass -X adminSNMPpass 10.22.26.108 SEVEN-PRODUCT-
MIB::wrzParamXResetMetrics.1.2020.25 i 1
{
"msg": "Success",
"data": {
"servo": {
"offset_from_master": {
"value": " 0.000000007383",
"value_str": "0.000000007383",
"status_str": "",
"conf_value": "",
"oid": "1.2020.25",
"access_str": "RX",
"vtype_str": "f64",
"unit": "ns",
"desc": "The time error between a Slave Clock and a
Master Clock (Legacy WR: clock offset)",
"enum_dic": {},
"metrics_dic": {
"min": 0.000000007383,
"max": 0.000000291743,
CHAPTER
•
7
WR-ZEN Series User Manual Rev. v5.1