Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2018-04-23 06:05:47,550 [noc.core.dcs.base] Resolve near service postgres
- 2018-04-23 06:05:47,550 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
- 2018-04-23 06:05:47,553 [noc.core.http.client] HTTP Response 200
- 2018-04-23 06:05:47,553 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
- 2018-04-23 06:05:48,427 [noc.core.dcs.base] Running resolver for service mongo
- 2018-04-23 06:05:48,428 [noc.core.dcs.base] [mongo] Starting resolver
- 2018-04-23 06:05:48,428 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
- 2018-04-23 06:05:48,429 [noc.core.http.client] HTTP Response 200
- 2018-04-23 06:05:48,430 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
- 2018-04-23 06:05:48,430 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=1953021&passing=1
- 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': '********'}
- 2018-04-23 06:05:48,494 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
- 2018-04-23 06:05:48,556 [noc.main.models.doccategory] Registering Capability
- 2018-04-23 06:05:48,557 [noc.main.models.doccategory] Registering MetricType
- 2018-04-23 06:05:48,594 [noc.main.models.doccategory] Registering ConnectionType
- 2018-04-23 06:05:48,598 [noc.main.models.doccategory] Registering ObjectModel
- 2018-04-23 06:05:48,607 [noc.main.models.textindex] Adding FTS index for sa.managedobject
- 2018-04-23 06:05:48,625 [noc.main.models.textindex] Adding FTS index for ip.vrf
- 2018-04-23 06:05:48,628 [noc.main.models.textindex] Adding FTS index for vc.vc
- 2018-04-23 06:05:48,632 [noc.main.models.textindex] Adding FTS index for ip.prefix
- 2018-04-23 06:05:48,637 [noc.main.models.textindex] Adding FTS index for ip.address
- 2018-04-23 06:05:48,685 [noc.core.script.loader] Loading script InfiNet.WANFlexX.get_lldp_neighbors
- 2018-04-23 06:05:48,701 [noc.core.profile.loader] Loading profile InfiNet.WANFlexX
- 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'}
- 2018-04-23 06:05:48,702 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] Running. Input arguments: {}, timeout 3600
- 2018-04-23 06:05:48,702 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] Open telnet CLI
- 2018-04-23 06:05:48,705 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Creating IOLoop
- 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)
- 2018-04-23 06:05:48,731 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Connected
- 2018-04-23 06:05:48,731 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] State: <START>
- 2018-04-23 06:05:48,731 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Setting timeout: 60s
- 2018-04-23 06:05:48,754 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received: '\r\n'
- 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received WILL ECHO
- 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send DO ECHO
- 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received DONT LINEMODE
- 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send WONT LINEMODE
- 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received DO SGA
- 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send WILL SGA
- 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received DO NAWS
- 2018-04-23 06:05:48,777 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send WILL NAWS
- 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
- 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'
- 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): ?
- 2018-04-23 06:05:48,778 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] State: <USERNAME>
- 2018-04-23 06:05:48,778 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send: '1\r'
- 2018-04-23 06:05:48,778 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Setting timeout: 30s
- 2018-04-23 06:05:48,801 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received DONT SGA
- 2018-04-23 06:05:48,803 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send WONT SGA
- 2018-04-23 06:05:48,827 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received: '1\r\n\rPassword:'
- 2018-04-23 06:05:48,827 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Match: [Pp]ass[Ww]ord: ?
- 2018-04-23 06:05:48,827 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] State: <PASSWORD>
- 2018-04-23 06:05:48,827 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send: '1\r'
- 2018-04-23 06:05:48,828 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Setting timeout: 30s
- 2018-04-23 06:05:48,851 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received: '\r\n'
- 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'
- 2018-04-23 06:05:48,911 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Match: (?P<hostname>\S+?)#\d+>
- 2018-04-23 06:05:48,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] State: <PROMT>
- 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+>'
- 2018-04-23 06:05:48,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Resetting timeouts
- 2018-04-23 06:05:48,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Send: 'lldp report\r'
- 2018-04-23 06:05:48,936 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Received: 'l'
- 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 '
- 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'
- 2018-04-23 06:05:48,960 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Match: CPS\-WBS\-1#\d+>
- 2018-04-23 06:05:48,960 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] State: <PROMT>
- 2018-04-23 06:05:48,960 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Command: lldp report
- lldp report
- LLDP Neighbors Table on eth0
- +---------------+-------------------------------------------------------------+
- | LLDP Mode: TxRx, Forward: disabled |
- +---------------+-------------------------------------------------------------+
- | ChassisID: | 08:CC:A7:E5:D1:00 (mac) |
- | SysName: | Switch-UzelSvyzi |
- | SysDescr: | Cisco IOS Software, C2960X Software |
- | | (C2960X-UNIVERSALK9-M), Version 15.2(2)E6, RELEASE |
- | | SOFTWARE (fc1)?Technical Support: |
- | | http://www.cisco.com/techsupport?Copyright (c) 1986-2016 |
- | | by Cisco Systems, Inc.?Compiled Fri 16-Dec-16 21:27 by |
- | | prod_rel_team |
- | Caps: | Bridge*, Router |
- | PortID: | Gi1/0/1 (ifName) |
- | PortDescr: | - Infinet BS | |
- | AutoNeg: | Supported, Enabled 0x6c01 |
- | MAU: | 1000BASE-T-FD |
- | MgmtIP: | 10.20.52.51 |
- | PVID: | 1 |
- | Last report: | 20 seconds ago, TTL 120 seconds, Age 42 days 14:14:52 |
- +---------------+-------------------------------------------------------------+
- 2018-04-23 06:05:48,961 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] [telnet] Closing IOLoop
- 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'}]
- 2018-04-23 06:05:48,962 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.30] Complete (260.26ms)
- [{'local_interface': 'eth0',
- 'neighbors': [{'remote_capabilities': 0,
- 'remote_chassis_id': '08:CC:A7:E5:D1:00',
- 'remote_chassis_id_subtype': 3,
- 'remote_port': 'Gi1/0/1',
- 'remote_port_subtype': 5}]}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement