RE: SNMP subagent in C + exec_command or similar
Hársszegi Tibor <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <0AB49E373B7E1448B1F61F060A0776AF045035C7E8@sgmail1> |
Yeah, actually I've done that :( Copy-pasted the run_shell_command merely to my agent (since after all it is just a system() invocation with output piped to a temporary file). Thanks a lot Dave for the hint!! t. > -----Original Message----- > From: Dave Shield [mailto:[email protected]] > Sent: Friday, May 07, 2010 11:41 AM > To: Hársszegi Tibor > Cc: [email protected] > Subject: Re: SNMP subagent in C + exec_command or similar > > 2010/5/7 Hársszegi Tibor <[email protected]>: > > have tried exec_command not much luck :( I am trying to run > scripts, > > like > > > > cat /proc/cpuinfo | grep vendor_id | awk '{print $3}' > > > > and similar. > > No - exec_command won't really help you here. > > Try using "run_shell_command" instead. > (See mibgroup/utilities/execute.c for details) > > Dave > ------------------------------------------------------------------------------ _______________________________________________ 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