Lines Matching refs:SNMP

19 echo "SNMP::ERRNO_NOERROR\n";
20 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries);
22 var_dump($session->getErrno() == SNMP::ERRNO_NOERROR);
26 echo "SNMP::ERRNO_TIMEOUT\n";
27 $session = new SNMP(SNMP::VERSION_2c, $hostname, 'timeout_community_432', $timeout, $retries);
30 var_dump($session->getErrno() == SNMP::ERRNO_TIMEOUT);
34 echo "SNMP::ERRNO_ERROR_IN_REPLY\n";
35 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries);
37 var_dump($session->getErrno() == SNMP::ERRNO_ERROR_IN_REPLY);
41 echo "SNMP::ERRNO_GENERIC\n";
42 $session = new SNMP(SNMP::VERSION_3, $hostname, 'somebogususer', $timeout, $retries);
45 var_dump($session->getErrno() == SNMP::ERRNO_GENERIC);
50 echo "SNMP::ERRNO_OID_PARSING_ERROR\n";
52 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries);
54 var_dump($session->getErrno() == SNMP::ERRNO_OID_PARSING_ERROR);
58 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries);
60 var_dump($session->getErrno() == SNMP::ERRNO_OID_PARSING_ERROR);
64 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries);
66 var_dump($session->getErrno() == SNMP::ERRNO_OID_PARSING_ERROR);
70 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries);
74 var_dump($session->getErrno() == SNMP::ERRNO_OID_PARSING_ERROR);
77 echo "SNMP::ERRNO_MULTIPLE_SET_QUERIES\n";
80 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries);
89 var_dump($session->getErrno() == SNMP::ERRNO_MULTIPLE_SET_QUERIES);
95 var_dump($session->getErrno() == SNMP::ERRNO_MULTIPLE_SET_QUERIES);
102 SNMP::ERRNO_NOERROR
106 SNMP::ERRNO_TIMEOUT
110 SNMP::ERRNO_ERROR_IN_REPLY
114 SNMP::ERRNO_GENERIC
119 SNMP::ERRNO_OID_PARSING_ERROR
136 SNMP::ERRNO_MULTIPLE_SET_QUERIES