Advertisement
Izya12

CPS-WBS-4

Apr 24th, 2018
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.22 KB | None | 0 0
  1. LLDP Local info on eth0
  2. +---------------+-------------------------------------------------------------+
  3. | ChassisID: | IW-224053 (local) |
  4. | SysName: | CPS-WBS-4 |
  5. | SysDescr: | Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29 |
  6. | Caps: | Repeater*, Bridge*, Router* |
  7. | PortID: | 00:04:35:03:6B:35 (mac) |
  8. | PortDescr: | eth0, CPS-WBS-4 |
  9. | MFS: | 1728 bytes |
  10. | MgmtIP: | 10.10.20.1 |
  11. +---------------+-------------------------------------------------------------+
  12.  
  13. CPS-WBS-4#1> lldp report
  14. LLDP Neighbors Table on eth0
  15. +---------------+-------------------------------------------------------------+
  16. | LLDP Mode: TxRx, Forward: disabled |
  17. +---------------+-------------------------------------------------------------+
  18. | ChassisID: | 08:CC:A7:E5:D1:00 (mac) |
  19. | SysName: | Switch-UzelSvyzi |
  20. | SysDescr: | Cisco IOS Software, C2960X Software |
  21. | | (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE |
  22. | | SOFTWARE (fc1)?Technical Support: |
  23. | | http://www.cisco.com/techsupport?Copyright (c) 1986-2016 |
  24. | | by Cisco Systems, Inc.?Compiled Fri 16-Dec-16 21:27 by |
  25. | | prod_rel_team |
  26. | Caps: | Bridge*, Router |
  27. | PortID: | Gi1/0/4 (ifName) |
  28. | PortDescr: | - Infinet BS | |
  29. | AutoNeg: | Supported, Enabled 0x6c01 |
  30. | MAU: | 100BASE-TX-FD |
  31. | MgmtIP: | 10.20.52.51 |
  32. | PVID: | 1 |
  33. | Last report: | 1 seconds ago, TTL 120 seconds, Age 43 days 17:01:44 |
  34. +---------------+-------------------------------------------------------------+
  35.  
  36. root@Node1:/opt/noc# ./noc script --debug --pretty get_fqdn "CPS-WBS-4"
  37. 2018-04-24 08:55:15,559 [noc.core.dcs.base] Resolve near service postgres
  38. 2018-04-24 08:55:15,560 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
  39. 2018-04-24 08:55:15,563 [noc.core.http.client] HTTP Response 200
  40. 2018-04-24 08:55:15,563 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
  41. 2018-04-24 08:55:17,970 [noc.core.dcs.base] Running resolver for service mongo
  42. 2018-04-24 08:55:17,971 [noc.core.dcs.base] [mongo] Starting resolver
  43. 2018-04-24 08:55:17,971 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  44. 2018-04-24 08:55:17,972 [noc.core.http.client] HTTP Response 200
  45. 2018-04-24 08:55:17,973 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
  46. 2018-04-24 08:55:17,973 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013374&passing=1
  47. 2018-04-24 08:55:17,974 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'readPreference': 'secondaryPreferred', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:********@10.220.21.122:27017/noc', 'password': '********'}
  48. 2018-04-24 08:55:18,237 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  49. 2018-04-24 08:55:18,826 [noc.main.models.doccategory] Registering Capability
  50. 2018-04-24 08:55:18,827 [noc.main.models.doccategory] Registering MetricType
  51. 2018-04-24 08:55:19,126 [noc.main.models.doccategory] Registering ConnectionType
  52. 2018-04-24 08:55:19,131 [noc.main.models.doccategory] Registering ObjectModel
  53. 2018-04-24 08:55:19,157 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  54. 2018-04-24 08:55:19,209 [noc.main.models.textindex] Adding FTS index for ip.vrf
  55. 2018-04-24 08:55:19,213 [noc.main.models.textindex] Adding FTS index for vc.vc
  56. 2018-04-24 08:55:19,223 [noc.main.models.textindex] Adding FTS index for ip.prefix
  57. 2018-04-24 08:55:19,328 [noc.main.models.textindex] Adding FTS index for ip.address
  58. 2018-04-24 08:55:19,592 [noc.core.script.loader] Loading script InfiNet.WANFlexX.get_fqdn
  59. 2018-04-24 08:55:19,827 [noc.core.profile.loader] Loading profile InfiNet.WANFlexX
  60. 2018-04-24 08:55:19,827 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] Filling get_version cache with {'platform': u'R5000', 'version': u'H08S01-MINTv1.90.29', 'vendor': u'INFINET'}
  61. 2018-04-24 08:55:19,828 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] Running. Input arguments: {}, timeout 3600
  62. 2018-04-24 08:55:19,828 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] [snmp] Creating IOLoop
  63. 2018-04-24 08:55:19,828 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] [snmp] Create UDP socket
  64. 2018-04-24 08:55:19,828 [noc.core.ioloop.snmp] [10.20.56.33] SNMP GET ['1.3.6.1.2.1.1.5.0']
  65. 2018-04-24 08:55:19,871 [noc.core.ioloop.snmp] [10.20.56.33] GET result: 'CPS-WBS-4'
  66. 2018-04-24 08:55:19,871 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] [snmp] Closing UDP socket
  67. 2018-04-24 08:55:19,871 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] [snmp] Closing IOLoop
  68. 2018-04-24 08:55:19,871 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] Result: CPS-WBS-4
  69. 2018-04-24 08:55:19,872 [script] [InfiNet.WANFlexX.get_fqdn|10.20.56.33] Complete (44.05ms)
  70. 'CPS-WBS-4'
  71.  
  72. root@Node1:/opt/noc# ./noc script --debug --pretty get_chassis_id "CPS-WBS-4"
  73. 2018-04-24 08:59:51,426 [noc.core.dcs.base] Resolve near service postgres
  74. 2018-04-24 08:59:51,426 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
  75. 2018-04-24 08:59:51,429 [noc.core.http.client] HTTP Response 200
  76. 2018-04-24 08:59:51,429 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
  77. 2018-04-24 08:59:52,386 [noc.core.dcs.base] Running resolver for service mongo
  78. 2018-04-24 08:59:52,386 [noc.core.dcs.base] [mongo] Starting resolver
  79. 2018-04-24 08:59:52,386 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  80. 2018-04-24 08:59:52,388 [noc.core.http.client] HTTP Response 200
  81. 2018-04-24 08:59:52,388 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
  82. 2018-04-24 08:59:52,388 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013583&passing=1
  83. 2018-04-24 08:59:52,389 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'readPreference': 'secondaryPreferred', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:********@10.220.21.122:27017/noc', 'password': '********'}
  84. 2018-04-24 08:59:52,451 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  85. 2018-04-24 08:59:52,513 [noc.main.models.doccategory] Registering Capability
  86. 2018-04-24 08:59:52,514 [noc.main.models.doccategory] Registering MetricType
  87. 2018-04-24 08:59:52,550 [noc.main.models.doccategory] Registering ConnectionType
  88. 2018-04-24 08:59:52,553 [noc.main.models.doccategory] Registering ObjectModel
  89. 2018-04-24 08:59:52,563 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  90. 2018-04-24 08:59:52,579 [noc.main.models.textindex] Adding FTS index for ip.vrf
  91. 2018-04-24 08:59:52,581 [noc.main.models.textindex] Adding FTS index for vc.vc
  92. 2018-04-24 08:59:52,585 [noc.main.models.textindex] Adding FTS index for ip.prefix
  93. 2018-04-24 08:59:52,590 [noc.main.models.textindex] Adding FTS index for ip.address
  94. 2018-04-24 08:59:52,637 [noc.core.script.loader] Loading script InfiNet.WANFlexX.get_chassis_id
  95. 2018-04-24 08:59:52,686 [noc.core.profile.loader] Loading profile InfiNet.WANFlexX
  96. 2018-04-24 08:59:52,686 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] Filling get_version cache with {'platform': u'R5000', 'version': u'H08S01-MINTv1.90.29', 'vendor': u'INFINET'}
  97. 2018-04-24 08:59:52,686 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] Running. Input arguments: {}, timeout 3600
  98. 2018-04-24 08:59:52,686 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] Open telnet CLI
  99. 2018-04-24 08:59:52,688 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Creating IOLoop
  100. 2018-04-24 08:59:52,690 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Connecting (u'10.20.56.33', 23)
  101. 2018-04-24 08:59:52,716 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Connected
  102. 2018-04-24 08:59:52,716 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] State: <START>
  103. 2018-04-24 08:59:52,716 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Setting timeout: 60s
  104. 2018-04-24 08:59:52,745 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: '\r\n'
  105. 2018-04-24 08:59:52,776 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received WILL ECHO
  106. 2018-04-24 08:59:52,776 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send DO ECHO
  107. 2018-04-24 08:59:52,776 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received DONT LINEMODE
  108. 2018-04-24 08:59:52,776 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send WONT LINEMODE
  109. 2018-04-24 08:59:52,776 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received DO SGA
  110. 2018-04-24 08:59:52,776 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send WILL SGA
  111. 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received DO NAWS
  112. 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send WILL NAWS
  113. 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send IAC SB '\x1f' '\x00\x80\x00\x80' IAC SE
  114. 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: 'WANFleX Access Control 0\r\nCPS-WBS-4 / 224053\r\n\r\n\rLogin:\r\x1b[6C\x1b[K\r\x1b[6C'
  115. 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Match: ([Uu]ser ?[Nn]ame|[Ll]ogin): ?
  116. 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] State: <USERNAME>
  117. 2018-04-24 08:59:52,777 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send: '1\r'
  118. 2018-04-24 08:59:52,778 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Setting timeout: 30s
  119. 2018-04-24 08:59:52,806 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received DONT SGA
  120. 2018-04-24 08:59:52,807 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send WONT SGA
  121. 2018-04-24 08:59:52,832 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: '1\r\n\rPassword:'
  122. 2018-04-24 08:59:52,832 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Match: [Pp]ass[Ww]ord: ?
  123. 2018-04-24 08:59:52,833 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] State: <PASSWORD>
  124. 2018-04-24 08:59:52,833 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send: '1\r'
  125. 2018-04-24 08:59:52,833 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Setting timeout: 30s
  126. 2018-04-24 08:59:52,857 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: '\r\n'
  127. 2018-04-24 08:59:52,921 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: '\r\n\r\n R5000\r\n InfiNet Wireless\r\n www.infinetwireless.com\r\n All rights reserved, 1997-2017\r\n R5000 WANFleX H08S01-MINTv1.90.29 * Oct 5 2017 11:14:37 * SN:224053\r\n\r\nDevice name: CPS-WBS-4\r\n\r\n *** Please setup correct DATE & TIME via "date" or "sntp" command ***\r\n\r\nUptime: 137 days 00:20:44\r\nLast reboot reason: unexpected restart\r\n*** Please change default Login and Password !!! ***\r\n\r\n\rCPS-WBS-4#2> \r\x1b[13C\x1b[K\r\x1b[13C'
  128. 2018-04-24 08:59:52,921 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Match: (?P<hostname>\S+?)#\d+>
  129. 2018-04-24 08:59:52,921 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] State: <PROMT>
  130. 2018-04-24 08:59:52,921 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Refining pattern prompt to 'CPS\\-WBS\\-4#\\d+>'
  131. 2018-04-24 08:59:52,921 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Resetting timeouts
  132. 2018-04-24 08:59:52,922 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Send: 'lldp local\n\r'
  133. 2018-04-24 08:59:52,946 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: 'l'
  134. 2018-04-24 08:59:53,007 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Received: 'ldp local\r\n LLDP Local info on eth0 \r\n+---------------+-------------------------------------------------------------+\r\n| ChassisID: | IW-224053 (local) |\r\n| SysName: | CPS-WBS-4 |\r\n| SysDescr: | Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29 |\r\n| Caps: | Repeater*, Bridge*, Router* |\r\n| PortID: | 00:04:35:03:6B:35 (mac) |\r\n| PortDescr: | eth0, CPS-WBS-4 |\r\n| MFS: | 1728 bytes |\r\n| MgmtIP: | 10.10.20.1 |\r\n+---------------+-------------------------------------------------------------+\r\n\r\n\rCPS-WBS-4#2> \r\x1b[13C\x1b[K\r\x1b[13C'
  135. 2018-04-24 08:59:53,007 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Match: CPS\-WBS\-4#\d+>
  136. 2018-04-24 08:59:53,007 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] State: <PROMT>
  137. 2018-04-24 08:59:53,007 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Command: lldp local
  138. lldp local
  139. LLDP Local info on eth0
  140. +---------------+-------------------------------------------------------------+
  141. | ChassisID: | IW-224053 (local) |
  142. | SysName: | CPS-WBS-4 |
  143. | SysDescr: | Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29 |
  144. | Caps: | Repeater*, Bridge*, Router* |
  145. | PortID: | 00:04:35:03:6B:35 (mac) |
  146. | PortDescr: | eth0, CPS-WBS-4 |
  147. | MFS: | 1728 bytes |
  148. | MgmtIP: | 10.10.20.1 |
  149. +---------------+-------------------------------------------------------------+
  150.  
  151.  
  152. 2018-04-24 08:59:53,008 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] [telnet] Closing IOLoop
  153. 2018-04-24 08:59:53,008 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] Result: [{'last_chassis_mac': '00:04:35:03:6B:35', 'first_chassis_mac': '00:04:35:03:6B:35'}]
  154. 2018-04-24 08:59:53,008 [script] [InfiNet.WANFlexX.get_chassis_id|10.20.56.33] Complete (322.05ms)
  155. [{'first_chassis_mac': '00:04:35:03:6B:35',
  156. 'last_chassis_mac': '00:04:35:03:6B:35'}]
  157.  
  158. root@Node1:/opt/noc# ./noc script --debug --pretty get_lldp_neighbors "CPS-WBS-4"
  159. 2018-04-24 09:00:32,696 [noc.core.dcs.base] Resolve near service postgres
  160. 2018-04-24 09:00:32,697 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
  161. 2018-04-24 09:00:32,699 [noc.core.http.client] HTTP Response 200
  162. 2018-04-24 09:00:32,700 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
  163. 2018-04-24 09:00:33,604 [noc.core.dcs.base] Running resolver for service mongo
  164. 2018-04-24 09:00:33,605 [noc.core.dcs.base] [mongo] Starting resolver
  165. 2018-04-24 09:00:33,606 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  166. 2018-04-24 09:00:33,607 [noc.core.http.client] HTTP Response 200
  167. 2018-04-24 09:00:33,607 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
  168. 2018-04-24 09:00:33,607 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2013583&passing=1
  169. 2018-04-24 09:00:33,608 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'readPreference': 'secondaryPreferred', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:********@10.220.21.122:27017/noc', 'password': '********'}
  170. 2018-04-24 09:00:33,672 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  171. 2018-04-24 09:00:33,729 [noc.main.models.doccategory] Registering Capability
  172. 2018-04-24 09:00:33,730 [noc.main.models.doccategory] Registering MetricType
  173. 2018-04-24 09:00:33,767 [noc.main.models.doccategory] Registering ConnectionType
  174. 2018-04-24 09:00:33,772 [noc.main.models.doccategory] Registering ObjectModel
  175. 2018-04-24 09:00:33,782 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  176. 2018-04-24 09:00:33,800 [noc.main.models.textindex] Adding FTS index for ip.vrf
  177. 2018-04-24 09:00:33,803 [noc.main.models.textindex] Adding FTS index for vc.vc
  178. 2018-04-24 09:00:33,807 [noc.main.models.textindex] Adding FTS index for ip.prefix
  179. 2018-04-24 09:00:33,812 [noc.main.models.textindex] Adding FTS index for ip.address
  180. 2018-04-24 09:00:33,874 [noc.core.script.loader] Loading script InfiNet.WANFlexX.get_lldp_neighbors
  181. 2018-04-24 09:00:34,007 [noc.core.profile.loader] Loading profile InfiNet.WANFlexX
  182. 2018-04-24 09:00:34,007 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] Filling get_version cache with {'platform': u'R5000', 'version': u'H08S01-MINTv1.90.29', 'vendor': u'INFINET'}
  183. 2018-04-24 09:00:34,007 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] Running. Input arguments: {}, timeout 3600
  184. 2018-04-24 09:00:34,007 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] Open telnet CLI
  185. 2018-04-24 09:00:34,011 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Creating IOLoop
  186. 2018-04-24 09:00:34,011 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Connecting (u'10.20.56.33', 23)
  187. 2018-04-24 09:00:34,037 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Connected
  188. 2018-04-24 09:00:34,037 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] State: <START>
  189. 2018-04-24 09:00:34,037 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Setting timeout: 60s
  190. 2018-04-24 09:00:34,062 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: '\r\n'
  191. 2018-04-24 09:00:34,086 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received WILL ECHO
  192. 2018-04-24 09:00:34,086 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send DO ECHO
  193. 2018-04-24 09:00:34,087 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received DONT LINEMODE
  194. 2018-04-24 09:00:34,087 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send WONT LINEMODE
  195. 2018-04-24 09:00:34,087 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received DO SGA
  196. 2018-04-24 09:00:34,087 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send WILL SGA
  197. 2018-04-24 09:00:34,087 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received DO NAWS
  198. 2018-04-24 09:00:34,088 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send WILL NAWS
  199. 2018-04-24 09:00:34,088 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send IAC SB '\x1f' '\x00\x80\x00\x80' IAC SE
  200. 2018-04-24 09:00:34,088 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: 'WANFleX Access Control 0\r\nCPS-WBS-4 / 224053\r\n\r\n\rLogin:\r\x1b[6C\x1b[K\r\x1b[6C'
  201. 2018-04-24 09:00:34,088 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Match: ([Uu]ser ?[Nn]ame|[Ll]ogin): ?
  202. 2018-04-24 09:00:34,088 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] State: <USERNAME>
  203. 2018-04-24 09:00:34,088 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send: '1\r'
  204. 2018-04-24 09:00:34,089 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Setting timeout: 30s
  205. 2018-04-24 09:00:34,112 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received DONT SGA
  206. 2018-04-24 09:00:34,112 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send WONT SGA
  207. 2018-04-24 09:00:34,136 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: '1\r\n\rPassword:'
  208. 2018-04-24 09:00:34,136 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Match: [Pp]ass[Ww]ord: ?
  209. 2018-04-24 09:00:34,136 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] State: <PASSWORD>
  210. 2018-04-24 09:00:34,136 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send: '1\r'
  211. 2018-04-24 09:00:34,137 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Setting timeout: 30s
  212. 2018-04-24 09:00:34,161 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: '\r\n'
  213. 2018-04-24 09:00:34,225 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: '\r\n\r\n R5000\r\n InfiNet Wireless\r\n www.infinetwireless.com\r\n All rights reserved, 1997-2017\r\n R5000 WANFleX H08S01-MINTv1.90.29 * Oct 5 2017 11:14:37 * SN:224053\r\n\r\nDevice name: CPS-WBS-4\r\n\r\n *** Please setup correct DATE & TIME via "date" or "sntp" command ***\r\n\r\nUptime: 137 days 00:21:25\r\nLast reboot reason: unexpected restart\r\n*** Please change default Login and Password !!! ***\r\n\r\n\rCPS-WBS-4#2> \r\x1b[13C\x1b[K\r\x1b[13C'
  214. 2018-04-24 09:00:34,226 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Match: (?P<hostname>\S+?)#\d+>
  215. 2018-04-24 09:00:34,226 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] State: <PROMT>
  216. 2018-04-24 09:00:34,226 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Refining pattern prompt to 'CPS\\-WBS\\-4#\\d+>'
  217. 2018-04-24 09:00:34,226 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Resetting timeouts
  218. 2018-04-24 09:00:34,227 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Send: 'lldp report\r'
  219. 2018-04-24 09:00:34,251 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: 'l'
  220. 2018-04-24 09:00:34,252 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: 'ldp report\r\n LLDP Neighbors Table on eth0 \r\n+---------------+-------------------------------------------------------------+\r\n| LLDP Mode: TxRx, Forward: disabled |\r\n+---------------+-------------------------------------------------------------+\r\n| ChassisID: | 08:CC:A7:E5:D1:00 (mac) |\r\n| SysName: | Switch-UzelSvyzi |\r\n| SysDescr: | Cisco IOS Software, C2960X Software |\r\n| | (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE |\r\n| | SOFTWARE (fc1)?Technical Support: |\r\n| | http://www.cisco.com/techsupport?Copyright (c) 1986-2016 |\r\n| | by Cisco Systems, Inc.?Compiled Fri 16-Dec-16 21:27 by |\r\n| | prod_rel_team |\r\n| Caps: | Bridge*, Router |\r\n| PortID: | Gi1/0/4 (ifName) |\r\n| PortDescr: | - Infinet BS | |\r\n| AutoNeg: | Supported, Enabled 0x6c01 |\r\n| MAU: | 100BASE-TX-FD |\r\n| MgmtIP: | 10.20.52.51 '
  221. 2018-04-24 09:00:34,274 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Received: ' |\r\n| PVID: | 1 |\r\n| Last report: | 11 seconds ago, TTL 120 seconds, Age 43 days 17:09:22 |\r\n+---------------+-------------------------------------------------------------+\r\n\r\n\rCPS-WBS-4#2> \r\x1b[13C\x1b[K\r\x1b[13C'
  222. 2018-04-24 09:00:34,275 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Match: CPS\-WBS\-4#\d+>
  223. 2018-04-24 09:00:34,275 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] State: <PROMT>
  224. 2018-04-24 09:00:34,275 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Command: lldp report
  225. lldp report
  226. LLDP Neighbors Table on eth0
  227. +---------------+-------------------------------------------------------------+
  228. | LLDP Mode: TxRx, Forward: disabled |
  229. +---------------+-------------------------------------------------------------+
  230. | ChassisID: | 08:CC:A7:E5:D1:00 (mac) |
  231. | SysName: | Switch-UzelSvyzi |
  232. | SysDescr: | Cisco IOS Software, C2960X Software |
  233. | | (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE |
  234. | | SOFTWARE (fc1)?Technical Support: |
  235. | | http://www.cisco.com/techsupport?Copyright (c) 1986-2016 |
  236. | | by Cisco Systems, Inc.?Compiled Fri 16-Dec-16 21:27 by |
  237. | | prod_rel_team |
  238. | Caps: | Bridge*, Router |
  239. | PortID: | Gi1/0/4 (ifName) |
  240. | PortDescr: | - Infinet BS | |
  241. | AutoNeg: | Supported, Enabled 0x6c01 |
  242. | MAU: | 100BASE-TX-FD |
  243. | MgmtIP: | 10.20.52.51 |
  244. | PVID: | 1 |
  245. | Last report: | 11 seconds ago, TTL 120 seconds, Age 43 days 17:09:22 |
  246. +---------------+-------------------------------------------------------------+
  247.  
  248.  
  249. 2018-04-24 09:00:34,276 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] [telnet] Closing IOLoop
  250. 2018-04-24 09:00:34,276 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] Result: [{'neighbors': [{'remote_port_subtype': 5, 'remote_capabilities': 0, 'remote_chassis_id_subtype': 3, 'remote_chassis_id': '08:CC:A7:E5:D1:00', 'remote_port': 'Gi1/0/4'}], 'local_interface': 'eth0'}]
  251. 2018-04-24 09:00:34,277 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.33] Complete (269.42ms)
  252. [{'local_interface': 'eth0',
  253. 'neighbors': [{'remote_capabilities': 0,
  254. 'remote_chassis_id': '08:CC:A7:E5:D1:00',
  255. 'remote_chassis_id_subtype': 3,
  256. 'remote_port': 'Gi1/0/4',
  257. 'remote_port_subtype': 5}]}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement