Lines Matching refs:SNMP

21 echo "SNMP::ERRNO_NOERROR\n";
22 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries);
24 var_dump($session->getErrno() == SNMP::ERRNO_NOERROR);
28 echo "SNMP::ERRNO_TIMEOUT\n";
29 $session = new SNMP(SNMP::VERSION_2c, $hostname, 'timeout_community_432', $timeout, $retries);
32 var_dump($session->getErrno() == SNMP::ERRNO_TIMEOUT);
36 echo "SNMP::ERRNO_ERROR_IN_REPLY\n";
37 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries);
39 var_dump($session->getErrno() == SNMP::ERRNO_ERROR_IN_REPLY);
43 echo "SNMP::ERRNO_GENERIC\n";
44 $session = new SNMP(SNMP::VERSION_3, $hostname, 'somebogususer', $timeout, $retries);
47 var_dump($session->getErrno() == SNMP::ERRNO_GENERIC);
52 echo "SNMP::ERRNO_OID_PARSING_ERROR\n";
54 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries);
56 var_dump($session->getErrno() == SNMP::ERRNO_OID_PARSING_ERROR);
60 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries);
62 var_dump($session->getErrno() == SNMP::ERRNO_OID_PARSING_ERROR);
66 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries);
68 var_dump($session->getErrno() == SNMP::ERRNO_OID_PARSING_ERROR);
72 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries);
76 var_dump($session->getErrno() == SNMP::ERRNO_OID_PARSING_ERROR);
79 echo "SNMP::ERRNO_MULTIPLE_SET_QUERIES\n";
82 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries);
91 var_dump($session->getErrno() == SNMP::ERRNO_MULTIPLE_SET_QUERIES);
97 var_dump($session->getErrno() == SNMP::ERRNO_MULTIPLE_SET_QUERIES);
104 SNMP::ERRNO_NOERROR
108 SNMP::ERRNO_TIMEOUT
112 SNMP::ERRNO_ERROR_IN_REPLY
116 SNMP::ERRNO_GENERIC
121 SNMP::ERRNO_OID_PARSING_ERROR
138 SNMP::ERRNO_MULTIPLE_SET_QUERIES