Search code examples
phpsnmp

PHP doing SNMP walk on remote devices/clients?


I am trying to create a new application for our company to do an SNMP walk.

Here's what I am trying to achieve. The customer logs into our website. Clicks a button saying "Do SNMP Walk" and a PHP script will do a walk, and parse the data into the MySQL DB, and that's it.

Is this possible to do with PHP?

I was reading on http://php.net/manual/en/function.snmpwalk.php and I seen that it looks like it is, but I wasn't sure because the clients wouldn't be on the same network as the server the script is running from (we'd be using godaddy.)

Thanks!


Solution

  • If you're trying to SNMP walk devices in the client's network from your GoDaddy server, then the answer is no: you won't be able to do it.

    SNMP is typically not passed through firewalls, so you would need to deploy your PHP code on the same network as the client.