Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 25 of 72) sorted by relevance

123

/PHP-8.1/ext/snmp/tests/
H A Dsnmp2_set.phpt22 $z = snmp2_set($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0', $timeout, $retries);
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));
57 var_dump((snmpget($hostname, $communityWrite, $oid2, $timeout, $retries) === $newvalue2));
64 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
[all …]
H A Dsnmpset.phpt22 $z = snmpset($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0', $timeout, $retries);
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));
55 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1));
56 var_dump((snmpget($hostname, $communityWrite, $oid2, $timeout, $retries) === $newvalue2));
59 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
[all …]
H A Dbug60749.phpt2 Bug #60749: SNMP module should not strip non-standard SNMP port from hostname
15 $hostname = "php.net";
16 $ip = gethostbyname($hostname);
18 echo "Could not resolve $hostname properly!\n";
22 $session = new SNMP(SNMP::VERSION_1, "$hostname:$port", $community, $timeout, $retries);
24 if (!str_ends_with($info["hostname"], ":$port")) {
25 echo "'" . $info["hostname"] . "' != '$ip:$port'\n";
H A Dsnmpset-nomib.phpt23 $z = snmpset($hostname, $communityWrite, '.1.3.6.777.888.999.444.0', 's', 'bbb', $timeout, $retries…
27 $z = snmpset($hostname, $communityWrite, '.1.3...6.777.888.999.444.0', 's', 'bbb', $timeout, $retri…
33 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries);
37 $z = snmpset($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries);
39 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1));
40 $z = snmpset($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries);
42 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
H A Dsnmp2_set-nomib.phpt23 $z = snmp2_set($hostname, $communityWrite, '.1.3.6.777.888.999.444.0', 's', 'bbb', $timeout, $retri…
27 $z = snmp2_set($hostname, $communityWrite, '.1.3.6...777.888.999.444.0', 's', 'bbb', $timeout, $ret…
32 $oldvalue1 = snmpget($hostname, $communityWrite, $oid1, $timeout, $retries);
36 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $newvalue1, $timeout, $retries);
38 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $newvalue1));
39 $z = snmp2_set($hostname, $communityWrite, $oid1, 's', $oldvalue1, $timeout, $retries);
41 var_dump((snmpget($hostname, $communityWrite, $oid1, $timeout, $retries) === $oldvalue1));
H A Dsnmp3.phpt22 var_dump(snmp3_get($hostname, $user_noauth, 'noAuthNoPriv', '', '', '', '', '.1.3.6.1.2.1.1.1.0', $…
37 var_dump(snmp3_getnext($hostname, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1…
40 $z = snmp3_walk($hostname, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1.1.0'…
46 $z = snmp3_real_walk($hostname, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1…
52 $z = snmp3_walk($hostname, $username, 'authNoPriv', 'MD5', $auth_pass, '', '', '.1.3.6.1.2.1.1', $t…
59 $z = snmp3_real_walk($hostname, $username, 'authNoPriv', 'MD5', $auth_pass, 'AES', '', '.1.3.6.1.2.…
67 $oldvalue1 = snmp3_get($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1,…
70 $z = snmp3_set($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, 's', $n…
72 var_dump((snmp3_get($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, $t…
73 $z = snmp3_set($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, $oid1, 's', $o…
[all …]
H A Dsnmp3-error.phpt22 var_dump(snmp3_get($hostname, $community, '', '', '', '', '', '.1.3.6.1.2.1.1.1.0'));
27 var_dump(snmp3_get($hostname, $community, 'bugusPriv', '', '', '', '', '.1.3.6.1.2.1.1.1.0'));
32 … var_dump(snmp3_get($hostname, $community, 'authNoPriv', 'TTT', '', '', '', '.1.3.6.1.2.1.1.1.0'));
37 var_dump(snmp3_get($hostname, $community, 'authNoPriv', 'MD5', '', '', '', '.1.3.6.1.2.1.1.1.0'));
38 var_dump(snmp3_get($hostname, $community, 'authNoPriv', 'MD5', 'te', '', '', '.1.3.6.1.2.1.1.1.0'));
41 …var_dump(snmp3_get($hostname, $community, 'authPriv', 'MD5', $auth_pass, 'BBB', '', '.1.3.6.1.2.1.…
46 var_dump(snmp3_get($hostname, $community, 'authPriv', 'MD5', $auth_pass, 'AES', '', '.1.3.6.1.2.1.1…
47 var_dump(snmp3_get($hostname, $community, 'authPriv', 'MD5', $auth_pass, 'AES', 'ty', '.1.3.6.1.2.1…
48 var_dump(snmp3_get($hostname, 'somebogususer', 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, '.…
50 var_dump(snmp3_set($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, '.1.3.6.77…
[all …]
H A Dsnmpget.phpt21 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0'));
23 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout));
25 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
27 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries));
29 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeout…
33 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1..1.1.0', $timeout, $retries));
35 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1...1.1.0'), $timeout, $retries));
37 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1...1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeo…
41 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.110', $timeout, $retries));
43 var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1.1.1.110'), $timeout, $retries));
[all …]
H A Dsnmp2_get.phpt22 var_dump(snmp2_get($hostname, $community, array(), $timeout, $retries));
29 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
31 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries));
33 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.0'), $timeo…
37 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2..1.1.1.0', $timeout, $retries));
39 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1...1.1.0'), $timeout, $retries));
41 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1...1.1.0', '.1.3.6.1.2.1.1.3.0'), $tim…
45 var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.110', $timeout, $retries));
47 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.110'), $timeout, $retries));
49 var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.3.220'), $tim…
H A Dsnmpwalk.phpt21 $return = snmpwalk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries);
29 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries);
34 $return = snmpwalk($hostname, $community, '', $timeout, $retries);
40 $return = snmpwalk($hostname, $community, '.1.3.6...1', $timeout, $retries);
44 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries);
48 $return = snmpwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retries…
50 $return = snmpwalk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retries…
54 $return = snmpwalk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
H A Dsnmp2_walk.phpt21 $return = snmp2_walk($hostname, $community, '.1.3.6.1.2.1.1', $timeout, $retries);
29 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1'), $timeout, $retries);
34 $return = snmpwalk($hostname, $community, '', $timeout, $retries);
40 $return = snmpwalk($hostname, $community, '.1.3.6...1', $timeout, $retries);
44 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retries);
48 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retri…
50 $return = snmp2_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retri…
54 $return = snmp2_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
H A Dsnmp_getvalue.phpt20 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
24 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries));
28 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries);
35 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, $retries);
42 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.88.1.4.2.1.3.6.95.115.110.109.112.100.95.108.105.…
49 $z = snmpget($hostname, $community, '.1.3.6.1.2.1.88.1.4.2.1.3.6.95.115.110.109.112.100.95.108.105.…
58 var_dump(count(snmp2_walk($hostname, $community, '.', $timeout, $retries)));
H A Dsnmprealwalk.phpt21 $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 $return = snmprealwalk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $ret…
42 $return = snmprealwalk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $ret…
46 $return = snmprealwalk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries…
H A Dsnmp2_real_walk.phpt21 $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 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6'), $timeout, $retr…
40 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $…
42 $return = snmp2_real_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $…
46 $return = snmp2_real_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retr…
H A Dsnmp-object-error.phpt20 var_dump(new SNMP(SNMP::VERSION_1, $hostname));
25 var_dump(new SNMP(SNMP::VERSION_1, $hostname, $community, ''));
30 var_dump(new SNMP(SNMP::VERSION_1, $hostname, $community, $timeout, ''));
35 var_dump(new SNMP(7, $hostname, $community));
41 $session = new SNMP(SNMP::VERSION_3, $hostname, $user_noauth, $timeout, $retries);
58 $session = new SNMP(SNMP::VERSION_3, $hostname, $user_noauth, $timeout, $retries);
75 $session = new SNMP(SNMP::VERSION_2c, $hostname, $community, $timeout, $retries);
H A Dsnmp2_getnext.phpt20 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 var_dump(snmp2_getnext($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2.1.1.6.0'), $t…
/PHP-8.1/ext/standard/tests/strings/
H A Ddirname_variation.phpt20 "hostname:/home/user/bar.tar",
21 "hostname:/home/user/tbar.gz/",
22 "hostname:/home/user/My Pics.gz",
23 "hostname:/home/user/My Pics.gz/",
24 "hostname:/home/user/My Pics/",
25 "hostname:/home/user/My Pics",
80 string\(19\) "hostname:(\\|\/)home(\\|\/)user"
83 string\(19\) "hostname:(\\|\/)home(\\|\/)user"
86 string\(19\) "hostname:(\\|\/)home(\\|\/)user"
89 string\(19\) "hostname:(\\|\/)home(\\|\/)user"
[all …]
H A Dbasename_variation.phpt18 array("hostname:/home/usr/bar.tar"),
19 array("hostname:/home/user/bar.tar", "home"),
20 array("hostname:/home/user/tbar.gz", "bar.gz"),
21 array("hostname:/home/user/tbar.gz", "/bar.gz"),
22 array("hostname:/home/user/tbar.gz", "/bar.gz/"),
23 array("hostname:/home/user/tbar.gz/", "/bar.gz/"),
24 array("hostname:/home/user/tbar.gz/", "/bar.gz/"),
28 array("hostname:/home/user/My Pics.gz/", ".gz"),
29 array("hostname:/home/user/My Pics.gz/"),
30 array("hostname:/home/user/My Pics.gz/", ' '),
[all …]
/PHP-8.1/ext/snmp/
H A Dsnmp.stub.php5 function snmpget(string $hostname, string $community, array|string $object_id, int $timeout = -1, i… argument
7 function snmpgetnext(string $hostname, string $community, array|string $object_id, int $timeout = -… argument
9 function snmpwalk(string $hostname, string $community, array|string $object_id, int $timeout = -1, … argument
11 function snmprealwalk(string $hostname, string $community, array|string $object_id, int $timeout = … argument
29 function snmp2_get(string $hostname, string $community, array|string $object_id, int $timeout = -1,… argument
40 string $hostname, string $security_name, string $security_level, argument
46 string $hostname, string $security_name, string $security_level, argument
52 string $hostname, string $security_name, string $security_level, argument
58 string $hostname, string $security_name, string $security_level, argument
64 string $hostname, string $security_name, string $security_level, argument
[all …]
/PHP-8.1/ext/standard/tests/network/
H A Dfsockopen_variation1.phpt16 echo "\nCalling fsockopen() without a protocol in the hostname string:\n";
17 $hostname = '127.0.0.1';
18 $client = fsockopen($hostname, $port);
23 $address = $hostname . ':' . $port;
33 Calling fsockopen() without a protocol in the hostname string:
H A Dfsockopen_variation2.phpt6 $hostname = 'udp://127.0.0.1';
10 $server = stream_socket_server($hostname . ':' . $port, $errno, $errstr, STREAM_SERVER_BIND);
13 $client = fsockopen($hostname, $port);
22 $address = $hostname . ':' . $port;
H A Dfsockopen_basic.phpt19 $hostname = 'tcp://127.0.0.1'; // loopback address
25 $client = fsockopen($hostname, $port, $errno, $errstr, $timeout);
30 $second_client = fsockopen($hostname, $port);
35 $address = $hostname . ':' . $port;
/PHP-8.1/ext/standard/
H A Dfsock.c45 char *hostname = NULL; in php_fsockopen_stream() local
69 hostname_len = spprintf(&hostname, 0, "%s:" ZEND_LONG_FMT, host, port); in php_fsockopen_stream()
72 hostname = host; in php_fsockopen_stream()
85 stream = php_stream_xport_create(hostname, hostname_len, REPORT_ERRORS, in php_fsockopen_stream()
89 efree(hostname); in php_fsockopen_stream()
/PHP-8.1/ext/standard/tests/file/
H A Dbasename.phpt71 array("hostname:/home/usr/bar.tar"),
72 array("hostname:/home/user/bar.tar", "home"),
73 array("hostname:/home/user/tbar.gz", "bar.gz"),
74 array("hostname:/home/user/tbar.gz", "/bar.gz"),
75 array("hostname:/home/user/tbar.gz", "/bar.gz/"),
76 array("hostname:/home/user/tbar.gz/", "/bar.gz/"),
77 array("hostname:/home/user/tbar.gz/", "/bar.gz/"),
81 array("hostname:/home/user/My Pics.gz/", ".gz"),
82 array("hostname:/home/user/My Pics.gz/"),
83 array("hostname:/home/user/My Pics.gz/", ' '),
[all …]
H A Dbasename_variation1.phpt23 "hostname:",
177 basename for path hostname:foo is:
178 string(12) "hostname:foo"
179 basename for path hostname:foo/ is:
180 string(12) "hostname:foo"
181 basename for path hostname:foo\ is:
182 string(13) "hostname:foo\"
184 string(16) "hostname:foo.bar"
186 string(16) "hostname:foo.bar"
188 string(17) "hostname:foo.bar\"
[all …]

Completed in 49 milliseconds

123