Home
last modified time | relevance | path

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

123

/php-src/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 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 Dsnmpset-nomib.phpt24 $z = snmpset($hostname, $communityWrite, '.1.3.6.777.888.999.444.0', 's', 'bbb', $timeout, $retries…
28 $z = snmpset($hostname, $communityWrite, '.1.3...6.777.888.999.444.0', 's', 'bbb', $timeout, $retri…
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 Dsnmp2_set-nomib.phpt24 $z = snmp2_set($hostname, $communityWrite, '.1.3.6.777.888.999.444.0', 's', 'bbb', $timeout, $retri…
28 $z = snmp2_set($hostname, $communityWrite, '.1.3.6...777.888.999.444.0', 's', 'bbb', $timeout, $ret…
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 Dsnmp3-error.phpt23 var_dump(snmp3_get($hostname, $community, '', '', '', '', '', '.1.3.6.1.2.1.1.1.0'));
28 var_dump(snmp3_get($hostname, $community, 'bugusPriv', '', '', '', '', '.1.3.6.1.2.1.1.1.0'));
33 … var_dump(snmp3_get($hostname, $community, 'authNoPriv', 'TTT', '', '', '', '.1.3.6.1.2.1.1.1.0'));
38 var_dump(snmp3_get($hostname, $community, 'authNoPriv', 'MD5', '', '', '', '.1.3.6.1.2.1.1.1.0'));
39 var_dump(snmp3_get($hostname, $community, 'authNoPriv', 'MD5', 'te', '', '', '.1.3.6.1.2.1.1.1.0'));
42 …var_dump(snmp3_get($hostname, $community, 'authPriv', 'MD5', $auth_pass, 'BBB', '', '.1.3.6.1.2.1.…
47 var_dump(snmp3_get($hostname, $community, 'authPriv', 'MD5', $auth_pass, 'AES', '', '.1.3.6.1.2.1.1…
48 var_dump(snmp3_get($hostname, $community, 'authPriv', 'MD5', $auth_pass, 'AES', 'ty', '.1.3.6.1.2.1…
49 var_dump(snmp3_get($hostname, 'somebogususer', 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, '.…
51 var_dump(snmp3_set($hostname, $rwuser, 'authPriv', 'MD5', $auth_pass, 'AES', $priv_pass, '.1.3.6.77…
[all …]
H A Dsnmpget.phpt22 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0'));
24 var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout));
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 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…
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));
38 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…
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));
[all …]
H A Dsnmp2_get.phpt23 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 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…
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 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…
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 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.phpt22 $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 Dsnmp2_walk.phpt22 $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 $return = snmp2_walk($hostname, $community, array('.1.3.6.1.2.1.1', '.1.3.6...1'), $timeout, $retri…
51 $return = snmp2_walk($hostname, $community, array('.1.3.6...1', '.1.3.6.1.2.1.1'), $timeout, $retri…
55 $return = snmp2_walk($hostname, $community, array('.1.3.6.99999.0.99999.111'), $timeout, $retries);
H A Dsnmp_getvalue.phpt22 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 $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.…
51 $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.…
60 var_dump(count(snmp2_walk($hostname, $community, '.', $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 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 Dsnmp-object-error.phpt21 var_dump(new SNMP(SNMP::VERSION_1, $hostname));
26 var_dump(new SNMP(SNMP::VERSION_1, $hostname, $community, ''));
31 var_dump(new SNMP(SNMP::VERSION_1, $hostname, $community, $timeout, ''));
36 var_dump(new SNMP(7, $hostname, $community));
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);
/php-src/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-src/Zend/tests/lazy_objects/rfc/
H A Drfc_example_012.phpt11 private string $hostname,
16 return new Client($this->hostname, $this->credentials);
23 private string $hostname,
29 printf("doSomething() (hostname: %s)\n", $this->hostname);
65 ["hostname":"Client":private]=>
70 doSomething() (hostname: 127.0.0.1)
74 ["hostname":"Client":private]=>
/php-src/ext/snmp/
H A Dsnmp.stub.php113 function snmpget(string $hostname, string $community, array|string $object_id, int $timeout = -1, i… argument
115 function snmpgetnext(string $hostname, string $community, array|string $object_id, int $timeout = -… argument
117 function snmpwalk(string $hostname, string $community, array|string $object_id, int $timeout = -1, … argument
137 function snmp2_get(string $hostname, string $community, array|string $object_id, int $timeout = -1,… argument
139 function snmp2_getnext(string $hostname, string $community, array|string $object_id, int $timeout =… argument
148 string $hostname, string $security_name, string $security_level, argument
154 string $hostname, string $security_name, string $security_level, argument
160 string $hostname, string $security_name, string $security_level, argument
166 string $hostname, string $security_name, string $security_level, argument
172 string $hostname, string $security_name, string $security_level, argument
[all …]
/php-src/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()
78 efree(hostname); in php_fsockopen_stream()
98 stream = php_stream_xport_create(hostname, hostname_len, REPORT_ERRORS, in php_fsockopen_stream()
102 efree(hostname); in php_fsockopen_stream()
/php-src/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-src/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 40 milliseconds

123