2009/4/5 anshul mittal <[email protected]>: > 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.
I don't think snmptable is a particularly good starting point. A better approach would be a combination of snmpwalk (searching for the process name), followed by snmpget (for the performance info). I'd actually suggest that you start by crafting a shell-script that uses the 'snmpwalk' and 'snmpget' commands, to make sure that you are happy with the operations that are needed. Once you've got that working, it should be relatively straightforward to re-work it using the C (or perl) API calls. But it'll be a lot easier to code this once you've got a firm grasp of exactly what operations are needed. Dave ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
