OSS.SNMP.MIBS.Cisco.CDP.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <!DOCTYPE html><html xmlns:date="http://exslt.org/dates-and-times" lang="en">
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  4. <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
  5. <meta charset="utf-8">
  6. <title>phpDocumentor » \OSS\SNMP\MIBS\Cisco\CDP</title>
  7. <meta name="author" content="Mike van Riel">
  8. <meta name="description" content="">
  9. <link href="../css/template.css" rel="stylesheet" media="all">
  10. <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
  11. <link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
  12. <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
  13. <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
  14. </head>
  15. <body>
  16. <div class="navbar navbar-fixed-top">
  17. <div class="navbar-inner"><div class="container">
  18. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">phpDocumentor</a><div class="nav-collapse"><ul class="nav">
  19. <li class="dropdown">
  20. <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
  21. API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
  22. <li><a>Namespaces</a></li>
  23. <li><a href="../namespaces/OSS.html"><i class="icon-th"></i> OSS</a></li>
  24. </ul>
  25. </li>
  26. <li class="dropdown" id="charts-menu">
  27. <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
  28. Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
  29. </li>
  30. <li class="dropdown" id="reports-menu">
  31. <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
  32. Reports <b class="caret"></b></a><ul class="dropdown-menu">
  33. <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
  34. <span class="label label-info">19</span></a></li>
  35. <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
  36. <ul></ul></a></li>
  37. <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
  38. <span class="label label-info">0</span></a></li>
  39. </ul>
  40. </li>
  41. </ul></div>
  42. </div></div>
  43. <div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
  44. </div>
  45. <div id="___" class="container">
  46. <noscript><div class="alert alert-warning">
  47. Javascript is disabled; several features are only available
  48. if Javascript is enabled.
  49. </div></noscript>
  50. <div class="row">
  51. <div class="span4">
  52. <span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
  53. <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
  54. </div>
  55. <ul class="side-nav nav nav-list">
  56. <li class="nav-header">
  57. <i class="icon-custom icon-method"></i> Methods</li>
  58. <li class="method public "><a href="#deviceId" title="deviceId :: Get the device's CDP (Cisco Discovery Protocol) ID"><span class="description">Get the device's CDP (Cisco Discovery Protocol) ID</span><pre>deviceId()</pre></a></li>
  59. <li class="method public "><a href="#interfaceEnabled" title="interfaceEnabled :: Get the device's interfaces CDP enabled status"><span class="description">Get the device's interfaces CDP enabled status</span><pre>interfaceEnabled()</pre></a></li>
  60. <li class="method public "><a href="#interfaceNames" title="interfaceNames :: Get the device's interface names as seen in CDP"><span class="description">Get the device's interface names as seen in CDP</span><pre>interfaceNames()</pre></a></li>
  61. <li class="method public "><a href="#neighbourCapability" title="neighbourCapability :: Get the device's CDP neighbour capabilities (as a decimal integer) indexed by the current device's port ID"><span class="description">Get the device's CDP neighbour capabilities (as a decimal integer) indexed by the current device's port ID</span><pre>neighbourCapability()</pre></a></li>
  62. <li class="method public "><a href="#neighbourId" title="neighbourId :: Get the device's CDP neighbours (by their CDP ID) indexed by the current device's port ID"><span class="description">Get the device's CDP neighbours (by their CDP ID) indexed by the current device's port ID</span><pre>neighbourId()</pre></a></li>
  63. <li class="method public "><a href="#neighbourInformation" title="neighbourInformation :: CDP utility function to get all CDP neighbours and their connected ports."><span class="description">CDP utility function to get all CDP neighbours and their connected ports.</span><pre>neighbourInformation()</pre></a></li>
  64. <li class="method public "><a href="#neighbourPort" title="neighbourPort :: Get the device's CDP neighbours connected port *description* indexed by the current device's port ID"><span class="description">Get the device's CDP neighbours connected port *description* indexed by the current device's port ID</span><pre>neighbourPort()</pre></a></li>
  65. <li class="nav-header">
  66. <i class="icon-custom icon-constant"></i> Constants</li>
  67. <li class="constant "><a href="#OID_CDP_DEVICE_ID" title="OID_CDP_DEVICE_ID :: "><span class="description">OID_CDP_DEVICE_ID</span><pre>OID_CDP_DEVICE_ID</pre></a></li>
  68. <li class="constant "><a href="#OID_CDP_INTERFACE_ENABLED" title="OID_CDP_INTERFACE_ENABLED :: "><span class="description">OID_CDP_INTERFACE_ENABLED</span><pre>OID_CDP_INTERFACE_ENABLED</pre></a></li>
  69. <li class="constant "><a href="#OID_CDP_INTERFACE_NAME" title="OID_CDP_INTERFACE_NAME :: "><span class="description">OID_CDP_INTERFACE_NAME</span><pre>OID_CDP_INTERFACE_NAME</pre></a></li>
  70. <li class="constant "><a href="#OID_CDP_NEIGHBOUR_CAPABILITY" title="OID_CDP_NEIGHBOUR_CAPABILITY :: "><span class="description">OID_CDP_NEIGHBOUR_CAPABILITY</span><pre>OID_CDP_NEIGHBOUR_CAPABILITY</pre></a></li>
  71. <li class="constant "><a href="#OID_CDP_NEIGHBOUR_ID" title="OID_CDP_NEIGHBOUR_ID :: "><span class="description">OID_CDP_NEIGHBOUR_ID</span><pre>OID_CDP_NEIGHBOUR_ID</pre></a></li>
  72. <li class="constant "><a href="#OID_CDP_NEIGHBOUR_PORT" title="OID_CDP_NEIGHBOUR_PORT :: "><span class="description">OID_CDP_NEIGHBOUR_PORT</span><pre>OID_CDP_NEIGHBOUR_PORT</pre></a></li>
  73. </ul>
  74. </div>
  75. <div class="span8">
  76. <a name="%5COSS%5CSNMP%5CMIBS%5CCisco%5CCDP" id="\OSS\SNMP\MIBS\Cisco\CDP"></a><ul class="breadcrumb">
  77. <li>
  78. <a href="../index.html"><i class="icon-custom icon-class"></i></a><span class="divider">\</span>
  79. </li>
  80. <li><a href="../namespaces/OSS.html">OSS</a></li>
  81. <span class="divider">\</span><li><a href="../namespaces/OSS.SNMP.html">SNMP</a></li>
  82. <span class="divider">\</span><li><a href="../namespaces/OSS.SNMP.MIBS.html">MIBS</a></li>
  83. <span class="divider">\</span><li><a href="../namespaces/OSS.SNMP.MIBS.Cisco.html">Cisco</a></li>
  84. <li class="active">
  85. <span class="divider">\</span><a href="../classes/OSS.SNMP.MIBS.Cisco.CDP.html">CDP</a>
  86. </li>
  87. </ul>
  88. <div href="../classes/OSS.SNMP.MIBS.Cisco.CDP.html" class="element class">
  89. <p class="short_description">A class for performing SNMP V2 queries on Cisco devices</p>
  90. <div class="details">
  91. <p class="long_description"></p>
  92. <table class="table table-bordered">
  93. <tr>
  94. <th>copyright</th>
  95. <td>Copyright (c) 2012, Open Source Solutions Limited, Dublin, Ireland</td>
  96. </tr>
  97. <tr>
  98. <th>author</th>
  99. <td><a href="mailto:barry@opensolutions.ie">Barry O'Donovan</a></td>
  100. </tr>
  101. </table>
  102. <h3>
  103. <i class="icon-custom icon-method"></i> Methods</h3>
  104. <a name="deviceId" id="deviceId"></a><div class="element clickable method public deviceId" data-toggle="collapse" data-target=".deviceId .collapse">
  105. <h2>Get the device's CDP (Cisco Discovery Protocol) ID</h2>
  106. <pre>deviceId() : string</pre>
  107. <div class="labels"></div>
  108. <div class="row collapse"><div class="detail-description">
  109. <p class="long_description"></p>
  110. <h3>Returns</h3>
  111. <div class="subelement response">
  112. <code>string</code>The device's CDP (Cisco Discovery Protocol) ID</div>
  113. </div></div>
  114. </div>
  115. <a name="interfaceEnabled" id="interfaceEnabled"></a><div class="element clickable method public interfaceEnabled" data-toggle="collapse" data-target=".interfaceEnabled .collapse">
  116. <h2>Get the device's interfaces CDP enabled status</h2>
  117. <pre>interfaceEnabled() : array</pre>
  118. <div class="labels"></div>
  119. <div class="row collapse"><div class="detail-description">
  120. <p class="long_description"><p>Applies the TruthValue post processor (self::ppTruthValue()) to turn
  121. SNMP values into true / false.</p></p>
  122. <h3>Returns</h3>
  123. <div class="subelement response">
  124. <code>array</code>The device's interfaces CDP enabled status' (as boolean true / false)</div>
  125. </div></div>
  126. </div>
  127. <a name="interfaceNames" id="interfaceNames"></a><div class="element clickable method public interfaceNames" data-toggle="collapse" data-target=".interfaceNames .collapse">
  128. <h2>Get the device's interface names as seen in CDP</h2>
  129. <pre>interfaceNames() : array</pre>
  130. <div class="labels"></div>
  131. <div class="row collapse"><div class="detail-description">
  132. <p class="long_description"></p>
  133. <h3>Returns</h3>
  134. <div class="subelement response">
  135. <code>array</code>The device's interface names as seen in CDP</div>
  136. </div></div>
  137. </div>
  138. <a name="neighbourCapability" id="neighbourCapability"></a><div class="element clickable method public neighbourCapability" data-toggle="collapse" data-target=".neighbourCapability .collapse">
  139. <h2>Get the device's CDP neighbour capabilities (as a decimal integer) indexed by the current device's port ID</h2>
  140. <pre>neighbourCapability() : array</pre>
  141. <div class="labels"></div>
  142. <div class="row collapse"><div class="detail-description">
  143. <p class="long_description"></p>
  144. <h3>Returns</h3>
  145. <div class="subelement response">
  146. <code>array</code>The device's CDP neighbour capabilities (as a decimal integer) indexed by the current device's port ID</div>
  147. </div></div>
  148. </div>
  149. <a name="neighbourId" id="neighbourId"></a><div class="element clickable method public neighbourId" data-toggle="collapse" data-target=".neighbourId .collapse">
  150. <h2>Get the device's CDP neighbours (by their CDP ID) indexed by the current device's port ID</h2>
  151. <pre>neighbourId() : array</pre>
  152. <div class="labels"></div>
  153. <div class="row collapse"><div class="detail-description">
  154. <p class="long_description"></p>
  155. <h3>Returns</h3>
  156. <div class="subelement response">
  157. <code>array</code>The device's CDP neighbours (by their CDP ID) indexed by the current device's port ID</div>
  158. </div></div>
  159. </div>
  160. <a name="neighbourInformation" id="neighbourInformation"></a><div class="element clickable method public neighbourInformation" data-toggle="collapse" data-target=".neighbourInformation .collapse">
  161. <h2>CDP utility function to get all CDP neighbours and their connected ports.</h2>
  162. <pre>neighbourInformation() : array</pre>
  163. <div class="labels"></div>
  164. <div class="row collapse"><div class="detail-description">
  165. <p class="long_description"><p>Returns an array of neighbours indexed by the neighbour CDP ID. For example:</p>
  166. <p>Array
  167. (
  168. [cr-sw03.ixdub1.opensolutions.ie] => Array
  169. (
  170. [0] => Array
  171. (
  172. [localPortId] => 10101
  173. [localPort] => GigabitEthernet1/0/1
  174. [remotePort] => GigabitEthernet0/1
  175. )</p>
  176. <pre><code> [1] =&gt; Array
  177. (
  178. [localPortId] =&gt; 10102
  179. [localPort] =&gt; GigabitEthernet1/0/2
  180. [remotePort] =&gt; FastEthernet0/2
  181. )
  182. )
  183. [ ... ]
  184. </code></pre>
  185. <p>)</p></p>
  186. <table class="table table-bordered">
  187. <tr>
  188. <th>see</th>
  189. <td>\neighbourId()</td>
  190. </tr>
  191. <tr>
  192. <th>see</th>
  193. <td>\OSS\SNMP\MIBS\Interface::descriptions()</td>
  194. </tr>
  195. <tr>
  196. <th>see</th>
  197. <td>\neighbourPort()</td>
  198. </tr>
  199. </table>
  200. <h3>Returns</h3>
  201. <div class="subelement response">
  202. <code>array</code>CDP neighbours and their connected ports</div>
  203. </div></div>
  204. </div>
  205. <a name="neighbourPort" id="neighbourPort"></a><div class="element clickable method public neighbourPort" data-toggle="collapse" data-target=".neighbourPort .collapse">
  206. <h2>Get the device's CDP neighbours connected port *description* indexed by the current device's port ID</h2>
  207. <pre>neighbourPort() : array</pre>
  208. <div class="labels"></div>
  209. <div class="row collapse"><div class="detail-description">
  210. <p class="long_description"><p>E.g. a sample call may return:</p>
  211. <p>Array
  212. (
  213. [10101] => GigabitEthernet0/1
  214. [10102] => FastEthernet0/2
  215. [10103] => GigabitEthernet1/0/24
  216. [10105] => GigabitEthernet1/0/2
  217. )</p>
  218. <p>meaning, for example, that our local port with ID 10101 is connected to port GigabitEthernet0/1 on the neighbour
  219. connected to that local port. You can discover the neighbour ID via neighbourId().</p></p>
  220. <table class="table table-bordered"><tr>
  221. <th>see</th>
  222. <td>\neighbourId()</td>
  223. </tr></table>
  224. <h3>Returns</h3>
  225. <div class="subelement response">
  226. <code>array</code>The device's CDP neighbours connected port *description* indexed by the current device's port ID</div>
  227. </div></div>
  228. </div>
  229. <h3>
  230. <i class="icon-custom icon-constant"></i> Constants</h3>
  231. <a name="OID_CDP_DEVICE_ID" id="OID_CDP_DEVICE_ID"> </a><div class="element clickable constant OID_CDP_DEVICE_ID" data-toggle="collapse" data-target=".OID_CDP_DEVICE_ID .collapse">
  232. <h2>OID_CDP_DEVICE_ID</h2>
  233. <pre>OID_CDP_DEVICE_ID </pre>
  234. <div class="labels"></div>
  235. <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
  236. </div>
  237. <a name="OID_CDP_INTERFACE_ENABLED" id="OID_CDP_INTERFACE_ENABLED"> </a><div class="element clickable constant OID_CDP_INTERFACE_ENABLED" data-toggle="collapse" data-target=".OID_CDP_INTERFACE_ENABLED .collapse">
  238. <h2>OID_CDP_INTERFACE_ENABLED</h2>
  239. <pre>OID_CDP_INTERFACE_ENABLED </pre>
  240. <div class="labels"></div>
  241. <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
  242. </div>
  243. <a name="OID_CDP_INTERFACE_NAME" id="OID_CDP_INTERFACE_NAME"> </a><div class="element clickable constant OID_CDP_INTERFACE_NAME" data-toggle="collapse" data-target=".OID_CDP_INTERFACE_NAME .collapse">
  244. <h2>OID_CDP_INTERFACE_NAME</h2>
  245. <pre>OID_CDP_INTERFACE_NAME </pre>
  246. <div class="labels"></div>
  247. <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
  248. </div>
  249. <a name="OID_CDP_NEIGHBOUR_CAPABILITY" id="OID_CDP_NEIGHBOUR_CAPABILITY"> </a><div class="element clickable constant OID_CDP_NEIGHBOUR_CAPABILITY" data-toggle="collapse" data-target=".OID_CDP_NEIGHBOUR_CAPABILITY .collapse">
  250. <h2>OID_CDP_NEIGHBOUR_CAPABILITY</h2>
  251. <pre>OID_CDP_NEIGHBOUR_CAPABILITY </pre>
  252. <div class="labels"></div>
  253. <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
  254. </div>
  255. <a name="OID_CDP_NEIGHBOUR_ID" id="OID_CDP_NEIGHBOUR_ID"> </a><div class="element clickable constant OID_CDP_NEIGHBOUR_ID" data-toggle="collapse" data-target=".OID_CDP_NEIGHBOUR_ID .collapse">
  256. <h2>OID_CDP_NEIGHBOUR_ID</h2>
  257. <pre>OID_CDP_NEIGHBOUR_ID </pre>
  258. <div class="labels"></div>
  259. <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
  260. </div>
  261. <a name="OID_CDP_NEIGHBOUR_PORT" id="OID_CDP_NEIGHBOUR_PORT"> </a><div class="element clickable constant OID_CDP_NEIGHBOUR_PORT" data-toggle="collapse" data-target=".OID_CDP_NEIGHBOUR_PORT .collapse">
  262. <h2>OID_CDP_NEIGHBOUR_PORT</h2>
  263. <pre>OID_CDP_NEIGHBOUR_PORT </pre>
  264. <div class="labels"></div>
  265. <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
  266. </div>
  267. </div>
  268. </div>
  269. </div>
  270. </div>
  271. <div class="row"><footer class="span12">
  272. Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
  273. Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a5</a> and<br>
  274. generated on 2012-06-08T14:43:32+01:00.<br></footer></div>
  275. </div>
  276. </body>
  277. </html>