SNMP v3 with CONTEXT syntax for PHP ?
Hello,
I am looking for a correct PHP syntax of SNMP v3 with CONTEXT in it. On the command line I simply execute this: Code:
snmpget -v 3 -a MD5 -A MD5UserAuth -u MD5 -l authNoPriv -n unit-11 192.168.1.55 1.3.6.1.4.1.21696.4.1.1.1.1.0 However, I have no idea how can I do that with PHP. Does anyone can help please ? |
Quote:
Do "what with php" exactly? Hook snmp with php code? replicate snmpget? duplicate snmpget? Parse it? Tickle it until it screams? Are you looking to populate an .html document via some snmp-enabled .php script? I think that's do-able. :) Please clarify "do that with PHP." |
Hello Habitual,
Quote:
Quote:
Let me put this in other words: I need to execute SNMP v3 request(get) with PHP code with option CONTEXT in it. MIND: SNMP v3 with option CONTEXT. And I can execute this request with CLI but because of CONTEXT option I am not able to execute it with PHP. Quote:
Note, it is not about how to insert SNMP request in the PHP code or how to print it out. It is question about syntax of SNMP v3 with option CONTEXT for PHP. |
Yeah, I'm stuck.
no answer on Net-snmp-users@lists.sourceforge.net ? |
Nope :/
I posted there too. |
I'd use "shell_exec(" like so:
Code:
<?php It may not be "clean", it may not be "pretty", but it may just work. :) |
All times are GMT -5. The time now is 07:56 AM. |