About the SNMP Agent extending, Please Help me, Thanks.
ss vincent <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dear all,
Now my project need to SNMP support, now I need to figure out how to implement it, please help me and give some suggestions.
about my project, OS: Linux 2.6.8, CPU : intel P4, the Net-SNMP 5.0.9, I need to use the SNMP to remotely control my application and Linux QOS, I have finished this work in webpage by using PHP, I also have finished my own command line to support the PHP webapge, so in my PHP My code like this :
exec("/sbin/My_config get $i.destip ",$output)
exec("/sbin/My_config set $qos.destip \"$tempdesip \" ");
exec("/usr/bin/sudo /sbin/iptables -t mangle -A POSTROUTING -p $protocolstemp $tempoption -j MARK --set-mark $tempclassmark");
exec("/usr/bin/sudo /usr/sbin/tc filter add dev myEth0 parent 1:0 prio 0 protocol ip handle $tempclassmark fw flowid 1:$tempclassmark");
In my SNMP agent code, I hope I can use the same way to implement it. It seems that I can use the exec or sh commands in snmpd.conf , but it doesn't support the set function, so How can I use My own command line and shell scripts in my agent code to support run time modify my application argument and Linux Qos configuration, any suggestion is appreciate.
best regards,
vincent
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d
-------------------------------------------------------------------------
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