Re: help required
Les Mikesell <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dave Shield wrote: > 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. I've always been surprised that this commonly-wanted operation was so conceptually difficult. Are there any good tools to do this from the client side? -- Les Mikesell [email protected] ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users