/PHP-8.4/ext/snmp/tests/ |
H A D | snmp2_set.phpt | 20 echo "No type & no value (timeout & retries instead)\n"; 28 echo "No value (timeout instead), retries instead of timeout\n"; 38 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 41 $oldvalue2 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 45 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries); 47 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 49 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries); 51 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1)); 56 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 169 No type & no value (timeout & retries instead) [all …]
|
H A D | snmpset.phpt | 20 echo "No type & no value (timeout & retries instead)\n"; 22 $z = snmpset($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0', $timeout, $retries); 28 echo "No value (timeout instead), retries instead of timeout\n"; 38 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 41 $oldvalue2 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 45 $z = snmpset($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries); 47 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 48 $z = snmpset($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries); 50 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1)); 163 No type & no value (timeout & retries instead) [all …]
|
H A D | snmpget.phpt | 21 echo "Single OID, default timeout and retries\n"; 23 echo "Single OID, default retries\n"; 26 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 28 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries)); 30 …get($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeout, $retries)); 34 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1..1.1.0', $timeout, $retries)); 36 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1...1.1.0'), $timeout, $retries)); 42 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.110', $timeout, $retries)); 44 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1.1.1.110'), $timeout, $retries)); 52 Single OID, default timeout and retries [all …]
|
H A D | snmp3.phpt | 17 // string object_id [, int timeout [, int retries]]); 22 …hostname, $user_noauth, 'noAuthNoPriv', '', '', '', '', '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 37 …me, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 40 …ame, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1.1.0', $timeout, $retries); 46 …ame, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1.1.0', $timeout, $retries); 52 …ostname, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1', $timeout, $retries); 59 …name, $username, 'authNoPriv', 'MD5', $auth_pass, 'AES', '', '.1.3.6.1.2.1.1', $timeout, $retries); 67 …t($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, $timeout, $retries); 70 …ser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, 's', $newvalue1, $timeout, $retries); 72 …ser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, $timeout, $retries) === $newvalue1)); [all …]
|
H A D | snmp2_set-nomib.phpt | 24 … snmp2_set($hostname, $communityWrite, '.1.3.6.777.888.999.444.0', 's', 'bbb', $timeout, $retries); 28 …nmp2_set($hostname, $communityWrite, '.1.3.6...777.888.999.444.0', 's', 'bbb', $timeout, $retries); 33 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 37 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries); 39 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 40 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries); 42 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
|
H A D | snmpset-nomib.phpt | 24 $z = snmpset($hostname, $communityWrite, '.1.3.6.777.888.999.444.0', 's', 'bbb', $timeout, $retries… 28 … snmpset($hostname, $communityWrite, '.1.3...6.777.888.999.444.0', 's', 'bbb', $timeout, $retries); 34 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 38 $z = snmpset($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries); 40 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 41 $z = snmpset($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries); 43 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
|
H A D | snmp2_get.phpt | 23 var_dump(snmp2_get($hostname, $community, array(), $timeout, $retries)); 30 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 32 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries)); 34 …get($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeout, $retries)); 38 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2..1.1.1.0', $timeout, $retries)); 40 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1...1.1.0'), $timeout, $retries)); 42 …t($hostname, $community, array('.1.3.6.1.2.1...1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeout, $retries)); 46 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.110', $timeout, $retries)); 48 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.110'), $timeout, $retries)); 50 …t($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.220'), $timeout, $retries));
|
H A D | snmp2_walk.phpt | 22 $return = snmp2_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 30 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 35 $return = snmpwalk($hostname, $community, '', $timeout, $retries); 41 $return = snmpwalk($hostname, $community, '.1.3.6...1', $timeout, $retries); 45 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries); 49 …urn = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retries); 51 …urn = snmp2_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retries); 55 $return = snmp2_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
|
H A D | snmpwalk.phpt | 22 $return = snmpwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 30 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 35 $return = snmpwalk($hostname, $community, '', $timeout, $retries); 41 $return = snmpwalk($hostname, $community, '.1.3.6...1', $timeout, $retries); 45 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries); 49 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retries… 51 $return = snmpwalk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retries… 55 $return = snmpwalk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
|
H A D | snmp_getvalue.phpt | 22 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 26 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 30 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries); 37 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries); 44 ….2.1.88.1.4.2.1.3.6.95.115.110.109.112.100.95.108.105.110.107.68.111.119.110', $timeout, $retries); 51 ….2.1.88.1.4.2.1.3.6.95.115.110.109.112.100.95.108.105.110.107.68.111.119.110', $timeout, $retries); 60 var_dump(count(snmp2_walk($hostname, $community, '.', $timeout, $retries)));
|
H A D | snmp2_real_walk.phpt | 21 $return = snmp2_real_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 28 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 36 …rn = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries); 40 … snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retries); 42 … snmp2_real_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retries); 46 …rn = snmp2_real_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
|
H A D | snmprealwalk.phpt | 21 $return = snmprealwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 28 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 36 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries… 40 …n = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retries); 42 …n = snmprealwalk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retries); 46 $return = snmprealwalk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries…
|
H A D | snmp2_getnext.phpt | 20 var_dump(snmp2_getnext($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 22 var_dump(snmp2_getnext($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries)); 24 …ext($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.6.0'), $timeout, $retries));
|
H A D | snmpgetnext.phpt | 20 var_dump(snmpgetnext($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 22 var_dump(snmpgetnext($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries)); 24 …ext($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.6.0'), $timeout, $retries));
|
H A D | snmp-object.phpt | 22 $session = new SNMP(SNMP::VERSION_1, $hostname, $community, $timeout, $retries); 30 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 36 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 45 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 54 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 63 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 72 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 112 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries); 120 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries); 136 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries); [all …]
|
H A D | snmp-object-errno-errstr.phpt | 23 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 30 $session = new SNMP(SNMP::VERSION_2c, $hostname, 'timeout_community_432', $timeout, $retries); 38 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 45 $session = new SNMP(SNMP::VERSION_3, $hostname, 'somebogususer', $timeout, $retries); 55 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 61 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 67 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 73 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries); 83 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries);
|
H A D | generic_timeout_error.phpt | 19 var_dump(snmpget($hostname, 'timeout_community_432', '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 20 …dump(snmpget($hostname, 'timeout_community_432', array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries));
|
H A D | snmp-object-properties.phpt | 23 $session = new SNMP(SNMP::VERSION_1, $hostname, $community, $timeout, $retries); 90 ["retries"]=> 115 ["retries"]=> 140 ["retries"]=> 170 ["retries"]=>
|
H A D | snmp-object-error.phpt | 42 $session = new SNMP(SNMP::VERSION_3, $hostname, $user_noauth, $timeout, $retries); 59 $session = new SNMP(SNMP::VERSION_3, $hostname, $user_noauth, $timeout, $retries); 76 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 94 SNMP::__construct(): Argument #5 ($retries) must be of type int, string given
|
H A D | snmp3-error.phpt | 20 // string object_id [, int timeout [, int retries]]); 49 …ser', 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 51 …riv', 'MD5', $auth_pass, 'AES', $priv_pass, '.1.3.6.777...7.5.3', 's', 'ttt', $timeout, $retries)); 54 … 'MD5', $auth_pass, 'AES', $priv_pass, '.1.3.6.777.7.5.3', array('s'), 'yyy', $timeout, $retries));
|
H A D | skipif.inc | 7 //string $object_id [, int $timeout [, int $retries ]] )
|
H A D | wrong_hostname.phpt | 19 var_dump(snmpget('192.168..6.1', 'community', '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
|
H A D | bug60749.phpt | 22 $session = new SNMP(SNMP::VERSION_1, "$hostname:$port", $community, $timeout, $retries);
|
/PHP-8.4/ext/snmp/ |
H A D | snmp.stub.php | 113 …stname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 115 …stname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 117 …ame, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|fals… argument 137 …stname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 139 …stname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 151 array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 157 array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 163 array|string $object_id, int $timeout = -1, int $retries = -1): array|false {} argument 169 array|string $object_id, int $timeout = -1, int $retries = -1): array|false {} argument 176 int $timeout = -1, int $retries = -1): bool {} argument [all …]
|
H A D | snmp_arginfo.h | 9 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 19 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 33 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 71 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 86 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 103 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1") 122 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "-1")
|