April 22nd, 2013, 09:52 AM
Snmp snmprealwalk(): No response from udp6:::1
Im trying to figure out how to poll snmpd from php. The documentation is very sparse and difficult to grasp.
The most simple implementation I can come across is
It should return an array of available interfaces but php spews out an error
echo snmprealwalk("localhost", "public", "IF-MIB::ifName");
From this I can conclude that IF-MIB::ifName returns IPv6 capable interfaces. Question is, how do I poll IPv4 capable interfaces?
PHP Warning: snmprealwalk(): No response from udp6:::1
Last edited by odp; April 22nd, 2013 at 09:55 AM.
April 22nd, 2013, 09:57 AM
It could also mean the snmp agent is not running or is not compatible with the request. I suspect this is not a PHP issue but rather an snmp agent or MIB issue.
There are 10 kinds of people in the world. Those that understand binary and those that don't.
April 22nd, 2013, 10:58 AM
snmpd is for sure running
Originally Posted by gw1500se
snmpwalk -v 3 -u read_only_user -a SHA -A password -x DES -X password -l authNoPriv localhost | less
SNMPv2-MIB::sysDescr.0 = STRING: Linux odp 3.8.4-1-ARCH #1 SMP PREEMPT Wed Mar 20 22:10:25 CET 2013 x86_64