PageRenderTime 61ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/phpstubs/phpruntime/snmp.php

https://github.com/jkonieczny/netbeans-test
PHP | 361 lines | 43 code | 29 blank | 289 comment | 0 complexity | 9c0be6b08fbb32b91a1b560010419897 MD5 | raw file
  1. <?php
  2. // Start of snmp v.
  3. /**
  4. * (PHP 4, PHP 5)<br/>
  5. * Fetch an <acronym>SNMP</acronym> object
  6. * @link http://php.net/manual/en/function.snmpget.php
  7. * @param string $hostname <p>
  8. * The SNMP agent.
  9. * </p>
  10. * @param string $community <p>
  11. * The read community.
  12. * </p>
  13. * @param string $object_id <p>
  14. * The SNMP object.
  15. * </p>
  16. * @param int $timeout [optional] <p>
  17. * The number of microseconds until the first timeout.
  18. * </p>
  19. * @param int $retries [optional] <p>
  20. * </p>
  21. * @return string SNMP object value on success or false on error.
  22. */
  23. function snmpget ($hostname, $community, $object_id, $timeout = null, $retries = null) {}
  24. /**
  25. * (PHP 5)<br/>
  26. * Fetch a SNMP object
  27. * @link http://php.net/manual/en/function.snmpgetnext.php
  28. * @param string $host
  29. * @param string $community
  30. * @param string $object_id
  31. * @param int $timeout [optional]
  32. * @param int $retries [optional]
  33. * @return string
  34. */
  35. function snmpgetnext ($host, $community, $object_id, $timeout = null, $retries = null) {}
  36. /**
  37. * (PHP 4, PHP 5)<br/>
  38. * Fetch all the <acronym>SNMP</acronym> objects from an agent
  39. * @link http://php.net/manual/en/function.snmpwalk.php
  40. * @param string $hostname <p>
  41. * The SNMP agent.
  42. * </p>
  43. * @param string $community <p>
  44. * The read community.
  45. * </p>
  46. * @param string $object_id <p>
  47. * If &null;, object_id is taken as the root of
  48. * the SNMP objects tree and all objects under that tree are returned as
  49. * an array.
  50. * </p>
  51. * <p>
  52. * If object_id is specified, all the SNMP objects
  53. * below that object_id are returned.
  54. * </p>
  55. * @param int $timeout [optional] <p>
  56. * The number of microseconds until the first timeout.
  57. * </p>
  58. * @param int $retries [optional] <p>
  59. * </p>
  60. * @return array an array of SNMP object values starting from the
  61. * object_id as root or false on error.
  62. */
  63. function snmpwalk ($hostname, $community, $object_id, $timeout = null, $retries = null) {}
  64. /**
  65. * (PHP 4, PHP 5)<br/>
  66. * Return all objects including their respective object ID within the specified one
  67. * @link http://php.net/manual/en/function.snmprealwalk.php
  68. * @param string $host
  69. * @param string $community
  70. * @param string $object_id
  71. * @param int $timeout [optional]
  72. * @param int $retries [optional]
  73. * @return array
  74. */
  75. function snmprealwalk ($host, $community, $object_id, $timeout = null, $retries = null) {}
  76. /**
  77. * (PHP 4, PHP 5)<br/>
  78. * Query for a tree of information about a network entity
  79. * @link http://php.net/manual/en/function.snmpwalkoid.php
  80. * @param string $hostname <p>
  81. * The SNMP agent.
  82. * </p>
  83. * @param string $community <p>
  84. * The read community.
  85. * </p>
  86. * @param string $object_id <p>
  87. * If &null;, object_id is taken as the root of
  88. * the SNMP objects tree and all objects under that tree are returned as
  89. * an array.
  90. * </p>
  91. * <p>
  92. * If object_id is specified, all the SNMP objects
  93. * below that object_id are returned.
  94. * </p>
  95. * @param int $timeout [optional] <p>
  96. * The number of microseconds until the first timeout.
  97. * </p>
  98. * @param int $retries [optional] <p>
  99. * </p>
  100. * @return array an associative array with object ids and their respective
  101. * object value starting from the object_id
  102. * as root or false on error.
  103. */
  104. function snmpwalkoid ($hostname, $community, $object_id, $timeout = null, $retries = null) {}
  105. /**
  106. * (PHP 4, PHP 5)<br/>
  107. * Fetches the current value of the UCD library's quick_print setting
  108. * @link http://php.net/manual/en/function.snmp-get-quick-print.php
  109. * @param $d
  110. * @return bool true if quick_print is on, false otherwise.
  111. */
  112. function snmp_get_quick_print ($d) {}
  113. /**
  114. * (PHP 4, PHP 5)<br/>
  115. * Set the value of <parameter>quick_print</parameter> within the UCD <acronym>SNMP</acronym> library
  116. * @link http://php.net/manual/en/function.snmp-set-quick-print.php
  117. * @param bool $quick_print <p>
  118. * </p>
  119. * @return void
  120. */
  121. function snmp_set_quick_print ($quick_print) {}
  122. /**
  123. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  124. * Return all values that are enums with their enum value instead of the raw integer
  125. * @link http://php.net/manual/en/function.snmp-set-enum-print.php
  126. * @param int $enum_print
  127. * @return void
  128. */
  129. function snmp_set_enum_print ($enum_print) {}
  130. /**
  131. * (PHP 5 &gt;= 5.2.0)<br/>
  132. * Set the OID output format
  133. * @link http://php.net/manual/en/function.snmp-set-oid-output-format.php
  134. * @param int $oid_format <p>
  135. * Set it to SNMP_OID_OUTPUT_FULL if you want a full
  136. * output, SNMP_OID_OUTPUT_NUMERIC otherwise.
  137. * </p>
  138. * @return void
  139. */
  140. function snmp_set_oid_output_format ($oid_format) {}
  141. /**
  142. * (PHP 4 &gt;= 4.3.0, PHP 5)<br/>
  143. * Return all objects including their respective object id within the specified one
  144. * @link http://php.net/manual/en/function.snmp-set-oid-numeric-print.php
  145. * @param int $oid_numeric_print
  146. * @return void
  147. */
  148. function snmp_set_oid_numeric_print ($oid_numeric_print) {}
  149. /**
  150. * (PHP 4, PHP 5)<br/>
  151. * Set an <acronym>SNMP</acronym> object
  152. * @link http://php.net/manual/en/function.snmpset.php
  153. * @param string $hostname <p>
  154. * The SNMP agent.
  155. * </p>
  156. * @param string $community <p>
  157. * The write community.
  158. * </p>
  159. * @param string $object_id <p>
  160. * The SNMP object.
  161. * </p>
  162. * @param string $type <p>
  163. * </p>
  164. * @param mixed $value <p>
  165. * </p>
  166. * @param int $timeout [optional] <p>
  167. * The number of microseconds until the first timeout.
  168. * </p>
  169. * @param int $retries [optional] <p>
  170. * </p>
  171. * @return bool Returns true on success or false on failure.
  172. */
  173. function snmpset ($hostname, $community, $object_id, $type, $value, $timeout = null, $retries = null) {}
  174. /**
  175. * @param $host
  176. * @param $community
  177. * @param $object_id
  178. * @param $timeout [optional]
  179. * @param $retries [optional]
  180. */
  181. function snmp2_get ($host, $community, $object_id, $timeout, $retries) {}
  182. /**
  183. * @param $host
  184. * @param $community
  185. * @param $object_id
  186. * @param $timeout [optional]
  187. * @param $retries [optional]
  188. */
  189. function snmp2_getnext ($host, $community, $object_id, $timeout, $retries) {}
  190. /**
  191. * @param $host
  192. * @param $community
  193. * @param $object_id
  194. * @param $timeout [optional]
  195. * @param $retries [optional]
  196. */
  197. function snmp2_walk ($host, $community, $object_id, $timeout, $retries) {}
  198. /**
  199. * @param $host
  200. * @param $community
  201. * @param $object_id
  202. * @param $timeout [optional]
  203. * @param $retries [optional]
  204. */
  205. function snmp2_real_walk ($host, $community, $object_id, $timeout, $retries) {}
  206. /**
  207. * @param $host
  208. * @param $community
  209. * @param $object_id
  210. * @param $type
  211. * @param $value
  212. * @param $timeout [optional]
  213. * @param $retries [optional]
  214. */
  215. function snmp2_set ($host, $community, $object_id, $type, $value, $timeout, $retries) {}
  216. /**
  217. * @param $host
  218. * @param $sec_name
  219. * @param $sec_level
  220. * @param $auth_protocol
  221. * @param $auth_passphrase
  222. * @param $priv_protocol
  223. * @param $priv_passphrase
  224. * @param $object_id
  225. * @param $timeout [optional]
  226. * @param $retries [optional]
  227. */
  228. function snmp3_get ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout, $retries) {}
  229. /**
  230. * @param $host
  231. * @param $sec_name
  232. * @param $sec_level
  233. * @param $auth_protocol
  234. * @param $auth_passphrase
  235. * @param $priv_protocol
  236. * @param $priv_passphrase
  237. * @param $object_id
  238. * @param $timeout [optional]
  239. * @param $retries [optional]
  240. */
  241. function snmp3_getnext ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout, $retries) {}
  242. /**
  243. * @param $host
  244. * @param $sec_name
  245. * @param $sec_level
  246. * @param $auth_protocol
  247. * @param $auth_passphrase
  248. * @param $priv_protocol
  249. * @param $priv_passphrase
  250. * @param $object_id
  251. * @param $timeout [optional]
  252. * @param $retries [optional]
  253. */
  254. function snmp3_walk ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout, $retries) {}
  255. /**
  256. * @param $host
  257. * @param $sec_name
  258. * @param $sec_level
  259. * @param $auth_protocol
  260. * @param $auth_passphrase
  261. * @param $priv_protocol
  262. * @param $priv_passphrase
  263. * @param $object_id
  264. * @param $timeout [optional]
  265. * @param $retries [optional]
  266. */
  267. function snmp3_real_walk ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $timeout, $retries) {}
  268. /**
  269. * @param $host
  270. * @param $sec_name
  271. * @param $sec_level
  272. * @param $auth_protocol
  273. * @param $auth_passphrase
  274. * @param $priv_protocol
  275. * @param $priv_passphrase
  276. * @param $object_id
  277. * @param $type
  278. * @param $value
  279. * @param $timeout [optional]
  280. * @param $retries [optional]
  281. */
  282. function snmp3_set ($host, $sec_name, $sec_level, $auth_protocol, $auth_passphrase, $priv_protocol, $priv_passphrase, $object_id, $type, $value, $timeout, $retries) {}
  283. /**
  284. * (PHP 4 &gt;= 4.3.3, PHP 5)<br/>
  285. * Specify the method how the SNMP values will be returned
  286. * @link http://php.net/manual/en/function.snmp-set-valueretrieval.php
  287. * @param int $method
  288. * @return void
  289. */
  290. function snmp_set_valueretrieval ($method) {}
  291. /**
  292. * (PHP 4 &gt;= 4.3.3, PHP 5)<br/>
  293. * Return the method how the SNMP values will be returned
  294. * @link http://php.net/manual/en/function.snmp-get-valueretrieval.php
  295. * @return int
  296. */
  297. function snmp_get_valueretrieval () {}
  298. /**
  299. * (PHP 5)<br/>
  300. * Reads and parses a MIB file into the active MIB tree
  301. * @link http://php.net/manual/en/function.snmp-read-mib.php
  302. * @param string $filename
  303. * @return bool
  304. */
  305. function snmp_read_mib ($filename) {}
  306. /**
  307. * As of 5.2.0
  308. * @link http://php.net/manual/en/snmp.constants.php
  309. */
  310. define ('SNMP_OID_OUTPUT_FULL', 3);
  311. /**
  312. * As of 5.2.0
  313. * @link http://php.net/manual/en/snmp.constants.php
  314. */
  315. define ('SNMP_OID_OUTPUT_NUMERIC', 4);
  316. define ('SNMP_VALUE_LIBRARY', 0);
  317. define ('SNMP_VALUE_PLAIN', 1);
  318. define ('SNMP_VALUE_OBJECT', 2);
  319. define ('SNMP_BIT_STR', 3);
  320. define ('SNMP_OCTET_STR', 4);
  321. define ('SNMP_OPAQUE', 68);
  322. define ('SNMP_NULL', 5);
  323. define ('SNMP_OBJECT_ID', 6);
  324. define ('SNMP_IPADDRESS', 64);
  325. define ('SNMP_COUNTER', 66);
  326. define ('SNMP_UNSIGNED', 66);
  327. define ('SNMP_TIMETICKS', 67);
  328. define ('SNMP_UINTEGER', 71);
  329. define ('SNMP_INTEGER', 2);
  330. define ('SNMP_COUNTER64', 70);
  331. // End of snmp v.
  332. ?>