Advertisement
Izya12

get_lldp_neighbors_CPS-WBS-1

Apr 22nd, 2018
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.72 KB | None | 0 0
  1. 2018-04-23 06:05:47,550 [noc.core.dcs.base] Resolve near service postgres
  2. 2018-04-23 06:05:47,550 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
  3. 2018-04-23 06:05:47,553 [noc.core.http.client] HTTP Response 200
  4. 2018-04-23 06:05:47,553 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
  5. 2018-04-23 06:05:48,427 [noc.core.dcs.base] Running resolver for service mongo
  6. 2018-04-23 06:05:48,428 [noc.core.dcs.base] [mongo] Starting resolver
  7. 2018-04-23 06:05:48,428 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  8. 2018-04-23 06:05:48,429 [noc.core.http.client] HTTP Response 200
  9. 2018-04-23 06:05:48,430 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
  10. 2018-04-23 06:05:48,430 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=1953021&passing=1
  11. 2018-04-23 06:05:48,431 [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': '********'}
  12. 2018-04-23 06:05:48,494 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  13. 2018-04-23 06:05:48,556 [noc.main.models.doccategory] Registering Capability
  14. 2018-04-23 06:05:48,557 [noc.main.models.doccategory] Registering MetricType
  15. 2018-04-23 06:05:48,594 [noc.main.models.doccategory] Registering ConnectionType
  16. 2018-04-23 06:05:48,598 [noc.main.models.doccategory] Registering ObjectModel
  17. 2018-04-23 06:05:48,607 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  18. 2018-04-23 06:05:48,625 [noc.main.models.textindex] Adding FTS index for ip.vrf
  19. 2018-04-23 06:05:48,628 [noc.main.models.textindex] Adding FTS index for vc.vc
  20. 2018-04-23 06:05:48,632 [noc.main.models.textindex] Adding FTS index for ip.prefix
  21. 2018-04-23 06:05:48,637 [noc.main.models.textindex] Adding FTS index for ip.address
  22. 2018-04-23 06:05:48,685 [noc.core.script.loader] Loading script InfiNet.WANFlexX.get_lldp_neighbors
  23. 2018-04-23 06:05:48,701 [noc.core.profile.loader] Loading profile InfiNet.WANFlexX
  24. 2018-04-23 06:05:48,701 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] Filling get_version cache with {'platform': u'R5000', 'version': u'H08S01-MINTv1.90.29', 'vendor': u'INFINET'}
  25. 2018-04-23 06:05:48,702 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] Running. Input arguments: {}, timeout 3600
  26. 2018-04-23 06:05:48,702 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] Open telnet CLI
  27. 2018-04-23 06:05:48,705 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Creating IOLoop
  28. 2018-04-23 06:05:48,706 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Connecting (u'10.20.56.30', 23)
  29. 2018-04-23 06:05:48,731 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Connected
  30. 2018-04-23 06:05:48,731 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] State: <START>
  31. 2018-04-23 06:05:48,731 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Setting timeout: 60s
  32. 2018-04-23 06:05:48,754 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received: '\r\n'
  33. 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received WILL ECHO
  34. 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send DO ECHO
  35. 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received DONT LINEMODE
  36. 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send WONT LINEMODE
  37. 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received DO SGA
  38. 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send WILL SGA
  39. 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received DO NAWS
  40. 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send WILL NAWS
  41. 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send IAC SB '\x1f' '\x00\x80\x00\x80' IAC SE
  42. 2018-04-23 06:05:48,778 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received: 'WANFleX Access Control 0\r\nCPS-WBS-1 / 224055\r\n\r\n\rLogin:\r\x1b[6C\x1b[K\r\x1b[6C'
  43. 2018-04-23 06:05:48,778 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Match: ([Uu]ser ?[Nn]ame|[Ll]ogin): ?
  44. 2018-04-23 06:05:48,778 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] State: <USERNAME>
  45. 2018-04-23 06:05:48,778 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send: '1\r'
  46. 2018-04-23 06:05:48,778 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Setting timeout: 30s
  47. 2018-04-23 06:05:48,801 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received DONT SGA
  48. 2018-04-23 06:05:48,803 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send WONT SGA
  49. 2018-04-23 06:05:48,827 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received: '1\r\n\rPassword:'
  50. 2018-04-23 06:05:48,827 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Match: [Pp]ass[Ww]ord: ?
  51. 2018-04-23 06:05:48,827 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] State: <PASSWORD>
  52. 2018-04-23 06:05:48,827 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send: '1\r'
  53. 2018-04-23 06:05:48,828 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Setting timeout: 30s
  54. 2018-04-23 06:05:48,851 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received: '\r\n'
  55. 2018-04-23 06:05:48,911 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [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:224055\r\n\r\nDevice name: CPS-WBS-1\r\n\r\n *** Please setup correct DATE & TIME via "date" or "sntp" command ***\r\n\r\nUptime: 135 days 21:27:34\r\nLast reboot reason: unexpected restart\r\n*** Please change default Login and Password !!! ***\r\n\r\n\rCPS-WBS-1#2> \r\x1b[13C\x1b[K\r\x1b[13C'
  56. 2018-04-23 06:05:48,911 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Match: (?P<hostname>\S+?)#\d+>
  57. 2018-04-23 06:05:48,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] State: <PROMT>
  58. 2018-04-23 06:05:48,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Refining pattern prompt to 'CPS\\-WBS\\-1#\\d+>'
  59. 2018-04-23 06:05:48,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Resetting timeouts
  60. 2018-04-23 06:05:48,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send: 'lldp report\r'
  61. 2018-04-23 06:05:48,936 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received: 'l'
  62. 2018-04-23 06:05:48,937 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [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/1 (ifName) |\r\n| PortDescr: | - Infinet BS | |\r\n| AutoNeg: | Supported, Enabled 0x6c01 |\r\n| MAU: | 1000BASE-T-FD |\r\n| MgmtIP: | 10.20.52.51 '
  63. 2018-04-23 06:05:48,960 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received: ' |\r\n| PVID: | 1 |\r\n| Last report: | 20 seconds ago, TTL 120 seconds, Age 42 days 14:14:52 |\r\n+---------------+-------------------------------------------------------------+\r\n\r\n\rCPS-WBS-1#2> \r\x1b[13C\x1b[K\r\x1b[13C'
  64. 2018-04-23 06:05:48,960 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Match: CPS\-WBS\-1#\d+>
  65. 2018-04-23 06:05:48,960 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] State: <PROMT>
  66. 2018-04-23 06:05:48,960 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Command: lldp report
  67. lldp report
  68. LLDP Neighbors Table on eth0
  69. +---------------+-------------------------------------------------------------+
  70. | LLDP Mode: TxRx, Forward: disabled |
  71. +---------------+-------------------------------------------------------------+
  72. | ChassisID: | 08:CC:A7:E5:D1:00 (mac) |
  73. | SysName: | Switch-UzelSvyzi |
  74. | SysDescr: | Cisco IOS Software, C2960X Software |
  75. | | (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE |
  76. | | SOFTWARE (fc1)?Technical Support: |
  77. | | http://www.cisco.com/techsupport?Copyright (c) 1986-2016 |
  78. | | by Cisco Systems, Inc.?Compiled Fri 16-Dec-16 21:27 by |
  79. | | prod_rel_team |
  80. | Caps: | Bridge*, Router |
  81. | PortID: | Gi1/0/1 (ifName) |
  82. | PortDescr: | - Infinet BS | |
  83. | AutoNeg: | Supported, Enabled 0x6c01 |
  84. | MAU: | 1000BASE-T-FD |
  85. | MgmtIP: | 10.20.52.51 |
  86. | PVID: | 1 |
  87. | Last report: | 20 seconds ago, TTL 120 seconds, Age 42 days 14:14:52 |
  88. +---------------+-------------------------------------------------------------+
  89.  
  90.  
  91. 2018-04-23 06:05:48,961 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Closing IOLoop
  92. 2018-04-23 06:05:48,961 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] 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/1'}], 'local_interface': 'eth0'}]
  93. 2018-04-23 06:05:48,962 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] Complete (260.26ms)
  94. [{'local_interface': 'eth0',
  95. 'neighbors': [{'remote_capabilities': 0,
  96. 'remote_chassis_id': '08:CC:A7:E5:D1:00',
  97. 'remote_chassis_id_subtype': 3,
  98. 'remote_port': 'Gi1/0/1',
  99. 'remote_port_subtype': 5}]}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement