Table 6. Feature History Table
Feature Name
|
Release Information
|
Description
|
OpenConfig YANG Model:procmon
|
Release 7.5.2
|
This model provides data definitions to monitor the health of one or more processes running on a system, delivering insights
into the performance of critical processes and helping remediate performance bottlenecks.
For example, the stress tool that is part of the Linux distribution may be consuming high CPU. The openconfig-procmon model pulls this information and sends it to you when you query the node. As a remediation measure, you can then restart
the process.
You can access the OC data model from the Github repository.
|
Subscribe to the following sensor path:
openconfig-system:system/processes/process
Based on a Process ID (PID), you can stream state parameters, such as name, args, start-time, uptime, cpu-usage-user, cpu-usage-system,
cpu-utilization, memory usage and memory utilization.
When you send the PID to a MDT-capable device requesting state parameters of a process, the PID of the process acts as a key
for the request. If the requested PID is invalid, you will not receive any response.
Note
|
The location of the PID is always assumed to be the Active RP. This model does not have any leaf or field where you can specify
the location or node name.
|
Example
This output shows state parameters that monitor the health of the dhcpd process having PID: 22482 using the XR built-in mdt_exec tool. You can also use telemetry tools, such as gNMI and gRPC.
RP/0/RP1/CPU0:SF-D#run mdt_exec -s openconfig-system:system/processes/process[pid=22482]
Enter any key to exit...
Sub_id 200000001, flag 0, len 0
Sub_id 200000001, flag 4, len 583
--------
{"node_id_str":"SF-D","subscription_id_str":"app_TEST_200000001",
"encoding_path":"openconfig-system:system/processes/process","collection_id":"13",
"collection_start_time":"1648387172382","msg_timestamp":"1648387172384",
"data_json":[{"timestamp":"1648387172384","keys":[{"pid":"22482"}],
"content":{"state":{"pid":"22482","name":"dhcpd","args":["dhcpd"],
"start-time":"1648385883000000000","uptime":"1289384179023","cpu-usage-user":"270000000",
"cpu-usage-system":"180000000","cpu-utilization":0,"memory-usage":"16641952",
"memory-utilization":0}}}],"collection_end_time":"1648387172384"}
--------
Sub_id 200000001, flag 8, len 0