Re: About the SNMP Agent extending, Please Help me, Thanks.

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
    [ First - *please* don't mail me privately, without copying
     any responses to the mailing list.  I don't have the time
     or inclination to offer private, unpaid, SNMP consultancy.
     Keep discussions to the list, where others can both learn
     and offer advice.  Thanks.   ]

On 20/12/06, ss vincent <[email protected]> wrote:
> Hi Dave,
>  I appreciate your help, I have looked the Net-SNMP-Extend-MIB, I think my
> last mail doesn't express clearly, what I want to do is how to invoke the
> Shell scripts in the Net-SNMP agent ( C code), I am trying to use the
> system() function, it seems doesn't work

Probably the easiest way to run a sub-command would be to use the
run_exec_command() or run_shell_command() APIs.
You give these routines the command to run, together with an input string
(if required) and a buffer for the output - and they handle everything else.



Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.