Polling Cisco Router with PHP
Moderator: General Moderators
Polling Cisco Router with PHP
I want to accomplish something simple, but I'm having trouble getting it to work. I want to poll a router for all of its interfaces and their descriptions. Then list these on a web page. I'm not sure how to go about doing this, so any help would be greatly appreciated. Thanks!
xtort
xtort
meaby have a look at the http://www.php.net/snmp functions??
i wouldn't know a more appropriate to talk with routers....
i wouldn't know a more appropriate to talk with routers....
Thanks I will read this section carefully.timvw wrote:meaby have a look at the http://www.php.net/snmp functions??
i wouldn't know a more appropriate to talk with routers....
I am unable to use the snmpget functions, even though I added them during install. When I try I get the following error
Fatal error: Call to undefined function: snmpget() in /var/www/test1.php on line 19
I'm not sure if I installed PHP correctly, or even how to figure out if the snmp functions are included. I added phpinfo() to see what was in there.
Included in the configure command output section is
'--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared'
I thought this meant that I installed with the --with-snmp option.
Fatal error: Call to undefined function: snmpget() in /var/www/test1.php on line 19
I'm not sure if I installed PHP correctly, or even how to figure out if the snmp functions are included. I added phpinfo() to see what was in there.
Included in the configure command output section is
'--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared'
I thought this meant that I installed with the --with-snmp option.
xt07t wrote:Thanks I will read this section carefully.timvw wrote:meaby have a look at the http://www.php.net/snmp functions??
i wouldn't know a more appropriate to talk with routers....