structure.xml 73 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <project version="2.0.0a5" title="">
  3. <file path="Timer.php" hash="86d806fd77aec5706196f6fce7972761" package="Default">
  4. <class final="false" abstract="false" namespace="OSS" line="42" package="Default">
  5. <name>Timer</name>
  6. <full_name>\OSS\Timer</full_name>
  7. <extends/>
  8. <docblock line="42">
  9. <description><![CDATA[A class for timing PHP scripts]]></description>
  10. <long-description><![CDATA[]]></long-description>
  11. <tag line="42" name="copyright" description="Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland"/>
  12. <tag line="42" name="author" description="Barry O'Donovan &lt;barry@opensolutions.ie&gt;"/>
  13. </docblock>
  14. <property final="false" static="true" visibility="private" line="45" namespace="OSS" package="Default">
  15. <name>$_start</name>
  16. <default><![CDATA[NULL]]></default>
  17. </property>
  18. <property final="false" static="true" visibility="private" line="48" namespace="OSS" package="Default">
  19. <name>$_time</name>
  20. <default><![CDATA[NULL]]></default>
  21. </property>
  22. <method final="false" abstract="false" static="true" visibility="public" namespace="OSS" line="50" package="Default">
  23. <name>start</name>
  24. <full_name>start</full_name>
  25. </method>
  26. <method final="false" abstract="false" static="true" visibility="public" namespace="OSS" line="55" package="Default">
  27. <name>end</name>
  28. <full_name>end</full_name>
  29. </method>
  30. <method final="false" abstract="false" static="true" visibility="public" namespace="OSS" line="60" package="Default">
  31. <name>time</name>
  32. <full_name>time</full_name>
  33. </method>
  34. </class>
  35. <parse_markers>
  36. <error line="45" code="50018">No DocBlock was found for property $_start</error>
  37. <error line="48" code="50018">No DocBlock was found for property $_time</error>
  38. <error line="50" code="50010">No DocBlock was found for method start()</error>
  39. <error line="55" code="50010">No DocBlock was found for method end()</error>
  40. <error line="60" code="50010">No DocBlock was found for method time()</error>
  41. </parse_markers>
  42. </file>
  43. <file path="SNMP.php" hash="7458ee03e7ab78617a40db280db7fc0f" package="Default">
  44. <include line="41" type="Require" package="Default">
  45. <name/>
  46. </include>
  47. <class final="false" abstract="false" namespace="OSS" line="52" package="Default">
  48. <name>SNMP</name>
  49. <full_name>\OSS\SNMP</full_name>
  50. <extends/>
  51. <docblock line="52">
  52. <description><![CDATA[A class for performing SNMP V2 queries and processing the results.]]></description>
  53. <long-description><![CDATA[]]></long-description>
  54. <tag line="52" name="copyright" description="Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland"/>
  55. <tag line="52" name="author" description="Barry O'Donovan &lt;barry@opensolutions.ie&gt;"/>
  56. </docblock>
  57. <constant namespace="OSS" line="104" package="Default">
  58. <name>OID_OUTPUT_FULL</name>
  59. <full_name>OID_OUTPUT_FULL</full_name>
  60. <value><![CDATA[NULL]]></value>
  61. </constant>
  62. <constant namespace="OSS" line="105" package="Default">
  63. <name>OID_OUTPUT_NUMERIC</name>
  64. <full_name>OID_OUTPUT_NUMERIC</full_name>
  65. <value><![CDATA[NULL]]></value>
  66. </constant>
  67. <constant namespace="OSS" line="111" package="Default">
  68. <name>SNMP_TRUTHVALUE_TRUE</name>
  69. <full_name>SNMP_TRUTHVALUE_TRUE</full_name>
  70. <value><![CDATA[1]]></value>
  71. </constant>
  72. <constant namespace="OSS" line="116" package="Default">
  73. <name>SNMP_TRUTHVALUE_FALSE</name>
  74. <full_name>SNMP_TRUTHVALUE_FALSE</full_name>
  75. <value><![CDATA[2]]></value>
  76. </constant>
  77. <property final="false" static="false" visibility="protected" line="55" namespace="OSS" package="Default">
  78. <name>$_community</name>
  79. <default><![CDATA[]]></default>
  80. </property>
  81. <property final="false" static="false" visibility="protected" line="61" namespace="OSS" package="Default">
  82. <name>$_host</name>
  83. <default><![CDATA[]]></default>
  84. </property>
  85. <property final="false" static="false" visibility="protected" line="67" namespace="OSS" package="Default">
  86. <name>$_timeout</name>
  87. <default><![CDATA[1000000]]></default>
  88. </property>
  89. <property final="false" static="false" visibility="protected" line="73" namespace="OSS" package="Default">
  90. <name>$_retry</name>
  91. <default><![CDATA[5]]></default>
  92. </property>
  93. <property final="false" static="false" visibility="protected" line="80" namespace="OSS" package="Default">
  94. <name>$_lastResult</name>
  95. <default><![CDATA[NULL]]></default>
  96. </property>
  97. <property final="false" static="false" visibility="protected" line="87" namespace="OSS" package="Default">
  98. <name>$_resultCache</name>
  99. <default><![CDATA[]]></default>
  100. </property>
  101. <property final="false" static="false" visibility="protected" line="100" namespace="OSS" package="Default">
  102. <name>$_disableCache</name>
  103. <default><![CDATA[NULL]]></default>
  104. </property>
  105. <property final="false" static="true" visibility="public" line="123" namespace="OSS" package="Default">
  106. <name>$SNMP_TRUTHVALUES</name>
  107. <default><![CDATA[array(NULL => NULL, NULL => NULL)]]></default>
  108. </property>
  109. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="135" package="Default">
  110. <name>__construct</name>
  111. <full_name>__construct</full_name>
  112. <docblock line="135">
  113. <description><![CDATA[The constructor.]]></description>
  114. <long-description><![CDATA[]]></long-description>
  115. <tag line="135" name="param" description="The target host for SNMP queries." type="string" variable="$host">
  116. <type by_reference="false">string</type>
  117. </tag>
  118. <tag line="135" name="param" description="The community to use for SNMP queries." type="string" variable="$community">
  119. <type by_reference="false">string</type>
  120. </tag>
  121. <tag line="135" name="return" description="An instance of $this (for fluent interfaces)" type="\OSS_SNMP">
  122. <type by_reference="false">\OSS_SNMP</type>
  123. </tag>
  124. </docblock>
  125. <argument line="135">
  126. <name>$host</name>
  127. <default><![CDATA['127.0.0.1']]></default>
  128. <type/>
  129. </argument>
  130. <argument line="135">
  131. <name>$community</name>
  132. <default><![CDATA['public']]></default>
  133. <type/>
  134. </argument>
  135. </method>
  136. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="151" package="Default">
  137. <name>realWalk</name>
  138. <full_name>realWalk</full_name>
  139. <docblock line="151">
  140. <description><![CDATA[Proxy to the snmp2_real_walk command]]></description>
  141. <long-description><![CDATA[]]></long-description>
  142. <tag line="151" name="param" description="The OID to walk" type="string" variable="$oid">
  143. <type by_reference="false">string</type>
  144. </tag>
  145. <tag line="151" name="return" description="The results of the walk" type="array">
  146. <type by_reference="false">array</type>
  147. </tag>
  148. </docblock>
  149. <argument line="151">
  150. <name>$oid</name>
  151. <default><![CDATA[]]></default>
  152. <type/>
  153. </argument>
  154. </method>
  155. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="163" package="Default">
  156. <name>get</name>
  157. <full_name>get</full_name>
  158. <docblock line="163">
  159. <description><![CDATA[Get a single SNMP value]]></description>
  160. <long-description><![CDATA[]]></long-description>
  161. <tag line="163" name="param" description="The OID to get" type="string" variable="$oid">
  162. <type by_reference="false">string</type>
  163. </tag>
  164. <tag line="163" name="return" description="The resultant value" type="mixed">
  165. <type by_reference="false">mixed</type>
  166. </tag>
  167. </docblock>
  168. <argument line="163">
  169. <name>$oid</name>
  170. <default><![CDATA[]]></default>
  171. <type/>
  172. </argument>
  173. </method>
  174. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="198" package="Default">
  175. <name>walk1d</name>
  176. <full_name>walk1d</full_name>
  177. <docblock line="198">
  178. <description><![CDATA[Get indexed SNMP values (first degree)]]></description>
  179. <long-description><![CDATA[<p>Walks the SNMP tree returning an array of key => value pairs.</p>
  180. <p>This is a first degree walk and it will throw an exception if there is more that one degree of values.</p>
  181. <p>I.e. the following query with sample results:</p>
  182. <p>walk1d( '.1.0.8802.1.1.2.1.3.7.1.4' )</p>
  183. <pre><code> .1.0.8802.1.1.2.1.3.7.1.4.1 = STRING: "GigabitEthernet1/0/1"
  184. .1.0.8802.1.1.2.1.3.7.1.4.2 = STRING: "GigabitEthernet1/0/2"
  185. .1.0.8802.1.1.2.1.3.7.1.4.3 = STRING: "GigabitEthernet1/0/3"
  186. .....
  187. </code></pre>
  188. <p>would yield an array:</p>
  189. <pre><code> 1 =&gt; GigabitEthernet1/0/1
  190. 2 =&gt; GigabitEthernet1/0/2
  191. 3 =&gt; GigabitEthernet1/0/3
  192. </code></pre>]]></long-description>
  193. <tag line="198" name="param" description="The OID to walk" type="string" variable="$oid">
  194. <type by_reference="false">string</type>
  195. </tag>
  196. <tag line="198" name="return" description="The resultant values" type="array">
  197. <type by_reference="false">array</type>
  198. </tag>
  199. </docblock>
  200. <argument line="198">
  201. <name>$oid</name>
  202. <default><![CDATA[]]></default>
  203. <type/>
  204. </argument>
  205. </method>
  206. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="243" package="Default">
  207. <name>subOidWalk</name>
  208. <full_name>subOidWalk</full_name>
  209. <docblock line="243">
  210. <description><![CDATA[Get indexed SNMP values where the array key is the given position of the OID]]></description>
  211. <long-description><![CDATA[<p>I.e. the following query with sample results:</p>
  212. <p>subOidWalk( '.1.3.6.1.4.1.9.9.23.1.2.1.1.9', 15 )</p>
  213. <pre><code> .1.3.6.1.4.1.9.9.23.1.2.1.1.9.10101.5 = Hex-STRING: 00 00 00 01
  214. .1.3.6.1.4.1.9.9.23.1.2.1.1.9.10105.2 = Hex-STRING: 00 00 00 01
  215. .1.3.6.1.4.1.9.9.23.1.2.1.1.9.10108.4 = Hex-STRING: 00 00 00 01
  216. </code></pre>
  217. <p>would yield an array:</p>
  218. <pre><code> 10101 =&gt; Hex-STRING: 00 00 00 01
  219. 10105 =&gt; Hex-STRING: 00 00 00 01
  220. 10108 =&gt; Hex-STRING: 00 00 00 01
  221. </code></pre>]]></long-description>
  222. <tag line="243" name="param" description="The OID to walk" type="string" variable="$oid">
  223. <type by_reference="false">string</type>
  224. </tag>
  225. <tag line="243" name="param" description="The position of the OID to use as the key" type="int" variable="$position">
  226. <type by_reference="false">int</type>
  227. </tag>
  228. <tag line="243" name="return" description="The resultant values" type="array">
  229. <type by_reference="false">array</type>
  230. </tag>
  231. </docblock>
  232. <argument line="243">
  233. <name>$oid</name>
  234. <default><![CDATA[]]></default>
  235. <type/>
  236. </argument>
  237. <argument line="243">
  238. <name>$position</name>
  239. <default><![CDATA[]]></default>
  240. <type/>
  241. </argument>
  242. </method>
  243. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="272" package="Default">
  244. <name>parseSnmpValue</name>
  245. <full_name>parseSnmpValue</full_name>
  246. <docblock line="272">
  247. <description><![CDATA[Parse the result of an SNMP query into a PHP type]]></description>
  248. <long-description><![CDATA[<p>For example, [STRING: "blah"] is parsed to a PHP string containing: blah</p>]]></long-description>
  249. <tag line="272" name="param" description="The value to parse" type="string" variable="$v">
  250. <type by_reference="false">string</type>
  251. </tag>
  252. <tag line="272" name="return" description="The parsed value" type="mixed">
  253. <type by_reference="false">mixed</type>
  254. </tag>
  255. <tag line="272" name="throws" description="" type="\Exception">
  256. <type by_reference="false">\Exception</type>
  257. </tag>
  258. </docblock>
  259. <argument line="272">
  260. <name>$v</name>
  261. <default><![CDATA[]]></default>
  262. <type/>
  263. </argument>
  264. </method>
  265. <method final="false" abstract="false" static="true" visibility="public" namespace="OSS" line="314" package="Default">
  266. <name>ppTruthValue</name>
  267. <full_name>ppTruthValue</full_name>
  268. <docblock line="314">
  269. <description><![CDATA[Utility function to convert TruthValue SNMP responses to true / false]]></description>
  270. <long-description><![CDATA[]]></long-description>
  271. <tag line="314" name="param" description="The TruthValue ( 1 =&gt; true, 2 =&gt; false) to convert" type="integer" variable="$value">
  272. <type by_reference="false">integer</type>
  273. </tag>
  274. <tag line="314" name="return" description="" type="boolean">
  275. <type by_reference="false">boolean</type>
  276. </tag>
  277. </docblock>
  278. <argument line="314">
  279. <name>$value</name>
  280. <default><![CDATA[]]></default>
  281. <type/>
  282. </argument>
  283. </method>
  284. <method final="false" abstract="false" static="true" visibility="public" namespace="OSS" line="337" package="Default">
  285. <name>translate</name>
  286. <full_name>translate</full_name>
  287. <docblock line="337">
  288. <description><![CDATA[Utility function to translate one value(s) to another via an associated array]]></description>
  289. <long-description><![CDATA[<p>I.e. all elements '$value' will be replaced with $translator( $value ) where
  290. $translator is an associated array.</p>
  291. <p>Huh? Just read the code below!</p>]]></long-description>
  292. <tag line="337" name="param" description="A scalar or array or values to translate" type="mixed" variable="$values">
  293. <type by_reference="false">mixed</type>
  294. </tag>
  295. <tag line="337" name="param" description="An associated array to use to translate the values" type="array" variable="$translator">
  296. <type by_reference="false">array</type>
  297. </tag>
  298. <tag line="337" name="return" description="The translated scalar or array" type="mixed">
  299. <type by_reference="false">mixed</type>
  300. </tag>
  301. </docblock>
  302. <argument line="337">
  303. <name>$values</name>
  304. <default><![CDATA[]]></default>
  305. <type/>
  306. </argument>
  307. <argument line="337">
  308. <name>$translator</name>
  309. <default><![CDATA[]]></default>
  310. <type/>
  311. </argument>
  312. </method>
  313. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="356" package="Default">
  314. <name>setOidOutputFormat</name>
  315. <full_name>setOidOutputFormat</full_name>
  316. <docblock line="356">
  317. <description><![CDATA[Sets the output format for SNMP queries.]]></description>
  318. <long-description><![CDATA[<p>Should be one of the class OID_OUTPUT_* constants</p>]]></long-description>
  319. <tag line="356" name="param" description="The fomat to use" type="int" variable="$f">
  320. <type by_reference="false">int</type>
  321. </tag>
  322. <tag line="356" name="return" description="An instance of $this (for fluent interfaces)" type="\OSS_SNMP">
  323. <type by_reference="false">\OSS_SNMP</type>
  324. </tag>
  325. </docblock>
  326. <argument line="356">
  327. <name>$f</name>
  328. <default><![CDATA[]]></default>
  329. <type/>
  330. </argument>
  331. </method>
  332. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="369" package="Default">
  333. <name>setHost</name>
  334. <full_name>setHost</full_name>
  335. <docblock line="369">
  336. <description><![CDATA[Sets the target host for SNMP queries.]]></description>
  337. <long-description><![CDATA[]]></long-description>
  338. <tag line="369" name="param" description="The target host for SNMP queries." type="string" variable="$h">
  339. <type by_reference="false">string</type>
  340. </tag>
  341. <tag line="369" name="return" description="An instance of $this (for fluent interfaces)" type="\OSS_SNMP">
  342. <type by_reference="false">\OSS_SNMP</type>
  343. </tag>
  344. </docblock>
  345. <argument line="369">
  346. <name>$h</name>
  347. <default><![CDATA[]]></default>
  348. <type/>
  349. </argument>
  350. </method>
  351. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="386" package="Default">
  352. <name>getHost</name>
  353. <full_name>getHost</full_name>
  354. <docblock line="386">
  355. <description><![CDATA[Returns the target host as currently configured for SNMP queries]]></description>
  356. <long-description><![CDATA[]]></long-description>
  357. <tag line="386" name="return" description="The target host as currently configured for SNMP queries" type="string">
  358. <type by_reference="false">string</type>
  359. </tag>
  360. </docblock>
  361. </method>
  362. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="397" package="Default">
  363. <name>setCommunity</name>
  364. <full_name>setCommunity</full_name>
  365. <docblock line="397">
  366. <description><![CDATA[Sets the community string to use for SNMP queries.]]></description>
  367. <long-description><![CDATA[]]></long-description>
  368. <tag line="397" name="param" description="The community to use for SNMP queries." type="string" variable="$c">
  369. <type by_reference="false">string</type>
  370. </tag>
  371. <tag line="397" name="return" description="An instance of $this (for fluent interfaces)" type="\OSS_SNMP">
  372. <type by_reference="false">\OSS_SNMP</type>
  373. </tag>
  374. </docblock>
  375. <argument line="397">
  376. <name>$c</name>
  377. <default><![CDATA[]]></default>
  378. <type/>
  379. </argument>
  380. </method>
  381. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="408" package="Default">
  382. <name>getCommunity</name>
  383. <full_name>getCommunity</full_name>
  384. <docblock line="408">
  385. <description><![CDATA[Returns the community string currently in use.]]></description>
  386. <long-description><![CDATA[]]></long-description>
  387. <tag line="408" name="return" description="The community string currently in use." type="string">
  388. <type by_reference="false">string</type>
  389. </tag>
  390. </docblock>
  391. </method>
  392. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="419" package="Default">
  393. <name>setTimeout</name>
  394. <full_name>setTimeout</full_name>
  395. <docblock line="419">
  396. <description><![CDATA[Sets the timeout to use for SNMP queries (microseconds).]]></description>
  397. <long-description><![CDATA[]]></long-description>
  398. <tag line="419" name="param" description="The timeout to use for SNMP queries (microseconds)." type="int" variable="$t">
  399. <type by_reference="false">int</type>
  400. </tag>
  401. <tag line="419" name="return" description="An instance of $this (for fluent interfaces)" type="\OSS_SNMP">
  402. <type by_reference="false">\OSS_SNMP</type>
  403. </tag>
  404. </docblock>
  405. <argument line="419">
  406. <name>$t</name>
  407. <default><![CDATA[]]></default>
  408. <type/>
  409. </argument>
  410. </method>
  411. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="430" package="Default">
  412. <name>getTimeout</name>
  413. <full_name>getTimeout</full_name>
  414. <docblock line="430">
  415. <description><![CDATA[Returns the SNMP query timeout (microseconds).]]></description>
  416. <long-description><![CDATA[]]></long-description>
  417. <tag line="430" name="return" description="The the SNMP query timeout (microseconds)" type="int">
  418. <type by_reference="false">int</type>
  419. </tag>
  420. </docblock>
  421. </method>
  422. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="441" package="Default">
  423. <name>setRetry</name>
  424. <full_name>setRetry</full_name>
  425. <docblock line="441">
  426. <description><![CDATA[Sets the SNMP query retry count.]]></description>
  427. <long-description><![CDATA[]]></long-description>
  428. <tag line="441" name="param" description="The SNMP query retry count" type="int" variable="$r">
  429. <type by_reference="false">int</type>
  430. </tag>
  431. <tag line="441" name="return" description="An instance of $this (for fluent interfaces)" type="\OSS_SNMP">
  432. <type by_reference="false">\OSS_SNMP</type>
  433. </tag>
  434. </docblock>
  435. <argument line="441">
  436. <name>$r</name>
  437. <default><![CDATA[]]></default>
  438. <type/>
  439. </argument>
  440. </method>
  441. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="452" package="Default">
  442. <name>getRetry</name>
  443. <full_name>getRetry</full_name>
  444. <docblock line="452">
  445. <description><![CDATA[Returns the SNMP query retry count]]></description>
  446. <long-description><![CDATA[]]></long-description>
  447. <tag line="452" name="return" description="The SNMP query retry count" type="string">
  448. <type by_reference="false">string</type>
  449. </tag>
  450. </docblock>
  451. </method>
  452. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="462" package="Default">
  453. <name>getLastResult</name>
  454. <full_name>getLastResult</full_name>
  455. <docblock line="462">
  456. <description><![CDATA[Returns the unaltered original last SNMP result]]></description>
  457. <long-description><![CDATA[]]></long-description>
  458. <tag line="462" name="return" description="The unaltered original last SNMP result" type="mixed">
  459. <type by_reference="false">mixed</type>
  460. </tag>
  461. </docblock>
  462. </method>
  463. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="472" package="Default">
  464. <name>getResultCache</name>
  465. <full_name>getResultCache</full_name>
  466. <docblock line="472">
  467. <description><![CDATA[Returns the internal result cache]]></description>
  468. <long-description><![CDATA[]]></long-description>
  469. <tag line="472" name="return" description="The internal result cache" type="array">
  470. <type by_reference="false">array</type>
  471. </tag>
  472. </docblock>
  473. </method>
  474. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="483" package="Default">
  475. <name>disableCache</name>
  476. <full_name>disableCache</full_name>
  477. <docblock line="483">
  478. <description><![CDATA[Disable lookups of the local cache]]></description>
  479. <long-description><![CDATA[]]></long-description>
  480. <tag line="483" name="return" description="An instance of this for fluent interfaces" type="\SNMP">
  481. <type by_reference="false">\SNMP</type>
  482. </tag>
  483. </docblock>
  484. </method>
  485. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="495" package="Default">
  486. <name>enableCache</name>
  487. <full_name>enableCache</full_name>
  488. <docblock line="495">
  489. <description><![CDATA[Enable lookups of the local cache]]></description>
  490. <long-description><![CDATA[]]></long-description>
  491. <tag line="495" name="return" description="An instance of this for fluent interfaces" type="\SNMP">
  492. <type by_reference="false">\SNMP</type>
  493. </tag>
  494. </docblock>
  495. </method>
  496. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="506" package="Default">
  497. <name>cache</name>
  498. <full_name>cache</full_name>
  499. <docblock line="506">
  500. <description><![CDATA[Query whether we are using the cache or not]]></description>
  501. <long-description><![CDATA[]]></long-description>
  502. <tag line="506" name="return" description="True of the local lookup cache is enabled. Otherwise false." type="boolean">
  503. <type by_reference="false">boolean</type>
  504. </tag>
  505. </docblock>
  506. </method>
  507. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="519" package="Default">
  508. <name>__call</name>
  509. <full_name>__call</full_name>
  510. <docblock line="519">
  511. <description><![CDATA[Magic method for generic function calls]]></description>
  512. <long-description><![CDATA[]]></long-description>
  513. <tag line="519" name="param" description="" type="string" variable="$method">
  514. <type by_reference="false">string</type>
  515. </tag>
  516. <tag line="519" name="param" description="" type="array" variable="$args">
  517. <type by_reference="false">array</type>
  518. </tag>
  519. <tag line="519" name="throws" description="" type="\Exception">
  520. <type by_reference="false">\Exception</type>
  521. </tag>
  522. </docblock>
  523. <argument line="519">
  524. <name>$method</name>
  525. <default><![CDATA[]]></default>
  526. <type/>
  527. </argument>
  528. <argument line="519">
  529. <name>$args</name>
  530. <default><![CDATA[]]></default>
  531. <type/>
  532. </argument>
  533. </method>
  534. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS" line="541" package="Default">
  535. <name>useExtension</name>
  536. <full_name>useExtension</full_name>
  537. <docblock line="541">
  538. <description><![CDATA[This is the MIB Extension magic]]></description>
  539. <long-description><![CDATA[<p>Calling $this->useXXX_YYY_ZZZ()->fn() will instantiate
  540. an extension MIB class is the given name and this $this SNMP
  541. instance and then call fn().</p>
  542. <p>See the examples for more information.</p>]]></long-description>
  543. <tag line="541" name="param" description="The extension class to use" type="string" variable="$mib">
  544. <type by_reference="false">string</type>
  545. </tag>
  546. <tag line="541" name="param" description="" type="array" variable="$args">
  547. <type by_reference="false">array</type>
  548. </tag>
  549. <tag line="541" name="return" description="" type="\OSS\SNMP\MIBS">
  550. <type by_reference="false">\OSS\SNMP\MIBS</type>
  551. </tag>
  552. </docblock>
  553. <argument line="541">
  554. <name>$mib</name>
  555. <default><![CDATA[]]></default>
  556. <type/>
  557. </argument>
  558. <argument line="541">
  559. <name>$args</name>
  560. <default><![CDATA[]]></default>
  561. <type/>
  562. </argument>
  563. </method>
  564. </class>
  565. <parse_markers>
  566. <error line="55" code="50018">No DocBlock was found for property $_community</error>
  567. <error line="61" code="50018">No DocBlock was found for property $_host</error>
  568. <error line="67" code="50018">No DocBlock was found for property $_timeout</error>
  569. <error line="73" code="50018">No DocBlock was found for property $_retry</error>
  570. <error line="80" code="50018">No DocBlock was found for property $_lastResult</error>
  571. <error line="87" code="50018">No DocBlock was found for property $_resultCache</error>
  572. <error line="100" code="50018">No DocBlock was found for property $_disableCache</error>
  573. <error line="123" code="50018">No DocBlock was found for property $SNMP_TRUTHVALUES</error>
  574. </parse_markers>
  575. </file>
  576. <file path="SNMP/MIBS/Iface.php" hash="63b5fe8283fc0150f3654dfbbdd82905" package="Default">
  577. <class final="false" abstract="false" namespace="OSS\SNMP\MIBS" line="42" package="Default">
  578. <name>Iface</name>
  579. <full_name>\OSS\SNMP\MIBS\Iface</full_name>
  580. <extends>OSS\SNMP\MIB</extends>
  581. <docblock line="42">
  582. <description><![CDATA[A class for performing SNMP V2 queries on generic devices]]></description>
  583. <long-description><![CDATA[]]></long-description>
  584. <tag line="42" name="copyright" description="Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland"/>
  585. <tag line="42" name="author" description="Barry O'Donovan &lt;barry@opensolutions.ie&gt;"/>
  586. </docblock>
  587. <constant namespace="OSS\SNMP\MIBS" line="44" package="Default">
  588. <name>OID_IF_DESCRIPTION</name>
  589. <full_name>OID_IF_DESCRIPTION</full_name>
  590. <value><![CDATA['.1.3.6.1.2.1.2.2.1.2']]></value>
  591. </constant>
  592. <constant namespace="OSS\SNMP\MIBS" line="45" package="Default">
  593. <name>OID_IF_SPEED</name>
  594. <full_name>OID_IF_SPEED</full_name>
  595. <value><![CDATA['.1.3.6.1.2.1.2.2.1.5']]></value>
  596. </constant>
  597. <constant namespace="OSS\SNMP\MIBS" line="46" package="Default">
  598. <name>OID_IF_OPER_STATUS</name>
  599. <full_name>OID_IF_OPER_STATUS</full_name>
  600. <value><![CDATA['.1.3.6.1.2.1.2.2.1.8']]></value>
  601. </constant>
  602. <constant namespace="OSS\SNMP\MIBS" line="47" package="Default">
  603. <name>OID_IF_NAME</name>
  604. <full_name>OID_IF_NAME</full_name>
  605. <value><![CDATA['.1.3.6.1.2.1.31.1.1.1.1']]></value>
  606. </constant>
  607. <constant namespace="OSS\SNMP\MIBS" line="48" package="Default">
  608. <name>OID_IF_ALIAS</name>
  609. <full_name>OID_IF_ALIAS</full_name>
  610. <value><![CDATA['.1.3.6.1.2.1.31.1.1.1.18']]></value>
  611. </constant>
  612. <constant namespace="OSS\SNMP\MIBS" line="133" package="Default">
  613. <name>IF_OPER_STATUS_UP</name>
  614. <full_name>IF_OPER_STATUS_UP</full_name>
  615. <value><![CDATA[1]]></value>
  616. </constant>
  617. <constant namespace="OSS\SNMP\MIBS" line="138" package="Default">
  618. <name>IF_OPER_STATUS_DOWN</name>
  619. <full_name>IF_OPER_STATUS_DOWN</full_name>
  620. <value><![CDATA[2]]></value>
  621. </constant>
  622. <constant namespace="OSS\SNMP\MIBS" line="143" package="Default">
  623. <name>IF_OPER_STATUS_TESTING</name>
  624. <full_name>IF_OPER_STATUS_TESTING</full_name>
  625. <value><![CDATA[3]]></value>
  626. </constant>
  627. <constant namespace="OSS\SNMP\MIBS" line="148" package="Default">
  628. <name>IF_OPER_STATUS_UNKNOWN</name>
  629. <full_name>IF_OPER_STATUS_UNKNOWN</full_name>
  630. <value><![CDATA[4]]></value>
  631. </constant>
  632. <constant namespace="OSS\SNMP\MIBS" line="153" package="Default">
  633. <name>IF_OPER_STATUS_DORMANT</name>
  634. <full_name>IF_OPER_STATUS_DORMANT</full_name>
  635. <value><![CDATA[5]]></value>
  636. </constant>
  637. <constant namespace="OSS\SNMP\MIBS" line="158" package="Default">
  638. <name>IF_OPER_STATUS_NOT_PRESENT</name>
  639. <full_name>IF_OPER_STATUS_NOT_PRESENT</full_name>
  640. <value><![CDATA[6]]></value>
  641. </constant>
  642. <constant namespace="OSS\SNMP\MIBS" line="163" package="Default">
  643. <name>IF_OPER_STATUS_LOWER_LAYER_DOWN</name>
  644. <full_name>IF_OPER_STATUS_LOWER_LAYER_DOWN</full_name>
  645. <value><![CDATA[7]]></value>
  646. </constant>
  647. <property final="false" static="true" visibility="public" line="171" namespace="OSS\SNMP\MIBS" package="Default">
  648. <name>$IF_OPER_STATES</name>
  649. <default><![CDATA[array(NULL => 'up', NULL => 'down', NULL => 'testing', NULL => 'unknown', NULL => 'dormant', NULL => 'notPresent', NULL => 'lowerLayerDown')]]></default>
  650. </property>
  651. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS" line="64" package="Default">
  652. <name>names</name>
  653. <full_name>names</full_name>
  654. <docblock line="64">
  655. <description><![CDATA[Get an array of device interface names]]></description>
  656. <long-description><![CDATA[<p>E.g. the following SNMP output yields the shown array:</p>
  657. <p>.1.3.6.1.2.1.31.1.1.1.1.10128 = STRING: Gi1/0/28
  658. .1.3.6.1.2.1.31.1.1.1.1.10129 = STRING: Gi1/0/29
  659. ...</p>
  660. <pre><code> [10128] =&gt; "Gi1/0/28"
  661. [10129] =&gt; "Gi1/0/29"
  662. </code></pre>]]></long-description>
  663. <tag line="64" name="return" description="An array of interface names" type="array">
  664. <type by_reference="false">array</type>
  665. </tag>
  666. </docblock>
  667. </method>
  668. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS" line="83" package="Default">
  669. <name>aliases</name>
  670. <full_name>aliases</full_name>
  671. <docblock line="83">
  672. <description><![CDATA[Get an array of device interface aliases (e.g. as set by the interface description / port-name parameter)]]></description>
  673. <long-description><![CDATA[<p>E.g. the followig SNMP output yields the shown array:</p>
  674. <p>.1.3.6.1.2.1.2.2.1.2.18.10128 = STRING: Connection to switch2
  675. .1.3.6.1.2.1.2.2.1.2.18.10129 = STRING: Connection to switch3
  676. ...</p>
  677. <pre><code> [10128] =&gt; "Connection to switch2"
  678. [10129] =&gt; "Connection to switch3"
  679. </code></pre>]]></long-description>
  680. <tag line="83" name="return" description="An array of interface aliases" type="array">
  681. <type by_reference="false">array</type>
  682. </tag>
  683. </docblock>
  684. </method>
  685. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS" line="102" package="Default">
  686. <name>descriptions</name>
  687. <full_name>descriptions</full_name>
  688. <docblock line="102">
  689. <description><![CDATA[Get an array of device interface descriptions]]></description>
  690. <long-description><![CDATA[<p>E.g. the following SNMP output yields the shown array:</p>
  691. <p>.1.3.6.1.2.1.31.1.1.1.1.10128 = STRING: GigabitEthernet1/0/28
  692. .1.3.6.1.2.1.31.1.1.1.1.10129 = STRING: GigabitEthernet1/0/29
  693. ...</p>
  694. <pre><code> [10128] =&gt; "GigabitEthernet1/0/28"
  695. [10129] =&gt; "GigabitEthernet1/0/29"
  696. </code></pre>]]></long-description>
  697. <tag line="102" name="return" description="An array of interface descriptions" type="array">
  698. <type by_reference="false">array</type>
  699. </tag>
  700. </docblock>
  701. </method>
  702. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS" line="123" package="Default">
  703. <name>speeds</name>
  704. <full_name>speeds</full_name>
  705. <docblock line="123">
  706. <description><![CDATA[Get an array of device interface (operating) speeds]]></description>
  707. <long-description><![CDATA[<p>E.g. the following SNMP output yields the shown array:</p>
  708. <p>.1.3.6.1.2.1.2.2.1.5.10128 = Gauge32: 1000000000
  709. .1.3.6.1.2.1.2.2.1.5.10129 = Gauge32: 100000000
  710. ...</p>
  711. <pre><code> [10128] =&gt; 1000000000
  712. [10129] =&gt; 100000000
  713. </code></pre>
  714. <p>NB: operating speed as opposed to maximum speed</p>]]></long-description>
  715. <tag line="123" name="return" description="An array of interface operating speeds" type="array">
  716. <type by_reference="false">array</type>
  717. </tag>
  718. </docblock>
  719. </method>
  720. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS" line="197" package="Default">
  721. <name>operationStates</name>
  722. <full_name>operationStates</full_name>
  723. <docblock line="197">
  724. <description><![CDATA[Get an array of device interface operating status (up / down)]]></description>
  725. <long-description><![CDATA[<p>E.g. the follow SNMP output yields the shown array:</p>
  726. <p>.1.3.6.1.2.1.2.2.1.8.10128 = INTEGER: up(1)
  727. .1.3.6.1.2.1.2.2.1.8.10129 = INTEGER: down(2)
  728. ...</p>
  729. <pre><code> [10128] =&gt; 1
  730. [10129] =&gt; 2
  731. </code></pre>]]></long-description>
  732. <tag line="197" name="see" description="\IF_OPER_STATES" refers="\IF_OPER_STATES"/>
  733. <tag line="197" name="param" description="If true, return the string representation" type="boolean" variable="$translate">
  734. <type by_reference="false">boolean</type>
  735. </tag>
  736. <tag line="197" name="return" description="An array of interface states" type="array">
  737. <type by_reference="false">array</type>
  738. </tag>
  739. </docblock>
  740. <argument line="197">
  741. <name>$translate</name>
  742. <default><![CDATA[NULL]]></default>
  743. <type/>
  744. </argument>
  745. </method>
  746. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS" line="216" package="Default">
  747. <name>bridgeBasePortIfIndexes</name>
  748. <full_name>bridgeBasePortIfIndexes</full_name>
  749. <docblock line="216">
  750. <description><![CDATA[Returns an associate array of STP port IDs (key) to interface IDs (value)]]></description>
  751. <long-description><![CDATA[<p>e.g. [22] => 10122</p>]]></long-description>
  752. <tag line="216" name="return" description="Associate array of STP port IDs (key) to interface IDs (value)" type="array">
  753. <type by_reference="false">array</type>
  754. </tag>
  755. </docblock>
  756. </method>
  757. </class>
  758. <parse_markers>
  759. <error line="171" code="50018">No DocBlock was found for property $IF_OPER_STATES</error>
  760. </parse_markers>
  761. </file>
  762. <file path="SNMP/MIBS/Bridge.php" hash="75389224eb58374662892e1f3d109a17" package="Default">
  763. <class final="false" abstract="false" namespace="OSS\SNMP\MIBS" line="42" package="Default">
  764. <name>Bridge</name>
  765. <full_name>\OSS\SNMP\MIBS\Bridge</full_name>
  766. <extends>OSS\SNMP\MIB</extends>
  767. <docblock line="42">
  768. <description><![CDATA[A class for performing SNMP V2 queries on generic devices]]></description>
  769. <long-description><![CDATA[]]></long-description>
  770. <tag line="42" name="copyright" description="Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland"/>
  771. <tag line="42" name="author" description="Barry O'Donovan &lt;barry@opensolutions.ie&gt;"/>
  772. </docblock>
  773. <constant namespace="OSS\SNMP\MIBS" line="44" package="Default">
  774. <name>OID_BRIDGE_BASE_PORT_IF_INDEX</name>
  775. <full_name>OID_BRIDGE_BASE_PORT_IF_INDEX</full_name>
  776. <value><![CDATA['.1.3.6.1.2.1.17.1.4.1.2']]></value>
  777. </constant>
  778. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS" line="54" package="Default">
  779. <name>basePortIfIndexes</name>
  780. <full_name>basePortIfIndexes</full_name>
  781. <docblock line="54">
  782. <description><![CDATA[Returns an associate array of STP port IDs (key) to interface IDs (value)]]></description>
  783. <long-description><![CDATA[<p>e.g. [22] => 10122</p>]]></long-description>
  784. <tag line="54" name="return" description="Associate array of STP port IDs (key) to interface IDs (value)" type="array">
  785. <type by_reference="false">array</type>
  786. </tag>
  787. </docblock>
  788. </method>
  789. </class>
  790. </file>
  791. <file path="SNMP/MIBS/LAG.php" hash="5ef4604fc27cbf4ae2617a27a31377be" package="Default">
  792. <class final="false" abstract="false" namespace="OSS\SNMP\MIBS" line="42" package="Default">
  793. <name>LAG</name>
  794. <full_name>\OSS\SNMP\MIBS\LAG</full_name>
  795. <extends>OSS\SNMP\MIB</extends>
  796. <docblock line="42">
  797. <description><![CDATA[A class for performing SNMP V2 queries on generic devices]]></description>
  798. <long-description><![CDATA[]]></long-description>
  799. <tag line="42" name="copyright" description="Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland"/>
  800. <tag line="42" name="author" description="Barry O'Donovan &lt;barry@opensolutions.ie&gt;"/>
  801. </docblock>
  802. <constant namespace="OSS\SNMP\MIBS" line="48" package="Default">
  803. <name>OID_LAG_PORT_ATTACHED_ID</name>
  804. <full_name>OID_LAG_PORT_ATTACHED_ID</full_name>
  805. <value><![CDATA['.1.2.840.10006.300.43.1.2.1.1.13']]></value>
  806. </constant>
  807. <constant namespace="OSS\SNMP\MIBS" line="53" package="Default">
  808. <name>OID_LAG_AGGREGATE_OR_INDIVIDUAL</name>
  809. <full_name>OID_LAG_AGGREGATE_OR_INDIVIDUAL</full_name>
  810. <value><![CDATA['.1.2.840.10006.300.43.1.2.1.1.24']]></value>
  811. </constant>
  812. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS" line="61" package="Default">
  813. <name>isAggregatePorts</name>
  814. <full_name>isAggregatePorts</full_name>
  815. <docblock line="61">
  816. <description><![CDATA[Returns an associate array of port IDs with a boolean value to indicate if it's an aggregate port (true)
  817. or an individual port (false).]]></description>
  818. <long-description><![CDATA[]]></long-description>
  819. <tag line="61" name="return" description="Associate array of port IDs with a boolean value to indicate if it's an aggregate port (true) or not" type="array">
  820. <type by_reference="false">array</type>
  821. </tag>
  822. </docblock>
  823. </method>
  824. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS" line="73" package="Default">
  825. <name>portAttachedIds</name>
  826. <full_name>portAttachedIds</full_name>
  827. <docblock line="73">
  828. <description><![CDATA[Returns an associate array of port IDs with the ID of the aggregate port that
  829. they are a member of (else 0 if not a LAG port)]]></description>
  830. <long-description><![CDATA[]]></long-description>
  831. <tag line="73" name="return" description="Associate array of port IDs with the ID of the aggregate port that they are a member of" type="array">
  832. <type by_reference="false">array</type>
  833. </tag>
  834. </docblock>
  835. </method>
  836. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS" line="90" package="Default">
  837. <name>getLAGPorts</name>
  838. <full_name>getLAGPorts</full_name>
  839. <docblock line="90">
  840. <description><![CDATA[Gets an associate array of LAG ports with the [id] => name of it's constituent ports]]></description>
  841. <long-description><![CDATA[<p>E.g.:
  842. [5048] => Array
  843. (
  844. [10111] => GigabitEthernet1/0/11
  845. [10112] => GigabitEthernet1/0/12
  846. )</p>]]></long-description>
  847. <tag line="90" name="return" description="Associate array of LAG ports with the [id] =&gt; name of it's constituent ports" type="array">
  848. <type by_reference="false">array</type>
  849. </tag>
  850. </docblock>
  851. </method>
  852. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS" line="107" package="Default">
  853. <name>findFailedLAGPorts</name>
  854. <full_name>findFailedLAGPorts</full_name>
  855. <docblock line="107">
  856. <description><![CDATA[Utility function to identify configured but unattached LAG ports]]></description>
  857. <long-description><![CDATA[]]></long-description>
  858. <tag line="107" name="return" description="Array of indexed port ids (array index, not value) of configured but unattached LAG ports" type="array">
  859. <type by_reference="false">array</type>
  860. </tag>
  861. </docblock>
  862. </method>
  863. </class>
  864. </file>
  865. <file path="SNMP/MIBS/Cisco.php" hash="99d51cbd4145aadb28a6939480cb0bfa" package="Default">
  866. <class final="false" abstract="false" namespace="OSS\SNMP\MIBS" line="42" package="Default">
  867. <name>Cisco</name>
  868. <full_name>\OSS\SNMP\MIBS\Cisco</full_name>
  869. <extends>OSS\SNMP\MIB</extends>
  870. <docblock line="42">
  871. <description><![CDATA[A class for performing SNMP V2 queries on Cisco devices]]></description>
  872. <long-description><![CDATA[]]></long-description>
  873. <tag line="42" name="copyright" description="Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland"/>
  874. <tag line="42" name="author" description="Barry O'Donovan &lt;barry@opensolutions.ie&gt;"/>
  875. </docblock>
  876. </class>
  877. </file>
  878. <file path="SNMP/MIBS/Host.php" hash="ba79fe7579c63b99d758a879c1b5ab0d" package="Default">
  879. <class final="false" abstract="false" namespace="OSS\SNMP\MIBS" line="42" package="Default">
  880. <name>Host</name>
  881. <full_name>\OSS\SNMP\MIBS\Host</full_name>
  882. <extends>OSS\SNMP\MIB</extends>
  883. <docblock line="42">
  884. <description><![CDATA[A class for performing SNMP V2 queries on generic devices]]></description>
  885. <long-description><![CDATA[]]></long-description>
  886. <tag line="42" name="copyright" description="Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland"/>
  887. <tag line="42" name="author" description="Barry O'Donovan &lt;barry@opensolutions.ie&gt;"/>
  888. </docblock>
  889. </class>
  890. </file>
  891. <file path="SNMP/MIBS/Cisco/CDP.php" hash="d367ae7032447aa83d44c8a1d6f69bb9" package="Default">
  892. <class final="false" abstract="false" namespace="OSS\SNMP\MIBS\Cisco" line="42" package="Default">
  893. <name>CDP</name>
  894. <full_name>\OSS\SNMP\MIBS\Cisco\CDP</full_name>
  895. <extends>OSS\SNMP\MIBS\Cisco</extends>
  896. <docblock line="42">
  897. <description><![CDATA[A class for performing SNMP V2 queries on Cisco devices]]></description>
  898. <long-description><![CDATA[]]></long-description>
  899. <tag line="42" name="copyright" description="Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland"/>
  900. <tag line="42" name="author" description="Barry O'Donovan &lt;barry@opensolutions.ie&gt;"/>
  901. </docblock>
  902. <constant namespace="OSS\SNMP\MIBS\Cisco" line="45" package="Default">
  903. <name>OID_CDP_INTERFACE_ENABLED</name>
  904. <full_name>OID_CDP_INTERFACE_ENABLED</full_name>
  905. <value><![CDATA['.1.3.6.1.4.1.9.9.23.1.1.1.1.2']]></value>
  906. </constant>
  907. <constant namespace="OSS\SNMP\MIBS\Cisco" line="46" package="Default">
  908. <name>OID_CDP_INTERFACE_NAME</name>
  909. <full_name>OID_CDP_INTERFACE_NAME</full_name>
  910. <value><![CDATA['.1.3.6.1.4.1.9.9.23.1.1.1.1.6']]></value>
  911. </constant>
  912. <constant namespace="OSS\SNMP\MIBS\Cisco" line="47" package="Default">
  913. <name>OID_CDP_NEIGHBOUR_ID</name>
  914. <full_name>OID_CDP_NEIGHBOUR_ID</full_name>
  915. <value><![CDATA['.1.3.6.1.4.1.9.9.23.1.2.1.1.6']]></value>
  916. </constant>
  917. <constant namespace="OSS\SNMP\MIBS\Cisco" line="48" package="Default">
  918. <name>OID_CDP_NEIGHBOUR_PORT</name>
  919. <full_name>OID_CDP_NEIGHBOUR_PORT</full_name>
  920. <value><![CDATA['.1.3.6.1.4.1.9.9.23.1.2.1.1.7']]></value>
  921. </constant>
  922. <constant namespace="OSS\SNMP\MIBS\Cisco" line="49" package="Default">
  923. <name>OID_CDP_NEIGHBOUR_CAPABILITY</name>
  924. <full_name>OID_CDP_NEIGHBOUR_CAPABILITY</full_name>
  925. <value><![CDATA['.1.3.6.1.4.1.9.9.23.1.2.1.1.9']]></value>
  926. </constant>
  927. <constant namespace="OSS\SNMP\MIBS\Cisco" line="50" package="Default">
  928. <name>OID_CDP_DEVICE_ID</name>
  929. <full_name>OID_CDP_DEVICE_ID</full_name>
  930. <value><![CDATA['.1.3.6.1.4.1.9.9.23.1.3.4.0']]></value>
  931. </constant>
  932. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS\Cisco" line="58" package="Default">
  933. <name>deviceId</name>
  934. <full_name>deviceId</full_name>
  935. <docblock line="58">
  936. <description><![CDATA[Get the device's CDP (Cisco Discovery Protocol) ID]]></description>
  937. <long-description><![CDATA[]]></long-description>
  938. <tag line="58" name="return" description="The device's CDP (Cisco Discovery Protocol) ID" type="string">
  939. <type by_reference="false">string</type>
  940. </tag>
  941. </docblock>
  942. </method>
  943. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS\Cisco" line="72" package="Default">
  944. <name>interfaceEnabled</name>
  945. <full_name>interfaceEnabled</full_name>
  946. <docblock line="72">
  947. <description><![CDATA[Get the device's interfaces CDP enabled status]]></description>
  948. <long-description><![CDATA[<p>Applies the TruthValue post processor (self::ppTruthValue()) to turn
  949. SNMP values into true / false.</p>]]></long-description>
  950. <tag line="72" name="return" description="The device's interfaces CDP enabled status' (as boolean true / false)" type="array">
  951. <type by_reference="false">array</type>
  952. </tag>
  953. </docblock>
  954. </method>
  955. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS\Cisco" line="82" package="Default">
  956. <name>interfaceNames</name>
  957. <full_name>interfaceNames</full_name>
  958. <docblock line="82">
  959. <description><![CDATA[Get the device's interface names as seen in CDP]]></description>
  960. <long-description><![CDATA[]]></long-description>
  961. <tag line="82" name="return" description="The device's interface names as seen in CDP" type="array">
  962. <type by_reference="false">array</type>
  963. </tag>
  964. </docblock>
  965. </method>
  966. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS\Cisco" line="92" package="Default">
  967. <name>neighbourId</name>
  968. <full_name>neighbourId</full_name>
  969. <docblock line="92">
  970. <description><![CDATA[Get the device's CDP neighbours (by their CDP ID) indexed by the current device's port ID]]></description>
  971. <long-description><![CDATA[]]></long-description>
  972. <tag line="92" name="return" description="The device's CDP neighbours (by their CDP ID) indexed by the current device's port ID" type="array">
  973. <type by_reference="false">array</type>
  974. </tag>
  975. </docblock>
  976. </method>
  977. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS\Cisco" line="116" package="Default">
  978. <name>neighbourPort</name>
  979. <full_name>neighbourPort</full_name>
  980. <docblock line="116">
  981. <description><![CDATA[Get the device's CDP neighbours connected port *description* indexed by the current device's port ID]]></description>
  982. <long-description><![CDATA[<p>E.g. a sample call may return:</p>
  983. <p>Array
  984. (
  985. [10101] => GigabitEthernet0/1
  986. [10102] => FastEthernet0/2
  987. [10103] => GigabitEthernet1/0/24
  988. [10105] => GigabitEthernet1/0/2
  989. )</p>
  990. <p>meaning, for example, that our local port with ID 10101 is connected to port GigabitEthernet0/1 on the neighbour
  991. connected to that local port. You can discover the neighbour ID via neighbourId().</p>]]></long-description>
  992. <tag line="116" name="see" description="\neighbourId()" refers="\neighbourId()"/>
  993. <tag line="116" name="return" description="The device's CDP neighbours connected port *description* indexed by the current device's port ID" type="array">
  994. <type by_reference="false">array</type>
  995. </tag>
  996. </docblock>
  997. </method>
  998. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS\Cisco" line="126" package="Default">
  999. <name>neighbourCapability</name>
  1000. <full_name>neighbourCapability</full_name>
  1001. <docblock line="126">
  1002. <description><![CDATA[Get the device's CDP neighbour capabilities (as a decimal integer) indexed by the current device's port ID]]></description>
  1003. <long-description><![CDATA[]]></long-description>
  1004. <tag line="126" name="return" description="The device's CDP neighbour capabilities (as a decimal integer) indexed by the current device's port ID" type="array">
  1005. <type by_reference="false">array</type>
  1006. </tag>
  1007. </docblock>
  1008. </method>
  1009. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS\Cisco" line="169" package="Default">
  1010. <name>neighbourInformation</name>
  1011. <full_name>neighbourInformation</full_name>
  1012. <docblock line="169">
  1013. <description><![CDATA[CDP utility function to get all CDP neighbours and their connected ports.]]></description>
  1014. <long-description><![CDATA[<p>Returns an array of neighbours indexed by the neighbour CDP ID. For example:</p>
  1015. <p>Array
  1016. (
  1017. [cr-sw03.ixdub1.opensolutions.ie] => Array
  1018. (
  1019. [0] => Array
  1020. (
  1021. [localPortId] => 10101
  1022. [localPort] => GigabitEthernet1/0/1
  1023. [remotePort] => GigabitEthernet0/1
  1024. )</p>
  1025. <pre><code> [1] =&gt; Array
  1026. (
  1027. [localPortId] =&gt; 10102
  1028. [localPort] =&gt; GigabitEthernet1/0/2
  1029. [remotePort] =&gt; FastEthernet0/2
  1030. )
  1031. )
  1032. [ ... ]
  1033. </code></pre>
  1034. <p>)</p>]]></long-description>
  1035. <tag line="169" name="see" description="\neighbourId()" refers="\neighbourId()"/>
  1036. <tag line="169" name="see" description="\OSS\SNMP\MIBS\Interface::descriptions()" refers="\OSS\SNMP\MIBS\Interface::descriptions()"/>
  1037. <tag line="169" name="see" description="\neighbourPort()" refers="\neighbourPort()"/>
  1038. <tag line="169" name="return" description="CDP neighbours and their connected ports" type="array">
  1039. <type by_reference="false">array</type>
  1040. </tag>
  1041. </docblock>
  1042. </method>
  1043. </class>
  1044. </file>
  1045. <file path="SNMP/MIBS/Cisco/VTP.php" hash="10dea5a8e18089b376247533eec84a34" package="Default">
  1046. <class final="false" abstract="false" namespace="OSS\SNMP\MIBS\Cisco" line="42" package="Default">
  1047. <name>VTP</name>
  1048. <full_name>\OSS\SNMP\MIBS\Cisco\VTP</full_name>
  1049. <extends>OSS\SNMP\MIBS\Cisco</extends>
  1050. <docblock line="42">
  1051. <description><![CDATA[A class for performing SNMP V2 queries on Cisco devices]]></description>
  1052. <long-description><![CDATA[]]></long-description>
  1053. <tag line="42" name="copyright" description="Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland"/>
  1054. <tag line="42" name="author" description="Barry O'Donovan &lt;barry@opensolutions.ie&gt;"/>
  1055. </docblock>
  1056. <constant namespace="OSS\SNMP\MIBS\Cisco" line="46" package="Default">
  1057. <name>OID_VTP_VLAN_STATUS</name>
  1058. <full_name>OID_VTP_VLAN_STATUS</full_name>
  1059. <value><![CDATA['.1.3.6.1.4.1.9.9.46.1.3.1.1.2.1']]></value>
  1060. </constant>
  1061. <constant namespace="OSS\SNMP\MIBS\Cisco" line="47" package="Default">
  1062. <name>OID_VTP_VLAN_TYPE</name>
  1063. <full_name>OID_VTP_VLAN_TYPE</full_name>
  1064. <value><![CDATA['.1.3.6.1.4.1.9.9.46.1.3.1.1.3.1']]></value>
  1065. </constant>
  1066. <constant namespace="OSS\SNMP\MIBS\Cisco" line="48" package="Default">
  1067. <name>OID_VTP_VLAN_NAME</name>
  1068. <full_name>OID_VTP_VLAN_NAME</full_name>
  1069. <value><![CDATA['.1.3.6.1.4.1.9.9.46.1.3.1.1.4.1']]></value>
  1070. </constant>
  1071. <constant namespace="OSS\SNMP\MIBS\Cisco" line="51" package="Default">
  1072. <name>OID_STP_X_RSTP_PORT_ROLE</name>
  1073. <full_name>OID_STP_X_RSTP_PORT_ROLE</full_name>
  1074. <value><![CDATA['.1.3.6.1.4.1.9.9.82.1.12.2.1.3']]></value>
  1075. </constant>
  1076. <constant namespace="OSS\SNMP\MIBS\Cisco" line="58" package="Default">
  1077. <name>VTP_VLAN_STATE_OPERATIONAL</name>
  1078. <full_name>VTP_VLAN_STATE_OPERATIONAL</full_name>
  1079. <value><![CDATA[1]]></value>
  1080. </constant>
  1081. <constant namespace="OSS\SNMP\MIBS\Cisco" line="64" package="Default">
  1082. <name>VTP_VLAN_STATE_SUSPENDED</name>
  1083. <full_name>VTP_VLAN_STATE_SUSPENDED</full_name>
  1084. <value><![CDATA[2]]></value>
  1085. </constant>
  1086. <constant namespace="OSS\SNMP\MIBS\Cisco" line="70" package="Default">
  1087. <name>VTP_VLAN_STATE_MTU_TOO_BIG_FOR_DEVICE</name>
  1088. <full_name>VTP_VLAN_STATE_MTU_TOO_BIG_FOR_DEVICE</full_name>
  1089. <value><![CDATA[3]]></value>
  1090. </constant>
  1091. <constant namespace="OSS\SNMP\MIBS\Cisco" line="76" package="Default">
  1092. <name>VTP_VLAN_STATE_MTU_TOO_BIG_FOR_TRUNK</name>
  1093. <full_name>VTP_VLAN_STATE_MTU_TOO_BIG_FOR_TRUNK</full_name>
  1094. <value><![CDATA[4]]></value>
  1095. </constant>
  1096. <constant namespace="OSS\SNMP\MIBS\Cisco" line="117" package="Default">
  1097. <name>VTP_VLAN_TYPE_ETHERNET</name>
  1098. <full_name>VTP_VLAN_TYPE_ETHERNET</full_name>
  1099. <value><![CDATA[1]]></value>
  1100. </constant>
  1101. <constant namespace="OSS\SNMP\MIBS\Cisco" line="123" package="Default">
  1102. <name>VTP_VLAN_TYPE_FDDI</name>
  1103. <full_name>VTP_VLAN_TYPE_FDDI</full_name>
  1104. <value><![CDATA[2]]></value>
  1105. </constant>
  1106. <constant namespace="OSS\SNMP\MIBS\Cisco" line="129" package="Default">
  1107. <name>VTP_VLAN_TYPE_TOKEN_RING</name>
  1108. <full_name>VTP_VLAN_TYPE_TOKEN_RING</full_name>
  1109. <value><![CDATA[3]]></value>
  1110. </constant>
  1111. <constant namespace="OSS\SNMP\MIBS\Cisco" line="135" package="Default">
  1112. <name>VTP_VLAN_TYPE_FDDI_NET</name>
  1113. <full_name>VTP_VLAN_TYPE_FDDI_NET</full_name>
  1114. <value><![CDATA[4]]></value>
  1115. </constant>
  1116. <constant namespace="OSS\SNMP\MIBS\Cisco" line="141" package="Default">
  1117. <name>VTP_VLAN_TYPE_TR_NET</name>
  1118. <full_name>VTP_VLAN_TYPE_TR_NET</full_name>
  1119. <value><![CDATA[5]]></value>
  1120. </constant>
  1121. <constant namespace="OSS\SNMP\MIBS\Cisco" line="147" package="Default">
  1122. <name>VTP_VLAN_TYPE_DEPRECATED</name>
  1123. <full_name>VTP_VLAN_TYPE_DEPRECATED</full_name>
  1124. <value><![CDATA[6]]></value>
  1125. </constant>
  1126. <constant namespace="OSS\SNMP\MIBS\Cisco" line="201" package="Default">
  1127. <name>STP_X_RSTP_PORT_ROLE_DISABLED</name>
  1128. <full_name>STP_X_RSTP_PORT_ROLE_DISABLED</full_name>
  1129. <value><![CDATA[1]]></value>
  1130. </constant>
  1131. <constant namespace="OSS\SNMP\MIBS\Cisco" line="207" package="Default">
  1132. <name>STP_X_RSTP_PORT_ROLE_ROOT</name>
  1133. <full_name>STP_X_RSTP_PORT_ROLE_ROOT</full_name>
  1134. <value><![CDATA[2]]></value>
  1135. </constant>
  1136. <constant namespace="OSS\SNMP\MIBS\Cisco" line="213" package="Default">
  1137. <name>STP_X_RSTP_PORT_ROLE_DESIGNATED</name>
  1138. <full_name>STP_X_RSTP_PORT_ROLE_DESIGNATED</full_name>
  1139. <value><![CDATA[3]]></value>
  1140. </constant>
  1141. <constant namespace="OSS\SNMP\MIBS\Cisco" line="219" package="Default">
  1142. <name>STP_X_RSTP_PORT_ROLE_ALTERNATE</name>
  1143. <full_name>STP_X_RSTP_PORT_ROLE_ALTERNATE</full_name>
  1144. <value><![CDATA[4]]></value>
  1145. </constant>
  1146. <constant namespace="OSS\SNMP\MIBS\Cisco" line="225" package="Default">
  1147. <name>STP_X_RSTP_PORT_ROLE_BACKUP</name>
  1148. <full_name>STP_X_RSTP_PORT_ROLE_BACKUP</full_name>
  1149. <value><![CDATA[5]]></value>
  1150. </constant>
  1151. <constant namespace="OSS\SNMP\MIBS\Cisco" line="231" package="Default">
  1152. <name>STP_X_RSTP_PORT_ROLE_BOUNDARY</name>
  1153. <full_name>STP_X_RSTP_PORT_ROLE_BOUNDARY</full_name>
  1154. <value><![CDATA[6]]></value>
  1155. </constant>
  1156. <constant namespace="OSS\SNMP\MIBS\Cisco" line="237" package="Default">
  1157. <name>STP_X_RSTP_PORT_ROLE_MASTER</name>
  1158. <full_name>STP_X_RSTP_PORT_ROLE_MASTER</full_name>
  1159. <value><![CDATA[6]]></value>
  1160. </constant>
  1161. <property final="false" static="true" visibility="public" line="84" namespace="OSS\SNMP\MIBS\Cisco" package="Default">
  1162. <name>$VTP_VLAN_STATES</name>
  1163. <default><![CDATA[array(NULL => 'operational', NULL => 'suspended', NULL => 'mtuTooBigForDevice', NULL => 'mtuTooBigForTrunk')]]></default>
  1164. </property>
  1165. <property final="false" static="true" visibility="public" line="155" namespace="OSS\SNMP\MIBS\Cisco" package="Default">
  1166. <name>$VTP_VLAN_TYPES</name>
  1167. <default><![CDATA[array(NULL => 'ethernet', NULL => 'fddi', NULL => 'tokenRing', NULL => 'fddiNet', NULL => 'trNet', NULL => 'deprecated')]]></default>
  1168. </property>
  1169. <property final="false" static="true" visibility="public" line="245" namespace="OSS\SNMP\MIBS\Cisco" package="Default">
  1170. <name>$STP_X_RSTP_PORT_ROLES</name>
  1171. <default><![CDATA[array(NULL => 'disabled', NULL => 'root', NULL => 'designated', NULL => 'alternate', NULL => 'backUp', NULL => 'boundary', NULL => 'master')]]></default>
  1172. </property>
  1173. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS\Cisco" line="100" package="Default">
  1174. <name>vlanStates</name>
  1175. <full_name>vlanStates</full_name>
  1176. <docblock line="100">
  1177. <description><![CDATA[Get the device's VTP VLAN States (indexed by VLAN ID)]]></description>
  1178. <long-description><![CDATA[]]></long-description>
  1179. <tag line="100" name="see" description="\$VTP_VLAN_STATES" refers="\$VTP_VLAN_STATES"/>
  1180. <tag line="100" name="see" description="\VTP_VLAN_STATE_OPERATIONAL" refers="\VTP_VLAN_STATE_OPERATIONAL"/>
  1181. <tag line="100" name="param" description="If true, return the string representation via self::$VTP_VLAN_TYPES" type="boolean" variable="$translate">
  1182. <type by_reference="false">boolean</type>
  1183. </tag>
  1184. <tag line="100" name="return" description="The device's VTP VLAN States (indexed by VLAN ID)" type="array">
  1185. <type by_reference="false">array</type>
  1186. </tag>
  1187. </docblock>
  1188. <argument line="100">
  1189. <name>$translate</name>
  1190. <default><![CDATA[NULL]]></default>
  1191. <type/>
  1192. </argument>
  1193. </method>
  1194. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS\Cisco" line="173" package="Default">
  1195. <name>vlanTypes</name>
  1196. <full_name>vlanTypes</full_name>
  1197. <docblock line="173">
  1198. <description><![CDATA[Get the device's VTP VLAN Types (indexed by VLAN ID)]]></description>
  1199. <long-description><![CDATA[]]></long-description>
  1200. <tag line="173" name="see" description="\$VTP_VLAN_TYPES" refers="\$VTP_VLAN_TYPES"/>
  1201. <tag line="173" name="see" description="\VTP_VLAN_TYPE_ETHERNET" refers="\VTP_VLAN_TYPE_ETHERNET"/>
  1202. <tag line="173" name="param" description="If true, return the string representation via self::$VTP_VLAN_TYPES" type="boolean" variable="$translate">
  1203. <type by_reference="false">boolean</type>
  1204. </tag>
  1205. <tag line="173" name="return" description="The device's VTP VLAN types (indexed by VLAN ID)" type="array">
  1206. <type by_reference="false">array</type>
  1207. </tag>
  1208. </docblock>
  1209. <argument line="173">
  1210. <name>$translate</name>
  1211. <default><![CDATA[NULL]]></default>
  1212. <type/>
  1213. </argument>
  1214. </method>
  1215. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS\Cisco" line="188" package="Default">
  1216. <name>vlanNames</name>
  1217. <full_name>vlanNames</full_name>
  1218. <docblock line="188">
  1219. <description><![CDATA[Get the device's VTP VLAN names (indexed by VLAN ID)]]></description>
  1220. <long-description><![CDATA[]]></long-description>
  1221. <tag line="188" name="return" description="The device's VTP VLAN names (indexed by VLAN ID)" type="array">
  1222. <type by_reference="false">array</type>
  1223. </tag>
  1224. </docblock>
  1225. </method>
  1226. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS\Cisco" line="280" package="Default">
  1227. <name>rstpPortRole</name>
  1228. <full_name>rstpPortRole</full_name>
  1229. <docblock line="280">
  1230. <description><![CDATA[Get the device's RSTP port roles (by given vlan id)]]></description>
  1231. <long-description><![CDATA[<p>Only ports participating in RSTP for the given VLAN id are returned.</p>
  1232. <p>This function will also convert STP port IDs to the device proper port IDs.
  1233. E.g. sample output:</p>
  1234. <p>Array
  1235. (
  1236. [10101] => 3
  1237. [10103] => 3
  1238. [10105] => 3
  1239. [5048] => 2
  1240. )</p>]]></long-description>
  1241. <tag line="280" name="see" description="\$STP_X_RSTP_PORT_ROLES" refers="\$STP_X_RSTP_PORT_ROLES"/>
  1242. <tag line="280" name="see" description="\STP_X_RSTP_PORT_ROLE_ROOT" refers="\STP_X_RSTP_PORT_ROLE_ROOT"/>
  1243. <tag line="280" name="param" description="The RSTP VLAN ID to query port roles for" type="int" variable="$vid">
  1244. <type by_reference="false">int</type>
  1245. </tag>
  1246. <tag line="280" name="param" description="If true, return the string representation via self::$STP_X_RSTP_PORT_ROLES" type="boolean" variable="$translate">
  1247. <type by_reference="false">boolean</type>
  1248. </tag>
  1249. <tag line="280" name="return" description="The device's RSTP port roles (by given vlan id)" type="array">
  1250. <type by_reference="false">array</type>
  1251. </tag>
  1252. </docblock>
  1253. <argument line="280">
  1254. <name>$vid</name>
  1255. <default><![CDATA[]]></default>
  1256. <type/>
  1257. </argument>
  1258. <argument line="280">
  1259. <name>$translate</name>
  1260. <default><![CDATA[NULL]]></default>
  1261. <type/>
  1262. </argument>
  1263. </method>
  1264. </class>
  1265. <parse_markers>
  1266. <error line="84" code="50018">No DocBlock was found for property $VTP_VLAN_STATES</error>
  1267. <error line="155" code="50018">No DocBlock was found for property $VTP_VLAN_TYPES</error>
  1268. <error line="245" code="50018">No DocBlock was found for property $STP_X_RSTP_PORT_ROLES</error>
  1269. </parse_markers>
  1270. </file>
  1271. <file path="SNMP/MIBS/Cisco/RSTP.php" hash="58829284efc460dfde569f089452a137" package="Default">
  1272. <class final="false" abstract="false" namespace="OSS\SNMP\MIBS\Cisco" line="42" package="Default">
  1273. <name>RSTP</name>
  1274. <full_name>\OSS\SNMP\MIBS\Cisco\RSTP</full_name>
  1275. <extends>OSS\SNMP\MIBS\Cisco</extends>
  1276. <docblock line="42">
  1277. <description><![CDATA[A class for performing SNMP V2 queries on Cisco devices]]></description>
  1278. <long-description><![CDATA[]]></long-description>
  1279. <tag line="42" name="copyright" description="Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland"/>
  1280. <tag line="42" name="author" description="Barry O'Donovan &lt;barry@opensolutions.ie&gt;"/>
  1281. </docblock>
  1282. <constant namespace="OSS\SNMP\MIBS\Cisco" line="46" package="Default">
  1283. <name>OID_STP_X_RSTP_PORT_ROLE</name>
  1284. <full_name>OID_STP_X_RSTP_PORT_ROLE</full_name>
  1285. <value><![CDATA['.1.3.6.1.4.1.9.9.82.1.12.2.1.3']]></value>
  1286. </constant>
  1287. <constant namespace="OSS\SNMP\MIBS\Cisco" line="53" package="Default">
  1288. <name>STP_X_RSTP_PORT_ROLE_DISABLED</name>
  1289. <full_name>STP_X_RSTP_PORT_ROLE_DISABLED</full_name>
  1290. <value><![CDATA[1]]></value>
  1291. </constant>
  1292. <constant namespace="OSS\SNMP\MIBS\Cisco" line="59" package="Default">
  1293. <name>STP_X_RSTP_PORT_ROLE_ROOT</name>
  1294. <full_name>STP_X_RSTP_PORT_ROLE_ROOT</full_name>
  1295. <value><![CDATA[2]]></value>
  1296. </constant>
  1297. <constant namespace="OSS\SNMP\MIBS\Cisco" line="65" package="Default">
  1298. <name>STP_X_RSTP_PORT_ROLE_DESIGNATED</name>
  1299. <full_name>STP_X_RSTP_PORT_ROLE_DESIGNATED</full_name>
  1300. <value><![CDATA[3]]></value>
  1301. </constant>
  1302. <constant namespace="OSS\SNMP\MIBS\Cisco" line="71" package="Default">
  1303. <name>STP_X_RSTP_PORT_ROLE_ALTERNATE</name>
  1304. <full_name>STP_X_RSTP_PORT_ROLE_ALTERNATE</full_name>
  1305. <value><![CDATA[4]]></value>
  1306. </constant>
  1307. <constant namespace="OSS\SNMP\MIBS\Cisco" line="77" package="Default">
  1308. <name>STP_X_RSTP_PORT_ROLE_BACKUP</name>
  1309. <full_name>STP_X_RSTP_PORT_ROLE_BACKUP</full_name>
  1310. <value><![CDATA[5]]></value>
  1311. </constant>
  1312. <constant namespace="OSS\SNMP\MIBS\Cisco" line="83" package="Default">
  1313. <name>STP_X_RSTP_PORT_ROLE_BOUNDARY</name>
  1314. <full_name>STP_X_RSTP_PORT_ROLE_BOUNDARY</full_name>
  1315. <value><![CDATA[6]]></value>
  1316. </constant>
  1317. <constant namespace="OSS\SNMP\MIBS\Cisco" line="89" package="Default">
  1318. <name>STP_X_RSTP_PORT_ROLE_MASTER</name>
  1319. <full_name>STP_X_RSTP_PORT_ROLE_MASTER</full_name>
  1320. <value><![CDATA[6]]></value>
  1321. </constant>
  1322. <property final="false" static="true" visibility="public" line="97" namespace="OSS\SNMP\MIBS\Cisco" package="Default">
  1323. <name>$STP_X_RSTP_PORT_ROLES</name>
  1324. <default><![CDATA[array(NULL => 'disabled', NULL => 'root', NULL => 'designated', NULL => 'alternate', NULL => 'backUp', NULL => 'boundary', NULL => 'master')]]></default>
  1325. </property>
  1326. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP\MIBS\Cisco" line="132" package="Default">
  1327. <name>rstpPortRole</name>
  1328. <full_name>rstpPortRole</full_name>
  1329. <docblock line="132">
  1330. <description><![CDATA[Get the device's RSTP port roles (by given vlan id)]]></description>
  1331. <long-description><![CDATA[<p>Only ports participating in RSTP for the given VLAN id are returned.</p>
  1332. <p>This function will also convert STP port IDs to the device proper port IDs.
  1333. E.g. sample output:</p>
  1334. <p>Array
  1335. (
  1336. [10101] => 3
  1337. [10103] => 3
  1338. [10105] => 3
  1339. [5048] => 2
  1340. )</p>]]></long-description>
  1341. <tag line="132" name="see" description="\$STP_X_RSTP_PORT_ROLES" refers="\$STP_X_RSTP_PORT_ROLES"/>
  1342. <tag line="132" name="see" description="\STP_X_RSTP_PORT_ROLE_ROOT" refers="\STP_X_RSTP_PORT_ROLE_ROOT"/>
  1343. <tag line="132" name="param" description="The RSTP VLAN ID to query port roles for" type="int" variable="$vid">
  1344. <type by_reference="false">int</type>
  1345. </tag>
  1346. <tag line="132" name="param" description="If true, return the string representation via self::$STP_X_RSTP_PORT_ROLES" type="boolean" variable="$translate">
  1347. <type by_reference="false">boolean</type>
  1348. </tag>
  1349. <tag line="132" name="return" description="The device's RSTP port roles (by given vlan id)" type="array">
  1350. <type by_reference="false">array</type>
  1351. </tag>
  1352. </docblock>
  1353. <argument line="132">
  1354. <name>$vid</name>
  1355. <default><![CDATA[]]></default>
  1356. <type/>
  1357. </argument>
  1358. <argument line="132">
  1359. <name>$translate</name>
  1360. <default><![CDATA[NULL]]></default>
  1361. <type/>
  1362. </argument>
  1363. </method>
  1364. </class>
  1365. <parse_markers>
  1366. <error line="97" code="50018">No DocBlock was found for property $STP_X_RSTP_PORT_ROLES</error>
  1367. </parse_markers>
  1368. </file>
  1369. <file path="SNMP/MIB.php" hash="5d551cca390b2385f33b3896ed293bf8" package="Default">
  1370. <class final="false" abstract="false" namespace="OSS\SNMP" line="42" package="Default">
  1371. <name>MIB</name>
  1372. <full_name>\OSS\SNMP\MIB</full_name>
  1373. <extends/>
  1374. <docblock line="42">
  1375. <description><![CDATA[Parent class for all "MIB" extensions.]]></description>
  1376. <long-description><![CDATA[]]></long-description>
  1377. <tag line="42" name="copyright" description="Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland"/>
  1378. <tag line="42" name="author" description="Barry O'Donovan &lt;barry@opensolutions.ie&gt;"/>
  1379. </docblock>
  1380. <property final="false" static="false" visibility="private" line="47" namespace="OSS\SNMP" package="Default">
  1381. <name>$_snmp</name>
  1382. <default><![CDATA[NULL]]></default>
  1383. </property>
  1384. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP" line="56" package="Default">
  1385. <name>setSNMP</name>
  1386. <full_name>setSNMP</full_name>
  1387. <docblock line="56">
  1388. <description><![CDATA[Set the SNMP instance]]></description>
  1389. <long-description><![CDATA[]]></long-description>
  1390. <tag line="56" name="param" description="the SNMP instance" type="\OSS\SNMP" variable="$snmp">
  1391. <type by_reference="false">\OSS\SNMP</type>
  1392. </tag>
  1393. <tag line="56" name="return" description="An instance of this class for fluent interfaces" type="\OSS\SNMP\MIB">
  1394. <type by_reference="false">\OSS\SNMP\MIB</type>
  1395. </tag>
  1396. </docblock>
  1397. <argument line="56">
  1398. <name>$snmp</name>
  1399. <default><![CDATA[]]></default>
  1400. <type/>
  1401. </argument>
  1402. </method>
  1403. <method final="false" abstract="false" static="false" visibility="public" namespace="OSS\SNMP" line="66" package="Default">
  1404. <name>getSNMP</name>
  1405. <full_name>getSNMP</full_name>
  1406. <docblock line="66">
  1407. <description><![CDATA[Get the SNMP instance]]></description>
  1408. <long-description><![CDATA[]]></long-description>
  1409. <tag line="66" name="return" description="Instance of the SNMP object" type="\OSS\SNMP">
  1410. <type by_reference="false">\OSS\SNMP</type>
  1411. </tag>
  1412. </docblock>
  1413. </method>
  1414. </class>
  1415. <parse_markers>
  1416. <error line="47" code="50018">No DocBlock was found for property $_snmp</error>
  1417. </parse_markers>
  1418. </file>
  1419. <file path="Exception.php" hash="42bb0a661ddb1ce2764c5ad1f05866c3" package="Default">
  1420. <class final="false" abstract="false" namespace="OSS" line="41" package="Default">
  1421. <name>Exception</name>
  1422. <full_name>\OSS\Exception</full_name>
  1423. <extends>Exception</extends>
  1424. <docblock line="41">
  1425. <description><![CDATA[OSS\SNMP\Exception class]]></description>
  1426. <long-description><![CDATA[]]></long-description>
  1427. </docblock>
  1428. </class>
  1429. </file>
  1430. <package name="Default" full_name="Default"/>
  1431. <namespace name="OSS" full_name="OSS">
  1432. <namespace name="SNMP" full_name="OSS\SNMP">
  1433. <namespace name="MIBS" full_name="OSS\SNMP\MIBS">
  1434. <namespace name="Cisco" full_name="OSS\SNMP\MIBS\Cisco"/>
  1435. </namespace>
  1436. </namespace>
  1437. </namespace>
  1438. <marker count="0">todo</marker>
  1439. <marker count="0">fixme</marker>
  1440. <deprecated count="0"/>
  1441. </project>