/PHP-8.0/ext/snmp/tests/ |
H A D | snmp2_set.phpt | 18 echo "No type & no value (timeout & retries instead)\n"; 26 echo "No value (timeout instead), retries instead of timeout\n"; 36 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 39 $oldvalue2 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 43 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries); 45 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 47 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries); 49 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1)); 54 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 167 No type & no value (timeout & retries instead) [all …]
|
H A D | snmpset.phpt | 18 echo "No type & no value (timeout & retries instead)\n"; 20 $z = snmpset($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0', $timeout, $retries); 26 echo "No value (timeout instead), retries instead of timeout\n"; 36 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 39 $oldvalue2 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 43 $z = snmpset($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries); 45 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 46 $z = snmpset($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries); 48 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1)); 161 No type & no value (timeout & retries instead) [all …]
|
H A D | snmpget.phpt | 18 echo "Single OID, default timeout and retries\n"; 20 echo "Single OID, default retries\n"; 23 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 25 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries)); 27 …get($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeout, $retries)); 31 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1..1.1.0', $timeout, $retries)); 33 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1...1.1.0'), $timeout, $retries)); 39 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.110', $timeout, $retries)); 41 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1.1.1.110'), $timeout, $retries)); 49 Single OID, default timeout and retries [all …]
|
H A D | snmp3.phpt | 15 // string object_id [, int timeout [, int retries]]); 20 …hostname, $user_noauth, 'noAuthNoPriv', '', '', '', '', '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 35 …me, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 38 …ame, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1.1.0', $timeout, $retries); 44 …ame, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1.1.0', $timeout, $retries); 50 …ostname, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1', $timeout, $retries); 57 …name, $username, 'authNoPriv', 'MD5', $auth_pass, 'AES', '', '.1.3.6.1.2.1.1', $timeout, $retries); 65 …t($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, $timeout, $retries); 68 …ser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, 's', $newvalue1, $timeout, $retries); 70 …ser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, $timeout, $retries) === $newvalue1)); [all …]
|
H A D | snmp2_set-nomib.phpt | 21 … snmp2_set($hostname, $communityWrite, '.1.3.6.777.888.999.444.0', 's', 'bbb', $timeout, $retries); 25 …nmp2_set($hostname, $communityWrite, '.1.3.6...777.888.999.444.0', 's', 'bbb', $timeout, $retries); 30 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 34 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries); 36 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 37 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries); 39 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
|
H A D | snmpset-nomib.phpt | 21 $z = snmpset($hostname, $communityWrite, '.1.3.6.777.888.999.444.0', 's', 'bbb', $timeout, $retries… 25 … snmpset($hostname, $communityWrite, '.1.3...6.777.888.999.444.0', 's', 'bbb', $timeout, $retries); 31 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries); 35 $z = snmpset($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries); 37 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1)); 38 $z = snmpset($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries); 40 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
|
H A D | snmp2_get.phpt | 20 var_dump(snmp2_get($hostname, $community, array(), $timeout, $retries)); 27 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 29 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries)); 31 …get($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeout, $retries)); 35 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2..1.1.1.0', $timeout, $retries)); 37 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1...1.1.0'), $timeout, $retries)); 39 …t($hostname, $community, array('.1.3.6.1.2.1...1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeout, $retries)); 43 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.110', $timeout, $retries)); 45 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.110'), $timeout, $retries)); 47 …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 | snmp_getvalue.phpt | 18 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 22 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 26 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries); 33 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries); 40 ….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); 47 ….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); 56 var_dump(count(snmp2_walk($hostname, $community, '.', $timeout, $retries)));
|
H A D | snmp2_walk.phpt | 19 $return = snmp2_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 27 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 32 $return = snmpwalk($hostname, $community, '', $timeout, $retries); 38 $return = snmpwalk($hostname, $community, '.1.3.6...1', $timeout, $retries); 42 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries); 46 …urn = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retries); 48 …urn = snmp2_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retries); 52 $return = snmp2_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
|
H A D | snmpwalk.phpt | 19 $return = snmpwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 27 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 32 $return = snmpwalk($hostname, $community, '', $timeout, $retries); 38 $return = snmpwalk($hostname, $community, '.1.3.6...1', $timeout, $retries); 42 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries); 46 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retries… 48 $return = snmpwalk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retries… 52 $return = snmpwalk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
|
H A D | snmp2_real_walk.phpt | 19 $return = snmp2_real_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 26 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 34 …rn = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries); 38 … snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retries); 40 … snmp2_real_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retries); 44 …rn = snmp2_real_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
|
H A D | snmprealwalk.phpt | 19 $return = snmprealwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries); 26 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries); 34 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries… 38 …n = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retries); 40 …n = snmprealwalk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retries); 44 $return = snmprealwalk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries…
|
H A D | snmp2_getnext.phpt | 18 var_dump(snmp2_getnext($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 20 var_dump(snmp2_getnext($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries)); 22 …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 | 18 var_dump(snmpgetnext($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 20 var_dump(snmpgetnext($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries)); 22 …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 | 20 $session = new SNMP(SNMP::VERSION_1, $hostname, $community, $timeout, $retries); 28 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 34 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 43 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 52 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 61 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 70 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 110 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries); 118 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries); 134 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries); [all …]
|
H A D | snmp-object-errno-errstr.phpt | 20 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 27 $session = new SNMP(SNMP::VERSION_2c, $hostname, 'timeout_community_432', $timeout, $retries); 35 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 42 $session = new SNMP(SNMP::VERSION_3, $hostname, 'somebogususer', $timeout, $retries); 52 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 58 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 64 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 70 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries); 80 $session = new SNMP(SNMP::VERSION_3, $hostname, $rwuser, $timeout, $retries);
|
H A D | generic_timeout_error.phpt | 17 var_dump(snmpget($hostname, 'timeout_community_432', '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 18 …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 | 21 $session = new SNMP(SNMP::VERSION_1, $hostname, $community, $timeout, $retries); 88 ["retries"]=> 113 ["retries"]=> 138 ["retries"]=> 166 ["retries"]=>
|
H A D | snmp-object-error.phpt | 39 $session = new SNMP(SNMP::VERSION_3, $hostname, $user_noauth, $timeout, $retries); 56 $session = new SNMP(SNMP::VERSION_3, $hostname, $user_noauth, $timeout, $retries); 73 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries); 91 SNMP::__construct(): Argument #5 ($retries) must be of type int, string given
|
H A D | snmp3-error.phpt | 17 // string object_id [, int timeout [, int retries]]); 46 …ser', 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, '.1.3.6.1.2.1.1.1.0', $timeout, $retries)); 48 …riv', 'MD5', $auth_pass, 'AES', $priv_pass, '.1.3.6.777...7.5.3', 's', 'ttt', $timeout, $retries)); 51 … 'MD5', $auth_pass, 'AES', $priv_pass, '.1.3.6.777.7.5.3', array('s'), 'yyy', $timeout, $retries));
|
H A D | wrong_hostname.phpt | 17 var_dump(snmpget('192.168..6.1', 'community', '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
|
/PHP-8.0/ext/snmp/ |
H A D | snmp.stub.php | 5 …stname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 7 …stname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 9 …ame, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|fals… argument 11 …ame, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): array|fals… argument 29 …stname, string $community, array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 43 array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 49 array|string $object_id, int $timeout = -1, int $retries = -1): mixed {} argument 55 array|string $object_id, int $timeout = -1, int $retries = -1): array|false {} argument 61 array|string $object_id, int $timeout = -1, int $retries = -1): array|false {} argument 68 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")
|
/PHP-8.0/ext/imap/tests/setup/ |
H A D | skipif.inc | 7 $retries = 0; // don't retry connect on failure 9 $mbox = @imap_open(IMAP_SERVER, IMAP_MAILBOX_USERNAME, IMAP_MAILBOX_PASSWORD, $options, $retries);
|
/PHP-8.0/ext/standard/tests/mail/ |
H A D | mail_skipif.inc | 19 $retries = 0; // don't retry connect on failure 21 $mbox = @imap_open($mailbox, $username, $password, $options, $retries);
|