I need to write a C code whereby I can get to know the CPU usage and
memory usage of a running process.The input for this C code will be
the name of the process and output will be the memory usage and CPU
usage of the process.I have to use net-snmp for this.

I have been told to somehow modify the snmptable.c(source code
provided with net-snmp) .The idea is to first find the index of the
process from the hrSWRun by inputting the name and then using this
index to get the CPU usage and memory usage from hrSWRunPerf.

The difficulty is that i am not able to understand the snmptable.c and
therfore am not able to make changes.

Please there fore can anyone provide me with the understanding of the
code s that i can make the modifications
-- 
Regards

Anshul

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to