Page 1 of 1

snmpget() Trapping error on fail...

Posted: Fri May 14, 2004 10:59 am
by bob_beauvais
I am successfully using snmpget() to pull some information from my devices. When I have a device down my snmpget() function fails with a standard (very long) php error message. I would like to be able to test to see that the device is able to return snmp information before using snmpget() so that I can generate my own user-friendly error. According to the PHP manual snmpget() should return "false" on error. But I don't seem to be able to get arround the :arrow: Warning: snmpget(): No response... msg that appears.

Would appreciate any ideas on this...

Thanks a bunch,

Bob

Posted: Fri May 14, 2004 11:05 am
by magicrobotmonkey
look up @ in the php manual