Forum Moderators: open

Message Too Old, No Replies

SNMP OID's

         

pmkpmk

2:47 pm on Apr 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there a way to query SNMP variables form inside a JavaScript application running on Linux? I browsed the web for the last hour but found nothing.

pmkpmk

10:11 pm on Apr 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK, there is a basic misconception in my request: JavaScript runs on the Client! Actually it should make me very worried if it WOULD be possible for any website visitor out there to query one of my INTERNAL machines via SNMP! So JavaScript is not an option.

PHP, on the other hand, runs on the Server. So I actually wrote a PHP script, which queries the internal device via SNMP with the snmpwalk command, renders a nice PNG graphic with the result, and THEN I used JavaScript to update the image every couple of seconds on the client.

Hope that helps if someone runs into the same problem.