Guest User

Untitled

a guest
Dec 18th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 115.67 KB | None | 0 0
  1. ./noc script --debug get_lldp_neighbors 10.170.112.9
  2. 2017-12-18 17:34:51,079 [noc.core.dcs.base] Resolve near service postgres
  3. 2017-12-18 17:34:51,079 [noc.core.http.client] HTTP GET http://consul:8500/v1/catalog/service/postgres?near=_agent
  4. 2017-12-18 17:34:51,083 [noc.core.http.client] HTTP Response 200
  5. 2017-12-18 17:34:51,084 [noc.core.dcs.base] Resolved near service postgres to ['10.10.10.41:5432']
  6. 2017-12-18 17:34:51,123 [root] Loading PeriodicRegistry
  7. 2017-12-18 17:34:51,893 [noc.core.dcs.base] Running resolver for service mongo
  8. 2017-12-18 17:34:51,893 [noc.core.dcs.base] [mongo] Starting resolver
  9. 2017-12-18 17:34:51,893 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  10. 2017-12-18 17:34:51,895 [noc.core.http.client] HTTP Response 200
  11. 2017-12-18 17:34:51,895 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.10.10.41:27017
  12. 2017-12-18 17:34:51,895 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=702728&passi ng=1
  13. 2017-12-18 17:34:51,896 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 're adPreference': 'secondaryPreferred', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://no c:********@10.10.10.41:27017/noc', 'password': '********'}
  14. 2017-12-18 17:34:51,906 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  15. 2017-12-18 17:34:51,933 [noc.main.models.doccategory] Registering Capability
  16. 2017-12-18 17:34:51,934 [noc.main.models.doccategory] Registering MetricType
  17. 2017-12-18 17:34:51,973 [noc.main.models.doccategory] Registering ConnectionType
  18. 2017-12-18 17:34:51,976 [noc.main.models.doccategory] Registering ObjectModel
  19. 2017-12-18 17:34:51,988 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  20. 2017-12-18 17:34:52,007 [noc.main.models.textindex] Adding FTS index for ip.vrf
  21. 2017-12-18 17:34:52,011 [noc.main.models.textindex] Adding FTS index for vc.vc
  22. 2017-12-18 17:34:52,013 [noc.main.models.textindex] Adding FTS index for ip.prefix
  23. 2017-12-18 17:34:52,014 [noc.main.models.textindex] Adding FTS index for ip.address
  24. 2017-12-18 17:34:52,070 [noc.core.script.loader] Loading script DLink.DxS.get_lldp_neighbors
  25. 2017-12-18 17:34:52,093 [noc.core.profile.loader] Loading profile DLink.DxS
  26. 2017-12-18 17:34:52,094 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] Filling get_version cache with {'platfor m': u'DXS-3326GSR', 'version': u'4.50-B19', 'vendor': u'D-Link'}
  27. 2017-12-18 17:34:52,094 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] Running. Input arguments: {}, timeout 36 00
  28. 2017-12-18 17:34:52,094 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] Open telnet CLI
  29. 2017-12-18 17:34:52,096 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Setup session
  30. 2017-12-18 17:34:52,097 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Creating IOLoop
  31. 2017-12-18 17:34:52,097 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Connecting (u'10.170.112.9', 23 )
  32. 2017-12-18 17:34:52,101 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Connected
  33. 2017-12-18 17:34:52,101 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] State: <START>
  34. 2017-12-18 17:34:52,101 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Setting timeout: 60s
  35. 2017-12-18 17:34:52,166 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received DO SGA
  36. 2017-12-18 17:34:52,166 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Send WILL SGA
  37. 2017-12-18 17:34:52,170 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received WILL SGA
  38. 2017-12-18 17:34:52,170 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Send DO SGA
  39. 2017-12-18 17:34:52,170 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received WILL ECHO
  40. 2017-12-18 17:34:52,170 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Send DO ECHO
  41. 2017-12-18 17:34:52,203 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\x1b[0m\x1b[1;1H\x1b [2J\x1b[1;1H\x1b[2J\n\r DXS-3326GSR Stackable Ethernet Switch\n\r Comma nd Line Interface\n\r\n\r Firmware: Build 4.50-B19\n\r Copyright(C) 2004-2007 D-Link All rights reserved.\n\r \rUserName:'
  42. 2017-12-18 17:34:52,203 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Match: ([Uu]ser ?[Nn]ame|[Ll]og in): ?
  43. 2017-12-18 17:34:52,203 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] State: <USERNAME>
  44. 2017-12-18 17:34:52,203 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Send: 'script2\n'
  45. 2017-12-18 17:34:52,203 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Setting timeout: 30s
  46. 2017-12-18 17:34:52,426 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 's'
  47. 2017-12-18 17:34:52,467 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'cript2\n\r \rPassWor d:'
  48. 2017-12-18 17:34:52,467 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Match: [Pp]ass[Ww]ord: ?
  49. 2017-12-18 17:34:52,467 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] State: <PASSWORD>
  50. 2017-12-18 17:34:52,467 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Send: '****\r\n'
  51. 2017-12-18 17:34:52,467 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Setting timeout: 30s
  52. 2017-12-18 17:34:52,488 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '*'
  53. 2017-12-18 17:34:52,531 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '******\n\r\n\rDXS-33 26GSR:5#'
  54. 2017-12-18 17:34:52,531 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Match: (?P<hostname>\S+)(?<!:(3 |6))(?<!:operator)(?<!:user)#
  55. 2017-12-18 17:34:52,531 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] State: <PROMT>
  56. 2017-12-18 17:34:52,531 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Refining pattern prompt to 'DXS \\-3326GSR\\:5(?<!:(3|6))(?<!:operator)(?<!:user)#'
  57. 2017-12-18 17:34:52,531 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Resetting timeouts
  58. 2017-12-18 17:34:52,532 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Send: '\n'
  59. 2017-12-18 17:34:52,541 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rDXS-3326GSR:5#'
  60. 2017-12-18 17:34:52,541 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Match: DXS\-3326GSR\:5(?<!:(3|6 ))(?<!:operator)(?<!:user)#
  61. 2017-12-18 17:34:52,541 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] State: <PROMT>
  62. 2017-12-18 17:34:52,541 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Command:
  63.  
  64.  
  65. 2017-12-18 17:34:52,541 [noc.core.script.loader] Loading script DLink.DxS.get_switch
  66. 2017-12-18 17:34:52,542 [script] [DLink.DxS.get_switch|10.170.112.9] Running. Input arguments: {}, timeout 3600
  67. 2017-12-18 17:34:52,542 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Send: 'show switch\n'
  68. 2017-12-18 17:34:52,669 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 's'
  69. 2017-12-18 17:34:52,711 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'how switch'
  70. 2017-12-18 17:34:52,818 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rCommand: show sw itch\n\r\n\rDevice Type : DXS-3326GSR Stackable Ethernet Switch\n\rUnit ID : 1\n\rMAC Address : 00-15-E9-3B-66-00\n\rIP Address : 10.170.112.9 (Manual)\n\rVLAN Name : manag-egor\n\rSubnet Mask : 255.255.255.0\n\rDefault Gateway : 10.170.112.254\n\rBoot PROM Version : Build 2.01-B01\n\rFirmware Version : Build 4.50-B19\n\rHardware Version : 5A1.2A1\n\rDevice S/N : \n\rSystem Name : \n\rSystem Location : \n\rSystem Contact : \n\rSpanning Tree : Disabled\n\rGVRP : Disabled\n\rIGMP Snooping : Disab led\n\rRIP : Disabled\n\rDVMRP : Disabled\n\rPIM : Disabled\n\rOSPF : Disabled\n\rTELNET : Enabled (TCP 23)\n\rRMON : Disabled\n\rSSH status : Disable d\n\r802.1x : Disabled\n\rJumbo Frame : On\n\rClipaging : Disabled\n\rMAC Notification : Di sabled\n\rPort Mirror : Disabled\n\rSNTP : Disabled\n\rBootp Relay : Disabled\r\r\n\rDNSR'
  71. 2017-12-18 17:34:52,819 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' Status : Disa bled \n\rVRRP : Disabled\n\rHOL Prevention State : Enabled\n\rSyslog Global State : Disabled\n\rSingle IP Management : Disabled\n\rDual Image : Supported\n\rCPU Interface Filter : Disabled\n\r\n\rDXS-3326GSR:5# '
  72. 2017-12-18 17:34:52,819 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Match: DXS\-3326GSR\:5(?<!:(3|6 ))(?<!:operator)(?<!:user)#
  73. 2017-12-18 17:34:52,819 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] State: <PROMT>
  74. 2017-12-18 17:34:52,819 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Command: show switch
  75. show switch
  76. Command: show switch
  77.  
  78. Device Type : DXS-3326GSR Stackable Ethernet Switch
  79. Unit ID : 1
  80. MAC Address : 00-15-E9-3B-66-00
  81. IP Address : 10.170.112.9 (Manual)
  82. VLAN Name : manag-egor
  83. Subnet Mask : 255.255.255.0
  84. Default Gateway : 10.170.112.254
  85. Boot PROM Version : Build 2.01-B01
  86. Firmware Version : Build 4.50-B19
  87. Hardware Version : 5A1.2A1
  88. Device S/N :
  89. System Name :
  90. System Location :
  91. System Contact :
  92. Spanning Tree : Disabled
  93. GVRP : Disabled
  94. IGMP Snooping : Disabled
  95. RIP : Disabled
  96. DVMRP : Disabled
  97. PIM : Disabled
  98. OSPF : Disabled
  99. TELNET : Enabled (TCP 23)
  100. RMON : Disabled
  101. SSH status : Disabled
  102. 802.1x : Disabled
  103. Jumbo Frame : On
  104. Clipaging : Disabled
  105. MAC Notification : Disabled
  106. Port Mirror : Disabled
  107. SNTP : Disabled
  108. Bootp Relay : Disabled
  109. DNSR Status : Disabled
  110. VRRP : Disabled
  111. HOL Prevention State : Enabled
  112. Syslog Global State : Disabled
  113. Single IP Management : Disabled
  114. Dual Image : Supported
  115. CPU Interface Filter : Disabled
  116.  
  117.  
  118. 2017-12-18 17:34:52,820 [script] [DLink.DxS.get_switch|10.170.112.9] Caching result
  119. 2017-12-18 17:34:52,820 [script] [DLink.DxS.get_switch|10.170.112.9] Result: Command: show switch
  120.  
  121. Device Type : DXS-3326GSR Stackable Ethernet Switch
  122. Unit ID : 1
  123. MAC Address : 00-15-E9-3B-66-00
  124. IP Address : 10.170.112.9 (Manual)
  125. VLAN Name : manag-egor
  126. Subnet Mask : 255.255.255.0
  127. Default Gateway : 10.170.112.254
  128. Boot PROM Version : Build 2.01-B01
  129. Firmware Version : Build 4.50-B19
  130. Hardware Version : 5A1.2A1
  131. Device S/N :
  132. System Name :
  133. System Location :
  134. System Contact :
  135. Spanning Tree : Disabled
  136. GVRP : Disabled
  137. IGMP Snooping : Disabled
  138. RIP : Disabled
  139. DVMRP : Disabled
  140. PIM : Disabled
  141. OSPF : Disabled
  142. TELNET : Enabled (TCP 23)
  143. RMON : Disabled
  144. SSH status : Disabled
  145. 802.1x : Disabled
  146. Jumbo Frame : On
  147. Clipaging : Disabled
  148. MAC Notification : Disabled
  149. Port Mirror : Disabled
  150. SNTP : Disabled
  151. Bootp Relay : Disabled
  152. DNSR Status : Disabled
  153. VRRP : Disabled
  154. HOL Prevention State : Enabled
  155. Syslog Global State : Disabled
  156. Single IP Management : Disabled
  157. Dual Image : Supported
  158. CPU Interface Filter : Disabled
  159.  
  160.  
  161. 2017-12-18 17:34:52,820 [script] [DLink.DxS.get_switch|10.170.112.9] Complete (278.75ms)
  162. 2017-12-18 17:34:52,821 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Send: 'show lldp remote_ports m ode normal\n'
  163. 2017-12-18 17:34:52,875 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 's'
  164. 2017-12-18 17:34:52,921 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'how lldp remote_port s mode normal\n\rCommand: show lldp remote_ports mode normal\n\r'
  165. 2017-12-18 17:34:53,058 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:1 \n \r---------------------------------------------------------------------------\n\rRemote Entities Count : 1 \n\rEntity 1 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : 00-21-91-5A-8F-8F\n\r Port ID Subtype : Local \n\r Port ID : 1/25\n\r Port Description : \n\r System Name : \n\r System Descript'
  166. 2017-12-18 17:34:53,058 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'ion : \n\r System Capabilities : \n\r Management Address Count : 0 \n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r V LAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Co nfiguration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggr egation '
  167. 2017-12-18 17:34:53,058 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r'
  168. 2017-12-18 17:34:53,392 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:2 \n \r---------------------------------------------------------------------------\n\rRemote Entities Count : 4 \n\rEntity 1 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : 28-10-7B-FE-15-80\n\r Port ID Subtype : MAC Address \n\r Port ID : (\x10{\xfe\x15\x99\n\r Port Description : \n\r System Name : \n\r System'
  169. 2017-12-18 17:34:53,392 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' Description : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0 \n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r M AC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation '
  170. 2017-12-18 17:34:53,393 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : (None )\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\r Entity 2 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : 28-10-7B-FE-15-80\n\r Port ID Subtype : MAC Address \n\r Port ID : (\x10{\xfe\x15\x99\n\r Port Description : \n\r System Name : \n\r '
  171. 2017-12-18 17:34:53,393 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'System Description : \n\r System Capabilities : \n\r Management Address Count : 0'
  172. 2017-12-18 17:34:53,393 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Cou nt : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity 3 \n\r '
  173. 2017-12-18 17:34:53,394 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' Chassis ID Subtype : MAC Address \n\r Chassis ID : 28-10-7B-FE-15-80\n\r Port ID Subtype : MAC Address \n\r Port ID : (\x10 {\xfe\x15\x99\n\r Port Description : \n\r System Name : \n\r System Description : \n\r System Capabilities : \n\r Management Address Count '
  174. 2017-12-18 17:34:53,394 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : 0\n\r Port P VID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entri es Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/St atus : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity '
  175. 2017-12-18 17:34:53,405 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '4 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : 28-10-7B-FE-15-8 0\n\r Port ID Subtype : MAC Address '
  176. 2017-12-18 17:34:53,897 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\r Port ID : (\x10{\xfe\x15\x99\n\r Port Description : \n\r System Name : \n\r System Description : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Coun'
  177. 2017-12-18 17:34:53,897 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 't : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r'
  178. 2017-12-18 17:34:54,198 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:3 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 4 \n\rEntity 1 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : 78-54-2E-46-19-60\n\r Port ID Subtype : MAC Address \n\r Port ID : xT.F\x19r\n\r Port Description : \n\r System Name : \n\r System'
  179. 2017-12-18 17:34:54,199 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' Description : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation '
  180. 2017-12-18 17:34:54,200 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity 2 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : 78-54-2E-46-19-60\n\r Port ID Subtype : MAC Address \n\r Port ID : xT.F\x19r\n\r Port Description : \n\r System Name : \n\r System Description : \n\r System Capabilities : \n\r Management Address Count : 0'
  181. 2017-12-18 17:34:54,200 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity 3 \n\r '
  182. 2017-12-18 17:34:54,201 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' Chassis ID Subtype : MAC Address \n\r Chassis ID : 78-54-2E-46-19-60\n\r Port ID Subtype : MAC Address \n\r Port ID : xT.F\x19r\n\r Port Description : \n\r System Name : \n\r System Description : \n\r System Capabilities : \n\r Management Address Count '
  183. 2017-12-18 17:34:54,201 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity '
  184. 2017-12-18 17:34:54,202 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '4 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : 78-54-2E-46-19-60\n\r Port ID Subtype : MAC Address \n\r Port ID : xT.F\x19r\n\r Port Description : \n\r System Name : \n\r System Description : \n\r System Capabilities : \n\r Management Address Count '
  185. 2017-12-18 17:34:54,248 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r'
  186. 2017-12-18 17:34:54,894 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:4 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 4 \n\rEntity 1 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : 1C-BD-B9-6B-F7-60\n\r Port ID Subtype : Local \n\r Port ID : 1/25\n\r Port Description : \n\r System Name : \n\r System Descript'
  187. 2017-12-18 17:34:54,895 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'ion : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation '
  188. 2017-12-18 17:34:54,895 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity 2 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : 1C-BD-B9-6B-F7-60\n\r Port ID Subtype : Local \n\r Port ID : 1/25\n\r Port Description : \n\r System Name : \n\r System Description'
  189. 2017-12-18 17:34:54,896 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0'
  190. 2017-12-18 17:34:54,896 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity 3 \n\r Chassis ID Subtype : MAC A'
  191. 2017-12-18 17:34:54,896 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'ddress \n\r Chassis ID : 1C-BD-B9-6B-F7-60\n\r Port ID Subtype : Local \n\r Port ID : 1/25\n\r Port Description : \n\r System Name : \n\r System Description : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r '
  192. 2017-12-18 17:34:54,897 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity 4 \n\r Chassis ID Subtype : MAC Addr'
  193. 2017-12-18 17:34:54,897 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'ess \n\r Chassis ID : 1C-BD-B9-6B-F7-60\n\r Port ID Subtype : Local \n\r Port ID : 1/25\n\r Port Description : \n\r System Name : \n\r System Description : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r '
  194. 2017-12-18 17:34:54,953 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rPort ID : 1:5 \n\r-------------------------------------------------------'
  195. 2017-12-18 17:34:54,953 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '--------------------\n\rRemote Entities Count : 1 \n\rEntity 1 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : 00-26-5A-89-DE-A0\n\r Port ID Subtype : Local \n\r Port ID : 1/28\n\r Port Description : \n\r System Name : \n\r System Description : \n\r System Capabilities '
  196. 2017-12-18 17:34:54,954 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unk'
  197. 2017-12-18 17:34:54,966 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'nown TLVs Count : 0\n\r'
  198. 2017-12-18 17:34:55,647 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:6 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 4 \n\rEntity 1 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : CC-B2-55-74-2F-E0\n\r Port ID Subtype : MAC Address \n\r Port ID : \xcc\xb2Ut/\xf9\n\r Port Description : \n\r System Name : \n\r System'
  199. 2017-12-18 17:34:55,647 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' Description : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation '
  200. 2017-12-18 17:34:55,648 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity 2 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : CC-B2-55-74-2F-E0\n\r Port ID Subtype : MAC Address \n\r Port ID : \xcc\xb2Ut/\xf9\n\r Port Description : \n\r System Name : \n\r '
  201. 2017-12-18 17:34:55,648 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'System Description : \n\r System Capabilities : \n\r Management Address Count : 0'
  202. 2017-12-18 17:34:55,648 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity 3 \n\r '
  203. 2017-12-18 17:34:55,649 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' Chassis ID Subtype : MAC Address \n\r Chassis ID : CC-B2-55-74-2F-E0\n\r Port ID Subtype : MAC Address \n\r Port ID : \xcc\xb2Ut/\xf9\n\r Port Description : \n\r System Name : \n\r System Description : \n\r System Capabilities : \n\r Management Address Count '
  204. 2017-12-18 17:34:55,655 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r'
  205. 2017-12-18 17:34:55,858 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:7 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 1 \n\rEntity 1 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : 00-1E-58-A6-EB-D5\n\r Port ID Subtype : Local \n\r Port ID : 1/25\n\r Port Description : \n\r System Name : \n\r System Descript'
  206. 2017-12-18 17:34:55,859 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'ion : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation '
  207. 2017-12-18 17:34:55,859 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r'
  208. 2017-12-18 17:34:56,013 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:8 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  209. 2017-12-18 17:34:56,213 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:9 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  210. 2017-12-18 17:34:56,413 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:10 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  211. 2017-12-18 17:34:57,110 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:11 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  212. 2017-12-18 17:34:57,213 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:12 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  213. 2017-12-18 17:34:57,413 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:13 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  214. 2017-12-18 17:34:57,613 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:14 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  215. 2017-12-18 17:34:57,813 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:15 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  216. 2017-12-18 17:34:58,013 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:16 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  217. 2017-12-18 17:34:58,213 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:17 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  218. 2017-12-18 17:34:58,413 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:18 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  219. 2017-12-18 17:34:58,744 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:19 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 4 \n\rEntity 1 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : F8-E9-03-DD-F3-E0\n\r Port ID Subtype : Local \n\r Port ID : 25\n\r Port Description : \n\r System Name : \n\r System Descripti'
  220. 2017-12-18 17:34:58,745 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'on : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation '
  221. 2017-12-18 17:34:58,745 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity 2 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : F8-E9-03-DD-F3-E0\n\r Port ID Subtype : Local \n\r Port ID : 25\n\r Port Description : \n\r System Name : \n\r System Description '
  222. 2017-12-18 17:34:58,745 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0'
  223. 2017-12-18 17:34:59,297 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity 3 \n\r Chassis ID Subtype : MAC A'
  224. 2017-12-18 17:34:59,297 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'ddress \n\r Chassis ID : F8-E9-03-DD-F3-E0\n\r Port ID Subtype : Local \n\r Port ID : 25\n\r Port Description : \n\r System Name : \n\r System Description : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r '
  225. 2017-12-18 17:34:59,298 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r\n\rEntity 4 \n\r Chassis ID Subtype : MAC Addres'
  226. 2017-12-18 17:34:59,298 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 's \n\r Chassis ID : F8-E9-03-DD-F3-E0\n\r Port ID Subtype : Local \n\r Port ID : 25'
  227. 2017-12-18 17:34:59,299 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\r Port Description : \n\r System Name : \n\r System Description : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status '
  228. 2017-12-18 17:34:59,303 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r'
  229. 2017-12-18 17:34:59,413 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:20 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  230. 2017-12-18 17:34:59,613 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:21 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  231. 2017-12-18 17:34:59,813 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:22 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  232. 2017-12-18 17:35:00,013 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:23 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  233. 2017-12-18 17:35:00,258 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:24 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 1 \n\rEntity 1 \n\r Chassis ID Subtype : MAC Address \n\r Chassis ID : 00-15-E9-94-89-00\n\r Port ID Subtype : Local \n\r Port ID : 1/24\n\r Port Description : \n\r System Name : \n\r System Descrip'
  234. 2017-12-18 17:35:00,259 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: 'tion : \n\r System Capabilities : \n\r Management Address Count : 0\n\r Port PVID : 0\n\r PPVID Entries Count : 0\n\r VLAN Name Entries Count : 0\n\r Protocol ID Entries Count : 0\n\r MAC/PHY Configuration/Status : (None)\n\r Power Via MDI : (None)\n\r Link Aggregation '
  235. 2017-12-18 17:35:00,259 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: ' : (None)\n\r Maximum Frame Size : 0\n\r Unknown TLVs Count : 0\n\r'
  236. 2017-12-18 17:35:00,413 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:25 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r'
  237. 2017-12-18 17:35:00,628 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Received: '\n\rPort ID : 1:26 \n\r---------------------------------------------------------------------------\n\rRemote Entities Count : 0 \n\r (None)\n\r\n\r\n\rDXS-3326GSR:5#'
  238. 2017-12-18 17:35:00,628 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Match: DXS\-3326GSR\:5(?<!:(3|6))(?<!:operator)(?<!:user)#
  239. 2017-12-18 17:35:00,628 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] State: <PROMT>
  240. 2017-12-18 17:35:00,628 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Command: show lldp remote_ports mode normal
  241. show lldp remote_ports mode normal
  242. Command: show lldp remote_ports mode normal
  243.  
  244. Port ID : 1:1
  245. ---------------------------------------------------------------------------
  246. Remote Entities Count : 1
  247. Entity 1
  248. Chassis ID Subtype : MAC Address
  249. Chassis ID : 00-21-91-5A-8F-8F
  250. Port ID Subtype : Local
  251. Port ID : 1/25
  252. Port Description :
  253. System Name :
  254. System Description :
  255. System Capabilities :
  256. Management Address Count : 0
  257. Port PVID : 0
  258. PPVID Entries Count : 0
  259. VLAN Name Entries Count : 0
  260. Protocol ID Entries Count : 0
  261. MAC/PHY Configuration/Status : (None)
  262. Power Via MDI : (None)
  263. Link Aggregation : (None)
  264. Maximum Frame Size : 0
  265. Unknown TLVs Count : 0
  266.  
  267. Port ID : 1:2
  268. ---------------------------------------------------------------------------
  269. Remote Entities Count : 4
  270. Entity 1
  271. Chassis ID Subtype : MAC Address
  272. Chassis ID : 28-10-7B-FE-15-80
  273. Port ID Subtype : MAC Address
  274. Port ID : ({â–’â–’
  275. Port Description :
  276. System Name :
  277. System Description :
  278. System Capabilities :
  279. Management Address Count : 0
  280. Port PVID : 0
  281. PPVID Entries Count : 0
  282. VLAN Name Entries Count : 0
  283. Protocol ID Entries Count : 0
  284. MAC/PHY Configuration/Status : (None)
  285. Power Via MDI : (None)
  286. Link Aggregation : (None)
  287. Maximum Frame Size : 0
  288. Unknown TLVs Count : 0
  289.  
  290. Entity 2
  291. Chassis ID Subtype : MAC Address
  292. Chassis ID : 28-10-7B-FE-15-80
  293. Port ID Subtype : MAC Address
  294. Port ID : ({â–’â–’
  295. Port Description :
  296. System Name :
  297. System Description :
  298. System Capabilities :
  299. Management Address Count : 0
  300. Port PVID : 0
  301. PPVID Entries Count : 0
  302. VLAN Name Entries Count : 0
  303. Protocol ID Entries Count : 0
  304. MAC/PHY Configuration/Status : (None)
  305. Power Via MDI : (None)
  306. Link Aggregation : (None)
  307. Maximum Frame Size : 0
  308. Unknown TLVs Count : 0
  309.  
  310. Entity 3
  311. Chassis ID Subtype : MAC Address
  312. Chassis ID : 28-10-7B-FE-15-80
  313. Port ID Subtype : MAC Address
  314. Port ID : ({â–’â–’
  315. Port Description :
  316. System Name :
  317. System Description :
  318. System Capabilities :
  319. Management Address Count : 0
  320. Port PVID : 0
  321. PPVID Entries Count : 0
  322. VLAN Name Entries Count : 0
  323. Protocol ID Entries Count : 0
  324. MAC/PHY Configuration/Status : (None)
  325. Power Via MDI : (None)
  326. Link Aggregation : (None)
  327. Maximum Frame Size : 0
  328. Unknown TLVs Count : 0
  329.  
  330. Entity 4
  331. Chassis ID Subtype : MAC Address
  332. Chassis ID : 28-10-7B-FE-15-80
  333. Port ID Subtype : MAC Address
  334. Port ID : ({â–’â–’
  335. Port Description :
  336. System Name :
  337. System Description :
  338. System Capabilities :
  339. Management Address Count : 0
  340. Port PVID : 0
  341. PPVID Entries Count : 0
  342. VLAN Name Entries Count : 0
  343. Protocol ID Entries Count : 0
  344. MAC/PHY Configuration/Status : (None)
  345. Power Via MDI : (None)
  346. Link Aggregation : (None)
  347. Maximum Frame Size : 0
  348. Unknown TLVs Count : 0
  349.  
  350. Port ID : 1:3
  351. ---------------------------------------------------------------------------
  352. Remote Entities Count : 4
  353. Entity 1
  354. Chassis ID Subtype : MAC Address
  355. Chassis ID : 78-54-2E-46-19-60
  356. Port ID Subtype : MAC Address
  357. Port ID : xT.Fr
  358. Port Description :
  359. System Name :
  360. System Description :
  361. System Capabilities :
  362. Management Address Count : 0
  363. Port PVID : 0
  364. PPVID Entries Count : 0
  365. VLAN Name Entries Count : 0
  366. Protocol ID Entries Count : 0
  367. MAC/PHY Configuration/Status : (None)
  368. Power Via MDI : (None)
  369. Link Aggregation : (None)
  370. Maximum Frame Size : 0
  371. Unknown TLVs Count : 0
  372.  
  373. Entity 2
  374. Chassis ID Subtype : MAC Address
  375. Chassis ID : 78-54-2E-46-19-60
  376. Port ID Subtype : MAC Address
  377. Port ID : xT.Fr
  378. Port Description :
  379. System Name :
  380. System Description :
  381. System Capabilities :
  382. Management Address Count : 0
  383. Port PVID : 0
  384. PPVID Entries Count : 0
  385. VLAN Name Entries Count : 0
  386. Protocol ID Entries Count : 0
  387. MAC/PHY Configuration/Status : (None)
  388. Power Via MDI : (None)
  389. Link Aggregation : (None)
  390. Maximum Frame Size : 0
  391. Unknown TLVs Count : 0
  392.  
  393. Entity 3
  394. Chassis ID Subtype : MAC Address
  395. Chassis ID : 78-54-2E-46-19-60
  396. Port ID Subtype : MAC Address
  397. Port ID : xT.Fr
  398. Port Description :
  399. System Name :
  400. System Description :
  401. System Capabilities :
  402. Management Address Count : 0
  403. Port PVID : 0
  404. PPVID Entries Count : 0
  405. VLAN Name Entries Count : 0
  406. Protocol ID Entries Count : 0
  407. MAC/PHY Configuration/Status : (None)
  408. Power Via MDI : (None)
  409. Link Aggregation : (None)
  410. Maximum Frame Size : 0
  411. Unknown TLVs Count : 0
  412.  
  413. Entity 4
  414. Chassis ID Subtype : MAC Address
  415. Chassis ID : 78-54-2E-46-19-60
  416. Port ID Subtype : MAC Address
  417. Port ID : xT.Fr
  418. Port Description :
  419. System Name :
  420. System Description :
  421. System Capabilities :
  422. Management Address Count : 0
  423. Port PVID : 0
  424. PPVID Entries Count : 0
  425. VLAN Name Entries Count : 0
  426. Protocol ID Entries Count : 0
  427. MAC/PHY Configuration/Status : (None)
  428. Power Via MDI : (None)
  429. Link Aggregation : (None)
  430. Maximum Frame Size : 0
  431. Unknown TLVs Count : 0
  432.  
  433. Port ID : 1:4
  434. ---------------------------------------------------------------------------
  435. Remote Entities Count : 4
  436. Entity 1
  437. Chassis ID Subtype : MAC Address
  438. Chassis ID : 1C-BD-B9-6B-F7-60
  439. Port ID Subtype : Local
  440. Port ID : 1/25
  441. Port Description :
  442. System Name :
  443. System Description :
  444. System Capabilities :
  445. Management Address Count : 0
  446. Port PVID : 0
  447. PPVID Entries Count : 0
  448. VLAN Name Entries Count : 0
  449. Protocol ID Entries Count : 0
  450. MAC/PHY Configuration/Status : (None)
  451. Power Via MDI : (None)
  452. Link Aggregation : (None)
  453. Maximum Frame Size : 0
  454. Unknown TLVs Count : 0
  455.  
  456. Entity 2
  457. Chassis ID Subtype : MAC Address
  458. Chassis ID : 1C-BD-B9-6B-F7-60
  459. Port ID Subtype : Local
  460. Port ID : 1/25
  461. Port Description :
  462. System Name :
  463. System Description :
  464. System Capabilities :
  465. Management Address Count : 0
  466. Port PVID : 0
  467. PPVID Entries Count : 0
  468. VLAN Name Entries Count : 0
  469. Protocol ID Entries Count : 0
  470. MAC/PHY Configuration/Status : (None)
  471. Power Via MDI : (None)
  472. Link Aggregation : (None)
  473. Maximum Frame Size : 0
  474. Unknown TLVs Count : 0
  475.  
  476. Entity 3
  477. Chassis ID Subtype : MAC Address
  478. Chassis ID : 1C-BD-B9-6B-F7-60
  479. Port ID Subtype : Local
  480. Port ID : 1/25
  481. Port Description :
  482. System Name :
  483. System Description :
  484. System Capabilities :
  485. Management Address Count : 0
  486. Port PVID : 0
  487. PPVID Entries Count : 0
  488. VLAN Name Entries Count : 0
  489. Protocol ID Entries Count : 0
  490. MAC/PHY Configuration/Status : (None)
  491. Power Via MDI : (None)
  492. Link Aggregation : (None)
  493. Maximum Frame Size : 0
  494. Unknown TLVs Count : 0
  495.  
  496. Entity 4
  497. Chassis ID Subtype : MAC Address
  498. Chassis ID : 1C-BD-B9-6B-F7-60
  499. Port ID Subtype : Local
  500. Port ID : 1/25
  501. Port Description :
  502. System Name :
  503. System Description :
  504. System Capabilities :
  505. Management Address Count : 0
  506. Port PVID : 0
  507. PPVID Entries Count : 0
  508. VLAN Name Entries Count : 0
  509. Protocol ID Entries Count : 0
  510. MAC/PHY Configuration/Status : (None)
  511. Power Via MDI : (None)
  512. Link Aggregation : (None)
  513. Maximum Frame Size : 0
  514. Unknown TLVs Count : 0
  515.  
  516. Port ID : 1:5
  517. ---------------------------------------------------------------------------
  518. Remote Entities Count : 1
  519. Entity 1
  520. Chassis ID Subtype : MAC Address
  521. Chassis ID : 00-26-5A-89-DE-A0
  522. Port ID Subtype : Local
  523. Port ID : 1/28
  524. Port Description :
  525. System Name :
  526. System Description :
  527. System Capabilities :
  528. Management Address Count : 0
  529. Port PVID : 0
  530. PPVID Entries Count : 0
  531. VLAN Name Entries Count : 0
  532. Protocol ID Entries Count : 0
  533. MAC/PHY Configuration/Status : (None)
  534. Power Via MDI : (None)
  535. Link Aggregation : (None)
  536. Maximum Frame Size : 0
  537. Unknown TLVs Count : 0
  538.  
  539. Port ID : 1:6
  540. ---------------------------------------------------------------------------
  541. Remote Entities Count : 4
  542. Entity 1
  543. Chassis ID Subtype : MAC Address
  544. Chassis ID : CC-B2-55-74-2F-E0
  545. Port ID Subtype : MAC Address
  546. Port ID : ̲Ut/▒
  547. Port Description :
  548. System Name :
  549. System Description :
  550. System Capabilities :
  551. Management Address Count : 0
  552. Port PVID : 0
  553. PPVID Entries Count : 0
  554. VLAN Name Entries Count : 0
  555. Protocol ID Entries Count : 0
  556. MAC/PHY Configuration/Status : (None)
  557. Power Via MDI : (None)
  558. Link Aggregation : (None)
  559. Maximum Frame Size : 0
  560. Unknown TLVs Count : 0
  561.  
  562. Entity 2
  563. Chassis ID Subtype : MAC Address
  564. Chassis ID : CC-B2-55-74-2F-E0
  565. Port ID Subtype : MAC Address
  566. Port ID : ̲Ut/▒
  567. Port Description :
  568. System Name :
  569. System Description :
  570. System Capabilities :
  571. Management Address Count : 0
  572. Port PVID : 0
  573. PPVID Entries Count : 0
  574. VLAN Name Entries Count : 0
  575. Protocol ID Entries Count : 0
  576. MAC/PHY Configuration/Status : (None)
  577. Power Via MDI : (None)
  578. Link Aggregation : (None)
  579. Maximum Frame Size : 0
  580. Unknown TLVs Count : 0
  581.  
  582. Entity 3
  583. Chassis ID Subtype : MAC Address
  584. Chassis ID : CC-B2-55-74-2F-E0
  585. Port ID Subtype : MAC Address
  586. Port ID : ̲Ut/▒
  587. Port Description :
  588. System Name :
  589. System Description :
  590. System Capabilities :
  591. Management Address Count : 0
  592. Port PVID : 0
  593. PPVID Entries Count : 0
  594. VLAN Name Entries Count : 0
  595. Protocol ID Entries Count : 0
  596. MAC/PHY Configuration/Status : (None)
  597. Power Via MDI : (None)
  598. Link Aggregation : (None)
  599. Maximum Frame Size : 0
  600. Unknown TLVs Count : 0
  601.  
  602. Port ID : 1:7
  603. ---------------------------------------------------------------------------
  604. Remote Entities Count : 1
  605. Entity 1
  606. Chassis ID Subtype : MAC Address
  607. Chassis ID : 00-1E-58-A6-EB-D5
  608. Port ID Subtype : Local
  609. Port ID : 1/25
  610. Port Description :
  611. System Name :
  612. System Description :
  613. System Capabilities :
  614. Management Address Count : 0
  615. Port PVID : 0
  616. PPVID Entries Count : 0
  617. VLAN Name Entries Count : 0
  618. Protocol ID Entries Count : 0
  619. MAC/PHY Configuration/Status : (None)
  620. Power Via MDI : (None)
  621. Link Aggregation : (None)
  622. Maximum Frame Size : 0
  623. Unknown TLVs Count : 0
  624.  
  625. Port ID : 1:8
  626. ---------------------------------------------------------------------------
  627. Remote Entities Count : 0
  628. (None)
  629.  
  630. Port ID : 1:9
  631. ---------------------------------------------------------------------------
  632. Remote Entities Count : 0
  633. (None)
  634.  
  635. Port ID : 1:10
  636. ---------------------------------------------------------------------------
  637. Remote Entities Count : 0
  638. (None)
  639.  
  640. Port ID : 1:11
  641. ---------------------------------------------------------------------------
  642. Remote Entities Count : 0
  643. (None)
  644.  
  645. Port ID : 1:12
  646. ---------------------------------------------------------------------------
  647. Remote Entities Count : 0
  648. (None)
  649.  
  650. Port ID : 1:13
  651. ---------------------------------------------------------------------------
  652. Remote Entities Count : 0
  653. (None)
  654.  
  655. Port ID : 1:14
  656. ---------------------------------------------------------------------------
  657. Remote Entities Count : 0
  658. (None)
  659.  
  660. Port ID : 1:15
  661. ---------------------------------------------------------------------------
  662. Remote Entities Count : 0
  663. (None)
  664.  
  665. Port ID : 1:16
  666. ---------------------------------------------------------------------------
  667. Remote Entities Count : 0
  668. (None)
  669.  
  670. Port ID : 1:17
  671. ---------------------------------------------------------------------------
  672. Remote Entities Count : 0
  673. (None)
  674.  
  675. Port ID : 1:18
  676. ---------------------------------------------------------------------------
  677. Remote Entities Count : 0
  678. (None)
  679.  
  680. Port ID : 1:19
  681. ---------------------------------------------------------------------------
  682. Remote Entities Count : 4
  683. Entity 1
  684. Chassis ID Subtype : MAC Address
  685. Chassis ID : F8-E9-03-DD-F3-E0
  686. Port ID Subtype : Local
  687. Port ID : 25
  688. Port Description :
  689. System Name :
  690. System Description :
  691. System Capabilities :
  692. Management Address Count : 0
  693. Port PVID : 0
  694. PPVID Entries Count : 0
  695. VLAN Name Entries Count : 0
  696. Protocol ID Entries Count : 0
  697. MAC/PHY Configuration/Status : (None)
  698. Power Via MDI : (None)
  699. Link Aggregation : (None)
  700. Maximum Frame Size : 0
  701. Unknown TLVs Count : 0
  702.  
  703. Entity 2
  704. Chassis ID Subtype : MAC Address
  705. Chassis ID : F8-E9-03-DD-F3-E0
  706. Port ID Subtype : Local
  707. Port ID : 25
  708. Port Description :
  709. System Name :
  710. System Description :
  711. System Capabilities :
  712. Management Address Count : 0
  713. Port PVID : 0
  714. PPVID Entries Count : 0
  715. VLAN Name Entries Count : 0
  716. Protocol ID Entries Count : 0
  717. MAC/PHY Configuration/Status : (None)
  718. Power Via MDI : (None)
  719. Link Aggregation : (None)
  720. Maximum Frame Size : 0
  721. Unknown TLVs Count : 0
  722.  
  723. Entity 3
  724. Chassis ID Subtype : MAC Address
  725. Chassis ID : F8-E9-03-DD-F3-E0
  726. Port ID Subtype : Local
  727. Port ID : 25
  728. Port Description :
  729. System Name :
  730. System Description :
  731. System Capabilities :
  732. Management Address Count : 0
  733. Port PVID : 0
  734. PPVID Entries Count : 0
  735. VLAN Name Entries Count : 0
  736. Protocol ID Entries Count : 0
  737. MAC/PHY Configuration/Status : (None)
  738. Power Via MDI : (None)
  739. Link Aggregation : (None)
  740. Maximum Frame Size : 0
  741. Unknown TLVs Count : 0
  742.  
  743. Entity 4
  744. Chassis ID Subtype : MAC Address
  745. Chassis ID : F8-E9-03-DD-F3-E0
  746. Port ID Subtype : Local
  747. Port ID : 25
  748. Port Description :
  749. System Name :
  750. System Description :
  751. System Capabilities :
  752. Management Address Count : 0
  753. Port PVID : 0
  754. PPVID Entries Count : 0
  755. VLAN Name Entries Count : 0
  756. Protocol ID Entries Count : 0
  757. MAC/PHY Configuration/Status : (None)
  758. Power Via MDI : (None)
  759. Link Aggregation : (None)
  760. Maximum Frame Size : 0
  761. Unknown TLVs Count : 0
  762.  
  763. Port ID : 1:20
  764. ---------------------------------------------------------------------------
  765. Remote Entities Count : 0
  766. (None)
  767.  
  768. Port ID : 1:21
  769. ---------------------------------------------------------------------------
  770. Remote Entities Count : 0
  771. (None)
  772.  
  773. Port ID : 1:22
  774. ---------------------------------------------------------------------------
  775. Remote Entities Count : 0
  776. (None)
  777.  
  778. Port ID : 1:23
  779. ---------------------------------------------------------------------------
  780. Remote Entities Count : 0
  781. (None)
  782.  
  783. Port ID : 1:24
  784. ---------------------------------------------------------------------------
  785. Remote Entities Count : 1
  786. Entity 1
  787. Chassis ID Subtype : MAC Address
  788. Chassis ID : 00-15-E9-94-89-00
  789. Port ID Subtype : Local
  790. Port ID : 1/24
  791. Port Description :
  792. System Name :
  793. System Description :
  794. System Capabilities :
  795. Management Address Count : 0
  796. Port PVID : 0
  797. PPVID Entries Count : 0
  798. VLAN Name Entries Count : 0
  799. Protocol ID Entries Count : 0
  800. MAC/PHY Configuration/Status : (None)
  801. Power Via MDI : (None)
  802. Link Aggregation : (None)
  803. Maximum Frame Size : 0
  804. Unknown TLVs Count : 0
  805.  
  806. Port ID : 1:25
  807. ---------------------------------------------------------------------------
  808. Remote Entities Count : 0
  809. (None)
  810.  
  811. Port ID : 1:26
  812. ---------------------------------------------------------------------------
  813. Remote Entities Count : 0
  814. (None)
  815.  
  816.  
  817.  
  818. 2017-12-18 17:35:00,631 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Shutdown session
  819. 2017-12-18 17:35:00,631 [script] [DLink.DxS.get_lldp_neighbors|10.170.112.9] [telnet] Closing IOLoop
  820. 2017-12-18 17:35:00,801 [noc.core.debug] UNHANDLED EXCEPTION (2017-12-18 17:35:00.642404)
  821. PROCESS: ./commands/script.py
  822. VERSION: 15.05.1+microservices.8145.10e1beb1
  823. BRANCH: microservices CHANGESET: 10e1beb1
  824. ERROR FINGERPRINT: 45e798d6-0bc4-5fce-a763-e244cbfea681
  825. WORKING DIRECTORY: /opt/noc
  826. EXCEPTION: <type 'exceptions.ValueError'> MACAddressParameter: '({\xfe\x99'.
  827. START OF TRACEBACK
  828. ------------------------------------------------------------------------
  829. File: core/interface/parameter.py (Line: 37)
  830. Function: raise_error
  831. 30 :param value: Value where error detected
  832. 31 :type value: Arbitrary python type
  833. 32 :param msg: Optional message
  834. 33 :type msg: String
  835. 34 :raises InterfaceTypeError
  836. 35 """
  837. 36 raise InterfaceTypeError("%s: %s. %s" % (self.__class__.__name__,
  838. 37 ==> repr(value), msg))
  839. 38
  840. 39 def clean(self, value):
  841. 40 """
  842. 41 Input parameter normalization
  843. 42
  844. 43 :param value: Input parameter
  845. Variables:
  846. msg = ''
  847. self = <noc.sa.interfaces.base.MACAddressParameter object at 0x7fda92d9b2d0>
  848. value = '({\xfe\x99'
  849. ------------------------------------------------------------------------
  850. File: sa/interfaces/base.py (Line: 962)
  851. Function: clean
  852. 955 if isinstance(value, six.string_types):
  853. 956 value = super(MACAddressParameter, self).clean(value)
  854. 957 if not self.accept_bin and len(value) <= 6:
  855. 958 self.raise_error(value)
  856. 959 try:
  857. 960 return str(MAC(value))
  858. 961 except ValueError:
  859. 962 ==> self.raise_error(value)
  860. 963
  861. 964
  862. 965 class InterfaceNameParameter(StringParameter):
  863. 966 def script_clean_input(self, profile, value):
  864. 967 return profile.convert_interface_name(value)
  865. 968
  866. Variables:
  867. self = <noc.sa.interfaces.base.MACAddressParameter object at 0x7fda92d9b2d0>
  868. value = '({\xfe\x99'
  869. ------------------------------------------------------------------------
  870. File: sa/profiles/DLink/DxS/get_lldp_neighbors.py (Line: 90)
  871. Function: execute
  872. 83 "agent circuit id": 6,
  873. 84 "locally assigned": 7,
  874. 85 "local": 7
  875. 86 }[remote_port_subtype.strip().lower()]
  876. 87 n["remote_port"] = m.group("port_id").strip()
  877. 88 if n["remote_port_subtype"] == 3:
  878. 89 n["remote_port"] = \
  879. 90 ==> MACAddressParameter().clean(n["remote_port"])
  880. 91 if n["remote_port_subtype"] == 4:
  881. 92 n["remote_port"] = \
  882. 93 IPv4Parameter().clean(n["remote_port"])
  883. 94
  884. 95 if m.group("port_description").strip():
  885. 96 p = m.group("port_description").strip()
  886. Variables:
  887. remote_port_subtype = ' MAC Address '
  888. c = ''
  889. i = {'neighbors': [], 'local_interface': '1:2'}
  890. self =
  891. <noc.sa.profiles.DLink.DxS.get_lldp_neighbors.Script object at 0x7fda93401d50>
  892. m = <_sre.SRE_Match object at 0x7fda9346eb10>
  893. n =
  894. {'remote_chassis_id': '28-10-7B-FE-15-80',
  895. 'remote_chassis_id_subtype': 4,
  896. 'remote_port': '({\xfe\x99',
  897. 'remote_port_subtype': 3}
  898. r =
  899. [{'local_interface': '1:1',
  900. 'neighbors': [{'remote_capabilities': 0,
  901. 'remote_chassis_id': '00-21-91-5A-8F-8F',
  902. 'remote_chassis_id_subtype': 4,
  903. 'remote_port': '1/25',
  904. 'remote_port_subtype': 7}]}]
  905. v =
  906. 'Command: show lldp remote_ports mode normal\n\nPort ID : 1:1 \n---------------------------------------------------------------------------\nRemote Entities Count : 1 \nEntity 1 \n Chassis ID Subtype : MAC Address \n Chassis ID : 00-21-91-5A-8F-8F\n Port ID Subtype : Local \n Port ID : 1/25\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nPort ID : 1:2 \n---------------------------------------------------------------------------\nRemote Entities Count : 4 \nEntity 1 \n Chassis ID Subtype : MAC Address \n Chassis ID : 28-10-7B-FE-15-80\n Port ID Subtype : MAC Address \n Port ID : ({\xfe\x99\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 2 \n Chassis ID Subtype : MAC Address \n Chassis ID : 28-10-7B-FE-15-80\n Port ID Subtype : MAC Address \n Port ID : ({\xfe\x99\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 3 \n Chassis ID Subtype : MAC Address \n Chassis ID : 28-10-7B-FE-15-80\n Port ID Subtype : MAC Address \n Port ID : ({\xfe\x99\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 4 \n Chassis ID Subtype : MAC Address \n Chassis ID : 28-10-7B-FE-15-80\n Port ID Subtype : MAC Address \n Port ID : ({\xfe\x99\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nPort ID : 1:3 \n---------------------------------------------------------------------------\nRemote Entities Count : 4 \nEntity 1 \n Chassis ID Subtype : MAC Address \n Chassis ID : 78-54-2E-46-19-60\n Port ID Subtype : MAC Address \n Port ID : xT.Fr\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 2 \n Chassis ID Subtype : MAC Address \n Chassis ID : 78-54-2E-46-19-60\n Port ID Subtype : MAC Address \n Port ID : xT.Fr\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 3 \n Chassis ID Subtype : MAC Address \n Chassis ID : 78-54-2E-46-19-60\n Port ID Subtype : MAC Address \n Port ID : xT.Fr\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 4 \n Chassis ID Subtype : MAC Address \n Chassis ID : 78-54-2E-46-19-60\n Port ID Subtype : MAC Address \n Port ID : xT.Fr\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nPort ID : 1:4 \n---------------------------------------------------------------------------\nRemote Entities Count : 4 \nEntity 1 \n Chassis ID Subtype : MAC Address \n Chassis ID : 1C-BD-B9-6B-F7-60\n Port ID Subtype : Local \n Port ID : 1/25\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 2 \n Chassis ID Subtype : MAC Address \n Chassis ID : 1C-BD-B9-6B-F7-60\n Port ID Subtype : Local \n Port ID : 1/25\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 3 \n Chassis ID Subtype : MAC Address \n Chassis ID : 1C-BD-B9-6B-F7-60\n Port ID Subtype : Local \n Port ID : 1/25\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 4 \n Chassis ID Subtype : MAC Address \n Chassis ID : 1C-BD-B9-6B-F7-60\n Port ID Subtype : Local \n Port ID : 1/25\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nPort ID : 1:5 \n---------------------------------------------------------------------------\nRemote Entities Count : 1 \nEntity 1 \n Chassis ID Subtype : MAC Address \n Chassis ID : 00-26-5A-89-DE-A0\n Port ID Subtype : Local \n Port ID : 1/28\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nPort ID : 1:6 \n---------------------------------------------------------------------------\nRemote Entities Count : 4 \nEntity 1 \n Chassis ID Subtype : MAC Address \n Chassis ID : CC-B2-55-74-2F-E0\n Port ID Subtype : MAC Address \n Port ID : \xcc\xb2Ut/\xf9\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 2 \n Chassis ID Subtype : MAC Address \n Chassis ID : CC-B2-55-74-2F-E0\n Port ID Subtype : MAC Address \n Port ID : \xcc\xb2Ut/\xf9\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 3 \n Chassis ID Subtype : MAC Address \n Chassis ID : CC-B2-55-74-2F-E0\n Port ID Subtype : MAC Address \n Port ID : \xcc\xb2Ut/\xf9\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nPort ID : 1:7 \n---------------------------------------------------------------------------\nRemote Entities Count : 1 \nEntity 1 \n Chassis ID Subtype : MAC Address \n Chassis ID : 00-1E-58-A6-EB-D5\n Port ID Subtype : Local \n Port ID : 1/25\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nPort ID : 1:8 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:9 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:10 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:11 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:12 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:13 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:14 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:15 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:16 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:17 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:18 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:19 \n---------------------------------------------------------------------------\nRemote Entities Count : 4 \nEntity 1 \n Chassis ID Subtype : MAC Address \n Chassis ID : F8-E9-03-DD-F3-E0\n Port ID Subtype : Local \n Port ID : 25\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 2 \n Chassis ID Subtype : MAC Address \n Chassis ID : F8-E9-03-DD-F3-E0\n Port ID Subtype : Local \n Port ID : 25\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 3 \n Chassis ID Subtype : MAC Address \n Chassis ID : F8-E9-03-DD-F3-E0\n Port ID Subtype : Local \n Port ID : 25\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nEntity 4 \n Chassis ID Subtype : MAC Address \n Chassis ID : F8-E9-03-DD-F3-E0\n Port ID Subtype : Local \n Port ID : 25\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nPort ID : 1:20 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:21 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:22 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:23 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:24 \n---------------------------------------------------------------------------\nRemote Entities Count : 1 \nEntity 1 \n Chassis ID Subtype : MAC Address \n Chassis ID : 00-15-E9-94-89-00\n Port ID Subtype : Local \n Port ID : 1/24\n Port Description : \n System Name : \n System Description : \n System Capabilities : \n Management Address Count : 0\n Port PVID : 0\n PPVID Entries Count : 0\n VLAN Name Entries Count : 0\n Protocol ID Entries Count : 0\n MAC/PHY Configuration/Status : (None)\n Power Via MDI : (None)\n Link Aggregation : (None)\n Maximum Frame Size : 0\n Unknown TLVs Count : 0\n\nPort ID : 1:25 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\nPort ID : 1:26 \n---------------------------------------------------------------------------\nRemote Entities Count : 0 \n (None)\n\n\n'
  907. caps = 0
  908. match = <_sre.SRE_Match object at 0x7fda92d837a0>
  909. ------------------------------------------------------------------------
  910. File: core/script/base.py (Line: 246)
  911. Function: run
  912. 239 self.logger.info("Using cached result")
  913. 240 cache_hit = True
  914. 241 except KeyError:
  915. 242 pass
  916. 243 # Execute script
  917. 244 if not cache_hit:
  918. 245 try:
  919. 246 ==> result = self.execute(**self.args)
  920. 247 if self.cache and self.parent and result:
  921. 248 self.logger.info("Caching result")
  922. 249 self.set_cache(self.name, self.args, result)
  923. 250 finally:
  924. 251 if not self.parent:
  925. 252 # Close SNMP socket when necessary
  926. Variables:
  927. cache_hit = False
  928. self =
  929. <noc.sa.profiles.DLink.DxS.get_lldp_neighbors.Script object at 0x7fda93401d50>
  930. ------------------------------------------------------------------------
  931. File: commands/script.py (Line: 118)
  932. Function: handle
  933. 111 capabilities=caps,
  934. 112 args=args,
  935. 113 version=version,
  936. 114 timeout=3600,
  937. 115 name=script,
  938. 116 collect_beef=bool(beef)
  939. 117 )
  940. 118 ==> result = scr.run()
  941. 119 if pretty:
  942. 120 pprint.pprint(result)
  943. 121 elif yaml:
  944. 122 import yaml
  945. 123 import sys
  946. 124 yaml.dump(result, sys.stdout)
  947. Variables:
  948. obj = <ManagedObject: 10.170.112.9>
  949. beef = None
  950. service = <__main__.ServiceStub object at 0x7fda93401d10>
  951. script = u'DLink.DxS.get_lldp_neighbors'
  952. script_class = <class 'noc.sa.profiles.DLink.DxS.get_lldp_neighbors.Script'>
  953. self = <__main__.Command object at 0x7fdaa8004890>
  954. args = {}
  955. use_snmp = True
  956. caps =
  957. {u'DB | Interfaces': 26,
  958. u'Network | LLDP': True,
  959. u'SNMP': True,
  960. u'SNMP | Bulk': True,
  961. u'SNMP | IF-MIB': True,
  962. u'SNMP | IF-MIB | HC': True,
  963. u'SNMP | v1': True,
  964. u'SNMP | v2c': True,
  965. u'SNMP | v3': False}
  966. yaml = False
  967. object_name = ['10.170.112.9']
  968. version =
  969. {'platform': u'DXS-3326GSR', 'vendor': u'D-Link', 'version': u'4.50-B19'}
  970. arguments = []
  971. pretty = False
  972. credentials =
  973. {'access_preference': u'CS',
  974. 'address': u'10.170.112.9',
  975. 'cli_protocol': 'telnet',
  976. 'password': u'*****',
  977. 'path': None,
  978. 'raise_privileges': True,
  979. 'snmp_ro': u'public',
  980. 'snmp_version': 'v2c',
  981. 'super_password': u'admin',
  982. 'user': u'script2'}
  983. access_preference = None
  984. options = {}
  985. scr =
  986. <noc.sa.profiles.DLink.DxS.get_lldp_neighbors.Script object at 0x7fda93401d50>
  987. ------------------------------------------------------------------------
  988. File: core/management/base.py (Line: 75)
  989. Function: run_from_argv
  990. 68 enable_profiling = cmd_options.pop("enable_profiling", False)
  991. 69 show_metrics = cmd_options.pop("show_metrics", False)
  992. 70 if enable_profiling:
  993. 71 # Start profiler
  994. 72 import yappi
  995. 73 yappi.start()
  996. 74 try:
  997. 75 ==> return self.handle(*args, **cmd_options) or 0
  998. 76 except CommandError as e:
  999. 77 self.print(str(e))
  1000. 78 return 1
  1001. 79 except KeyboardInterrupt:
  1002. 80 self.print("Ctrl+C")
  1003. 81 return 3
  1004. Variables:
  1005. parser =
  1006. ArgumentParser(prog='script.py', usage=None, description=None, version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
  1007. loglevel = 'debug'
  1008. enable_profiling = False
  1009. args = ()
  1010. cmd_options =
  1011. {'access_preference': None,
  1012. 'arguments': [],
  1013. 'beef': None,
  1014. 'object_name': ['10.170.112.9'],
  1015. 'pretty': False,
  1016. 'script': ['get_lldp_neighbors'],
  1017. 'use_snmp': True,
  1018. 'yaml': False}
  1019. argv = ['--debug', 'get_lldp_neighbors', '10.170.112.9']
  1020. self = <__main__.Command object at 0x7fdaa8004890>
  1021. show_metrics = False
  1022. options =
  1023. Namespace(access_preference=None, arguments=[], beef=None, object_name=['10.170.112.9'], pretty=False, script=['get_lldp_neighbors'], use_snmp=True, yaml=False)
  1024. ------------------------------------------------------------------------
  1025. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment