SHARE
TWEET

get_capabilities

Izya12 Apr 27th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@Node1:/opt/noc# ./noc script --debug --pretty get_capabilities "UZA-8"
  2. 2018-04-27 07:58:30,594 [noc.core.dcs.base] Resolve near service postgres
  3. 2018-04-27 07:58:30,594 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
  4. 2018-04-27 07:58:30,597 [noc.core.http.client] HTTP Response 200
  5. 2018-04-27 07:58:30,597 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
  6. 2018-04-27 07:58:31,445 [noc.core.dcs.base] Running resolver for service mongo
  7. 2018-04-27 07:58:31,445 [noc.core.dcs.base] [mongo] Starting resolver
  8. 2018-04-27 07:58:31,446 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  9. 2018-04-27 07:58:31,447 [noc.core.http.client] HTTP Response 200
  10. 2018-04-27 07:58:31,447 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
  11. 2018-04-27 07:58:31,447 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2116447&passing=1
  12. 2018-04-27 07:58:31,448 [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': '********'}
  13. 2018-04-27 07:58:31,505 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  14. 2018-04-27 07:58:31,567 [noc.main.models.doccategory] Registering Capability
  15. 2018-04-27 07:58:31,568 [noc.main.models.doccategory] Registering MetricType
  16. 2018-04-27 07:58:31,602 [noc.main.models.doccategory] Registering ConnectionType
  17. 2018-04-27 07:58:31,606 [noc.main.models.doccategory] Registering ObjectModel
  18. 2018-04-27 07:58:31,615 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  19. 2018-04-27 07:58:31,629 [noc.main.models.textindex] Adding FTS index for ip.vrf
  20. 2018-04-27 07:58:31,632 [noc.main.models.textindex] Adding FTS index for vc.vc
  21. 2018-04-27 07:58:31,634 [noc.main.models.textindex] Adding FTS index for ip.prefix
  22. 2018-04-27 07:58:31,639 [noc.main.models.textindex] Adding FTS index for ip.address
  23. 2018-04-27 07:58:31,688 [noc.core.script.loader] Loading script Nateks.NetXpert.get_capabilities
  24. 2018-04-27 07:58:31,690 [noc.core.mib] Loading compiled MIBs
  25. 2018-04-27 07:58:31,691 [noc.core.mib] Loading compiled MIBs from 'cmibs'
  26. 2018-04-27 07:58:31,691 [noc.core.mib] Loading MIB: ENTITY-STATE-MIB
  27. 2018-04-27 07:58:31,691 [noc.core.mib] Loading MIB: SNMPv2-MIB
  28. 2018-04-27 07:58:31,692 [noc.core.mib] Loading MIB: CISCO-PPPOE-MIB
  29. 2018-04-27 07:58:31,692 [noc.core.mib] Loading MIB: RMON2-MIB
  30. 2018-04-27 07:58:31,692 [noc.core.mib] Loading MIB: IF-MIB
  31. 2018-04-27 07:58:31,692 [noc.core.mib] Loading MIB: RFC1213-MIB
  32. 2018-04-27 07:58:31,693 [noc.core.mib] Loading MIB: BRIDGE-MIB
  33. 2018-04-27 07:58:31,693 [noc.core.mib] Loading MIB: EtherLike-MIB
  34. 2018-04-27 07:58:31,693 [noc.core.mib] Loading MIB: ENTITY-MIB
  35. 2018-04-27 07:58:31,693 [noc.core.mib] Loading MIB: IP-MIB
  36. 2018-04-27 07:58:31,693 [noc.core.mib] Loading MIB: ENTITY-SENSOR-MIB
  37. 2018-04-27 07:58:31,694 [noc.core.mib] Loading MIB: CISCO-VPDN-MGMT-MIB
  38. 2018-04-27 07:58:31,694 [noc.core.mib] Loading MIB: LLDP-MIB
  39. 2018-04-27 07:58:31,712 [noc.core.profile.loader] Loading profile Nateks.NetXpert
  40. 2018-04-27 07:58:31,712 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] Filling get_version cache with {'platform': u'NX-3424', 'version': u'2.1.1A Build 13295', 'vendor': u'Nateks'}
  41. 2018-04-27 07:58:31,713 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] Running. Input arguments: {}, timeout 3600
  42. 2018-04-27 07:58:31,713 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [snmp] Creating IOLoop
  43. 2018-04-27 07:58:31,713 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [snmp] Create UDP socket
  44. 2018-04-27 07:58:31,713 [noc.core.ioloop.snmp] [xx.xx.xx.19] SNMP GET ['1.3.6.1.2.1.1.2.0']
  45. 2018-04-27 07:58:31,738 [noc.core.ioloop.snmp] [xx.xx.xx.19] GET result: '1.3.6.1.4.1.4249.21.162'
  46. 2018-04-27 07:58:31,738 [noc.core.ioloop.snmp] [xx.xx.xx.19] SNMP GET ['1.3.6.1.2.1.1.2.0']
  47. 2018-04-27 07:58:31,763 [noc.core.ioloop.snmp] [xx.xx.xx.19] GET result: '1.3.6.1.4.1.4249.21.162'
  48. 2018-04-27 07:58:31,763 [noc.core.ioloop.snmp] [xx.xx.xx.19] SNMP GETNEXT 1.3.6.1.2.1.1.1
  49. 2018-04-27 07:58:31,790 [noc.core.ioloop.snmp] [xx.xx.xx.19] GETNEXT result: [('1.3.6.1.2.1.1.1.0', 'Nateks Networks Co.Ltd Internetwork Operating System Software\nNX-3424 Series Software, Version 2.1.1A Build 13295, RELEASE SOFTWARE\nCompiled: 2013-6-5 17:32:1 by SYS\nROM: System Bootstrap, Version 0.3.5\nSerial num:S20083309, ID num:20083309\n')]
  50. 2018-04-27 07:58:31,790 [noc.core.ioloop.snmp] [xx.xx.xx.19] SNMP GETNEXT 1.3.6.1.2.1.2.2.1.1
  51. 2018-04-27 07:58:31,839 [noc.core.ioloop.snmp] [xx.xx.xx.19] GETNEXT result: [('1.3.6.1.2.1.2.2.1.1.1', 1)]
  52. 2018-04-27 07:58:31,840 [noc.core.ioloop.snmp] [xx.xx.xx.19] SNMP GETNEXT 1.3.6.1.2.1.31.1.1.1.6
  53. 2018-04-27 07:58:31,912 [noc.core.ioloop.snmp] [xx.xx.xx.19] GETNEXT result: [('1.3.6.1.2.1.31.1.1.1.6.1', 56628979)]
  54. 2018-04-27 07:58:31,912 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] Open telnet CLI
  55. 2018-04-27 07:58:31,914 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Creating IOLoop
  56. 2018-04-27 07:58:31,915 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Connecting (u'xx.xx.xx.19', 23)
  57. 2018-04-27 07:58:31,939 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Connected
  58. 2018-04-27 07:58:31,939 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] State: <START>
  59. 2018-04-27 07:58:31,939 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Setting timeout: 60s
  60. 2018-04-27 07:58:31,964 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received WILL ECHO
  61. 2018-04-27 07:58:31,964 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send DO ECHO
  62. 2018-04-27 07:58:31,987 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received WILL SGA
  63. 2018-04-27 07:58:31,987 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send DO SGA
  64. 2018-04-27 07:58:31,988 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received DO TTYPE
  65. 2018-04-27 07:58:31,988 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send WILL TTYPE
  66. 2018-04-27 07:58:31,988 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received DO NAWS
  67. 2018-04-27 07:58:31,988 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send WILL NAWS
  68. 2018-04-27 07:58:31,988 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send IAC SB '\x1f' '\x00\x80\x00\x80' IAC SE
  69. 2018-04-27 07:58:31,988 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: 'User Access Verification\r\n\r\nUsername: '
  70. 2018-04-27 07:58:31,989 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Match: ([Uu]ser ?[Nn]ame|[Ll]ogin): ?
  71. 2018-04-27 07:58:31,989 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] State: <USERNAME>
  72. 2018-04-27 07:58:31,989 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send: 'admin\n'
  73. 2018-04-27 07:58:31,989 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Setting timeout: 30s
  74. 2018-04-27 07:58:32,013 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received IAC SB 1801 SE
  75. 2018-04-27 07:58:32,014 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '\xf0'
  76. 2018-04-27 07:58:32,056 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: 'a'
  77. 2018-04-27 07:58:32,131 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: 'dmin\r\n'
  78. 2018-04-27 07:58:32,156 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: 'Password: '
  79. 2018-04-27 07:58:32,156 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Match: [Pp]ass[Ww]ord: ?
  80. 2018-04-27 07:58:32,156 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] State: <PASSWORD>
  81. 2018-04-27 07:58:32,156 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send: 'admin\n'
  82. 2018-04-27 07:58:32,157 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Setting timeout: 30s
  83. 2018-04-27 07:58:32,356 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '\r\n'
  84. 2018-04-27 07:58:32,421 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n                 Welcome to Nateks NX-3424 Ethernet Switch\r\n\r\n\r\n\r\n\r\n\r\nUZA-8>'
  85. 2018-04-27 07:58:32,422 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Match: ^\S+?>
  86. 2018-04-27 07:58:32,422 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] State: <UNPRIVILEGED_PROMPT>
  87. 2018-04-27 07:58:32,422 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send: 'enable\n'
  88. 2018-04-27 07:58:32,422 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Setting timeout: 10s
  89. 2018-04-27 07:58:32,446 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: 'e'
  90. 2018-04-27 07:58:32,513 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: 'nable\r\nUZA-8#'
  91. 2018-04-27 07:58:32,513 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Match: ^(?P<hostname>[a-zA-Z0-9/.]\S{0,35})(?:[-_\d\w]+)?(?:\(_config[^\)]*\))?#
  92. 2018-04-27 07:58:32,514 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] State: <PROMT>
  93. 2018-04-27 07:58:32,514 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Refining pattern prompt to '^UZA\\-8(?:[-_\\d\\w]+)?(?:\\(_config[^\\)]*\\))?#'
  94. 2018-04-27 07:58:32,514 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Resetting timeouts
  95. 2018-04-27 07:58:32,515 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send: 'sh configuration\r\n\n'
  96. 2018-04-27 07:58:32,539 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: 's'
  97. 2018-04-27 07:58:32,544 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: 'h configuration\r\n!version 2.1.1A build 13295\r\nservice timestamps log date\r\nservice timestamps debug date\r\n!\r\nhostname UZA-8\r\n!\r\n!\r\n!\r\n!\r\nlldp run\r\n!\r\n!\r\nip default-gateway xx.xx.xx.1\r\n!\r\n!\r\nspanning-tree mode rstp\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\naaa authentication login default local\r\naaa authentication enable default none\r\naaa authorization exec default local\r\n!\r\nusername admin password 0 admin\r\n!\r\n!\r\n!\r\ninterface FastEthernet0/1\r\n description PLK\r\n switchport pvid 102\r\n!\r\ninterface FastEthernet0/2\r\n!\r\ni'
  98. 2018-04-27 07:58:32,544 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: 'nterface FastEthernet0/3\r\n!\r\ninterface FastEthernet0/4\r\n!\r\ninterface FastEthernet0/5\r\n!\r\ninterface FastEthernet0/6\r\n!\r\ninterface FastEthernet0/7\r\n!\r\ninterface FastEthernet0/8\r\n!\r\ninterface FastEthernet0/9\r\n!\r\ninterface FastEthernet0/10\r\n!\r\ninterface FastEthernet0/11\r\n!\r\ninterface FastEthernet0/12\r\n!\r\ninterface FastEthernet0/13\r\n!\r\ninterface FastEthernet0/14\r\n!\r\ninterface FastEthernet0/15\r\n!\r\ninterface FastEthernet0/16\r\n!\r\ninterface FastEthernet0/17\r\n!\r\ninterface FastEthernet0/18\r\n!\r\ninterface FastEthernet0/'
  99. 2018-04-27 07:58:32,544 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '19\r\n!\r\ninterface FastEthernet0/20\r\n description Video\r\n switchport pvid 108\r\n!\r\ninterface FastEthernet0/21\r\n description KITSO\r\n switchport pvid 112\r\n!\r\ninterface FastEthernet0/22\r\n description KITSO\r\n switchport pvid 112\r\n!\r\ninterface FastEthernet0/23\r\n description VoIP\r\n switchport trunk vlan-untagged none\r\n switchport pvid 23\r\n!\r\ninterface FastEthernet0/24\r\n description Manager\r\n switchport trunk vlan-untagged none\r\n switchport mode trunk\r\n switchport pvid 22\r\n!\r\ninterface GigaEthernet0/1\r\n description U'
  100. 2018-04-27 07:58:32,568 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: 'ZA-5\r\n switchport trunk vlan-untagged none\r\n switchport mode trunk\r\n switchport pvid 22\r\n!\r\ninterface GigaEthernet0/2\r\n description UZA-9\r\n switchport trunk vlan-untagged none\r\n switchport mode trunk\r\n switchport pvid 22\r\n!\r\ninterface VLAN22\r\n ip address xx.xx.xx.19 255.255.255.0\r\n!\r\n!\r\n!\r\nvlan 1,22-23,102,108,112\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\nip http language english\r\nip http server\r\n!\r\n!\r\n --More-- '
  101. 2018-04-27 07:58:32,569 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Match: (^ --More-- )|((?:\?|interfaces)\s*\[confirm\])
  102. 2018-04-27 07:58:32,569 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send: '\n'
  103. 2018-04-27 07:58:32,651 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '\x08\x08\x08\x08\x08\x08\x08\x08\x08        \x08\x08\x08\x08\x08\x08\x08\x08\x08'
  104. 2018-04-27 07:58:32,713 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: 'snmp-server community 0 xxxxxx RO \r\n --More-- '
  105. 2018-04-27 07:58:32,713 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Match: (^ --More-- )|((?:\?|interfaces)\s*\[confirm\])
  106. 2018-04-27 07:58:32,714 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send: '\n'
  107. 2018-04-27 07:58:32,846 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '\x08\x08\x08\x08\x08\x08\x08\x08\x08        \x08\x08\x08\x08\x08\x08\x08\x08\x08'
  108. 2018-04-27 07:58:32,908 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '!\r\n --More-- '
  109. 2018-04-27 07:58:32,909 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Match: (^ --More-- )|((?:\?|interfaces)\s*\[confirm\])
  110. 2018-04-27 07:58:32,909 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send: '\n'
  111. 2018-04-27 07:58:33,046 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '\x08\x08\x08\x08\x08\x08\x08\x08\x08        \x08\x08\x08\x08\x08\x08\x08\x08\x08'
  112. 2018-04-27 07:58:33,108 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '!\r\n --More-- '
  113. 2018-04-27 07:58:33,109 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Match: (^ --More-- )|((?:\?|interfaces)\s*\[confirm\])
  114. 2018-04-27 07:58:33,109 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send: '\n'
  115. 2018-04-27 07:58:33,266 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '\x08\x08\x08\x08\x08\x08\x08\x08\x08        \x08\x08\x08\x08\x08\x08\x08\x08\x08'
  116. 2018-04-27 07:58:33,330 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '!\r\n --More-- '
  117. 2018-04-27 07:58:33,331 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Match: (^ --More-- )|((?:\?|interfaces)\s*\[confirm\])
  118. 2018-04-27 07:58:33,331 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send: '\n'
  119. 2018-04-27 07:58:33,468 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '\x08\x08\x08\x08\x08\x08\x08\x08\x08        \x08\x08\x08\x08\x08\x08\x08\x08\x08'
  120. 2018-04-27 07:58:33,532 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '!\r\n --More-- '
  121. 2018-04-27 07:58:33,532 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Match: (^ --More-- )|((?:\?|interfaces)\s*\[confirm\])
  122. 2018-04-27 07:58:33,532 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send: '\n'
  123. 2018-04-27 07:58:33,691 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '\x08\x08\x08\x08\x08\x08\x08\x08\x08        \x08\x08\x08\x08\x08\x08\x08\x08\x08'
  124. 2018-04-27 07:58:33,753 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '\r\n'
  125. 2018-04-27 07:58:33,786 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: 'UZA-8#'
  126. 2018-04-27 07:58:33,786 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Match: ^UZA\-8(?:[-_\d\w]+)?(?:\(_config[^\)]*\))?#
  127. 2018-04-27 07:58:33,786 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] State: <PROMT>
  128. 2018-04-27 07:58:33,787 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Command: sh configuration
  129. sh configuration
  130. !version 2.1.1A build 13295
  131. service timestamps log date
  132. service timestamps debug date
  133. !
  134. hostname UZA-8
  135. !
  136. !
  137. !
  138. !
  139. lldp run
  140. !
  141. !
  142. ip default-gateway xx.xx.xx.1
  143. !
  144. !
  145. spanning-tree mode rstp
  146. !
  147. !
  148. !
  149. !
  150. !
  151. !
  152. !
  153. !
  154. !
  155. !
  156. !
  157. aaa authentication login default local
  158. aaa authentication enable default none
  159. aaa authorization exec default local
  160. !
  161. username admin password 0 admin
  162. !
  163. !
  164. !
  165. interface FastEthernet0/1
  166.  description PLK
  167.  switchport pvid 102
  168. !
  169. interface FastEthernet0/2
  170. !
  171. interface FastEthernet0/3
  172. !
  173. interface FastEthernet0/4
  174. !
  175. interface FastEthernet0/5
  176. !
  177. interface FastEthernet0/6
  178. !
  179. interface FastEthernet0/7
  180. !
  181. interface FastEthernet0/8
  182. !
  183. interface FastEthernet0/9
  184. !
  185. interface FastEthernet0/10
  186. !
  187. interface FastEthernet0/11
  188. !
  189. interface FastEthernet0/12
  190. !
  191. interface FastEthernet0/13
  192. !
  193. interface FastEthernet0/14
  194. !
  195. interface FastEthernet0/15
  196. !
  197. interface FastEthernet0/16
  198. !
  199. interface FastEthernet0/17
  200. !
  201. interface FastEthernet0/18
  202. !
  203. interface FastEthernet0/19
  204. !
  205. interface FastEthernet0/20
  206.  description Video
  207.  switchport pvid 108
  208. !
  209. interface FastEthernet0/21
  210.  description KITSO
  211.  switchport pvid 112
  212. !
  213. interface FastEthernet0/22
  214.  description KITSO
  215.  switchport pvid 112
  216. !
  217. interface FastEthernet0/23
  218.  description VoIP
  219.  switchport trunk vlan-untagged none
  220.  switchport pvid 23
  221. !
  222. interface FastEthernet0/24
  223.  description Manager
  224.  switchport trunk vlan-untagged none
  225.  switchport mode trunk
  226.  switchport pvid 22
  227. !
  228. interface GigaEthernet0/1
  229.  description UZA-5
  230.  switchport trunk vlan-untagged none
  231.  switchport mode trunk
  232.  switchport pvid 22
  233. !
  234. interface GigaEthernet0/2
  235.  description UZA-9
  236.  switchport trunk vlan-untagged none
  237.  switchport mode trunk
  238.  switchport pvid 22
  239. !
  240. interface VLAN22
  241.  ip address xx.xx.xx.19 255.255.255.0
  242. !
  243. !
  244. !
  245. vlan 1,22-23,102,108,112
  246. !
  247. !
  248. !
  249. !
  250. !
  251. !
  252. !
  253. ip http language english
  254. ip http server
  255. !
  256. !
  257. snmp-server community 0 xxxxxx RO
  258. !
  259. !
  260. !
  261. !
  262.  
  263.  
  264. 2018-04-27 07:58:33,791 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Send: 'show configuration\r\n\n'
  265. 2018-04-27 07:58:33,812 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Received: '\r\nUZA-8#'
  266. 2018-04-27 07:58:33,812 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Match: ^UZA\-8(?:[-_\d\w]+)?(?:\(_config[^\)]*\))?#
  267. 2018-04-27 07:58:33,812 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] State: <PROMT>
  268. 2018-04-27 07:58:33,812 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Command: show configuration
  269.  
  270.  
  271. 2018-04-27 07:58:33,812 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  272. 2018-04-27 07:58:33,813 [noc.core.ioloop.snmp] [xx.xx.xx.19] SNMP GET ['1.3.6.1.2.1.1.2.0']
  273. 2018-04-27 07:58:33,837 [noc.core.ioloop.snmp] [xx.xx.xx.19] GET result: '1.3.6.1.4.1.4249.21.162'
  274. 2018-04-27 07:58:33,838 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  275. 2018-04-27 07:58:33,838 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  276. 2018-04-27 07:58:33,838 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  277. 2018-04-27 07:58:33,838 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  278. 2018-04-27 07:58:33,838 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  279. 2018-04-27 07:58:33,838 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  280. 2018-04-27 07:58:33,838 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  281. 2018-04-27 07:58:33,839 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  282. 2018-04-27 07:58:33,839 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  283. 2018-04-27 07:58:33,839 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  284. 2018-04-27 07:58:33,839 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  285. 2018-04-27 07:58:33,839 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  286. 2018-04-27 07:58:33,839 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  287. 2018-04-27 07:58:33,839 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  288. 2018-04-27 07:58:33,839 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  289. 2018-04-27 07:58:33,840 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  290. 2018-04-27 07:58:33,840 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  291. 2018-04-27 07:58:33,840 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  292. 2018-04-27 07:58:33,840 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  293. 2018-04-27 07:58:33,840 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  294. 2018-04-27 07:58:33,840 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  295. 2018-04-27 07:58:33,840 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  296. 2018-04-27 07:58:33,841 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  297. 2018-04-27 07:58:33,841 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  298. 2018-04-27 07:58:33,841 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  299. 2018-04-27 07:58:33,841 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  300. 2018-04-27 07:58:33,841 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  301. 2018-04-27 07:58:33,841 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  302. 2018-04-27 07:58:33,841 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  303. 2018-04-27 07:58:33,842 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'C' handler. Passing to next method
  304. 2018-04-27 07:58:33,842 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] No 'S' handler. Passing to next method
  305. 2018-04-27 07:58:33,842 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [snmp] Closing UDP socket
  306. 2018-04-27 07:58:33,842 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [snmp] Closing IOLoop
  307. 2018-04-27 07:58:33,842 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] [telnet] Closing IOLoop
  308. 2018-04-27 07:58:33,842 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] Result: {'Network | STP': True, 'SNMP | IF-MIB | HC': True, 'SNMP | IF-MIB': True, 'SNMP': True, 'SNMP | v2c': True, 'SNMP | Bulk': True, 'SNMP | v3': False, 'SNMP | v1': True}
  309. 2018-04-27 07:58:33,842 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.19] Complete (2129.88ms)
  310. {'Network | STP': True,
  311.  'SNMP': True,
  312.  'SNMP | Bulk': True,
  313.  'SNMP | IF-MIB': True,
  314.  'SNMP | IF-MIB | HC': True,
  315.  'SNMP | v1': True,
  316.  'SNMP | v2c': True,
  317.  'SNMP | v3': False}
  318.  
  319.  
  320.  
  321. root@Node1:/opt/noc# ./noc script --debug --pretty get_capabilities "K5-SW"
  322. 2018-04-27 07:58:58,782 [noc.core.dcs.base] Resolve near service postgres
  323. 2018-04-27 07:58:58,783 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
  324. 2018-04-27 07:58:58,785 [noc.core.http.client] HTTP Response 200
  325. 2018-04-27 07:58:58,786 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
  326. 2018-04-27 07:58:59,643 [noc.core.dcs.base] Running resolver for service mongo
  327. 2018-04-27 07:58:59,644 [noc.core.dcs.base] [mongo] Starting resolver
  328. 2018-04-27 07:58:59,644 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  329. 2018-04-27 07:58:59,645 [noc.core.http.client] HTTP Response 200
  330. 2018-04-27 07:58:59,646 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
  331. 2018-04-27 07:58:59,646 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=2116447&passing=1
  332. 2018-04-27 07:58:59,647 [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': '********'}
  333. 2018-04-27 07:58:59,703 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  334. 2018-04-27 07:58:59,763 [noc.main.models.doccategory] Registering Capability
  335. 2018-04-27 07:58:59,764 [noc.main.models.doccategory] Registering MetricType
  336. 2018-04-27 07:58:59,802 [noc.main.models.doccategory] Registering ConnectionType
  337. 2018-04-27 07:58:59,805 [noc.main.models.doccategory] Registering ObjectModel
  338. 2018-04-27 07:58:59,816 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  339. 2018-04-27 07:58:59,831 [noc.main.models.textindex] Adding FTS index for ip.vrf
  340. 2018-04-27 07:58:59,834 [noc.main.models.textindex] Adding FTS index for vc.vc
  341. 2018-04-27 07:58:59,835 [noc.main.models.textindex] Adding FTS index for ip.prefix
  342. 2018-04-27 07:58:59,840 [noc.main.models.textindex] Adding FTS index for ip.address
  343. 2018-04-27 07:58:59,887 [noc.core.script.loader] Loading script Nateks.NetXpert.get_capabilities
  344. 2018-04-27 07:58:59,888 [noc.core.mib] Loading compiled MIBs
  345. 2018-04-27 07:58:59,888 [noc.core.mib] Loading compiled MIBs from 'cmibs'
  346. 2018-04-27 07:58:59,889 [noc.core.mib] Loading MIB: ENTITY-STATE-MIB
  347. 2018-04-27 07:58:59,889 [noc.core.mib] Loading MIB: SNMPv2-MIB
  348. 2018-04-27 07:58:59,889 [noc.core.mib] Loading MIB: CISCO-PPPOE-MIB
  349. 2018-04-27 07:58:59,889 [noc.core.mib] Loading MIB: RMON2-MIB
  350. 2018-04-27 07:58:59,890 [noc.core.mib] Loading MIB: IF-MIB
  351. 2018-04-27 07:58:59,890 [noc.core.mib] Loading MIB: RFC1213-MIB
  352. 2018-04-27 07:58:59,890 [noc.core.mib] Loading MIB: BRIDGE-MIB
  353. 2018-04-27 07:58:59,890 [noc.core.mib] Loading MIB: EtherLike-MIB
  354. 2018-04-27 07:58:59,890 [noc.core.mib] Loading MIB: ENTITY-MIB
  355. 2018-04-27 07:58:59,890 [noc.core.mib] Loading MIB: IP-MIB
  356. 2018-04-27 07:58:59,891 [noc.core.mib] Loading MIB: ENTITY-SENSOR-MIB
  357. 2018-04-27 07:58:59,891 [noc.core.mib] Loading MIB: CISCO-VPDN-MGMT-MIB
  358. 2018-04-27 07:58:59,891 [noc.core.mib] Loading MIB: LLDP-MIB
  359. 2018-04-27 07:58:59,909 [noc.core.profile.loader] Loading profile Nateks.NetXpert
  360. 2018-04-27 07:58:59,910 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] Filling get_version cache with {'platform': u'NetXpert NX-3408 V1', 'version': u'2.1.1A Build 12652', 'vendor': u'Nateks'}
  361. 2018-04-27 07:58:59,910 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] Running. Input arguments: {}, timeout 3600
  362. 2018-04-27 07:58:59,910 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [snmp] Creating IOLoop
  363. 2018-04-27 07:58:59,910 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [snmp] Create UDP socket
  364. 2018-04-27 07:58:59,910 [noc.core.ioloop.snmp] [xx.xx.xx.107] SNMP GET ['1.3.6.1.2.1.1.2.0']
  365. 2018-04-27 07:58:59,957 [noc.core.ioloop.snmp] [xx.xx.xx.107] GET result: '1.3.6.1.4.1.4249.21.146'
  366. 2018-04-27 07:58:59,958 [noc.core.ioloop.snmp] [xx.xx.xx.107] SNMP GET ['1.3.6.1.2.1.1.2.0']
  367. 2018-04-27 07:58:59,987 [noc.core.ioloop.snmp] [xx.xx.xx.107] GET result: '1.3.6.1.4.1.4249.21.146'
  368. 2018-04-27 07:58:59,988 [noc.core.ioloop.snmp] [xx.xx.xx.107] SNMP GETNEXT 1.3.6.1.2.1.1.1
  369. 2018-04-27 07:59:00,020 [noc.core.ioloop.snmp] [xx.xx.xx.107] GETNEXT result: [('1.3.6.1.2.1.1.1.0', 'Nateks Networks Co.Ltd Internetwork Operating System Software\nNetXpert NX-3408 V1 Series Software, Version 2.1.1A Build 12652, RELEASE SOFTWARE\nCompiled: 2013-4-16 11:58:17 by SYS\nROM: System Bootstrap, Version 0.3.5\nSerial num:S20432813, ID num:20432813\n')]
  370. 2018-04-27 07:59:00,020 [noc.core.ioloop.snmp] [xx.xx.xx.107] SNMP GETNEXT 1.3.6.1.2.1.2.2.1.1
  371. 2018-04-27 07:59:00,087 [noc.core.ioloop.snmp] [xx.xx.xx.107] GETNEXT result: [('1.3.6.1.2.1.2.2.1.1.1', 1)]
  372. 2018-04-27 07:59:00,087 [noc.core.ioloop.snmp] [xx.xx.xx.107] SNMP GETNEXT 1.3.6.1.2.1.31.1.1.1.6
  373. 2018-04-27 07:59:00,147 [noc.core.ioloop.snmp] [xx.xx.xx.107] GETNEXT result: [('1.3.6.1.2.1.31.1.1.1.6.1', 859375326)]
  374. 2018-04-27 07:59:00,148 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] Open telnet CLI
  375. 2018-04-27 07:59:00,150 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Creating IOLoop
  376. 2018-04-27 07:59:00,150 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Connecting (u'xx.xx.xx.107', 23)
  377. 2018-04-27 07:59:00,183 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Connected
  378. 2018-04-27 07:59:00,183 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] State: <START>
  379. 2018-04-27 07:59:00,183 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Setting timeout: 60s
  380. 2018-04-27 07:59:00,216 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received WILL ECHO
  381. 2018-04-27 07:59:00,217 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Send DO ECHO
  382. 2018-04-27 07:59:00,244 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received WILL SGA
  383. 2018-04-27 07:59:00,244 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Send DO SGA
  384. 2018-04-27 07:59:00,244 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received DO TTYPE
  385. 2018-04-27 07:59:00,245 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Send WILL TTYPE
  386. 2018-04-27 07:59:00,245 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received DO NAWS
  387. 2018-04-27 07:59:00,245 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Send WILL NAWS
  388. 2018-04-27 07:59:00,245 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Send IAC SB '\x1f' '\x00\x80\x00\x80' IAC SE
  389. 2018-04-27 07:59:00,245 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: 'User Access Verification\r\n\r\nUsername: '
  390. 2018-04-27 07:59:00,245 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Match: ([Uu]ser ?[Nn]ame|[Ll]ogin): ?
  391. 2018-04-27 07:59:00,245 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] State: <USERNAME>
  392. 2018-04-27 07:59:00,245 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Send: 'admin\n'
  393. 2018-04-27 07:59:00,246 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Setting timeout: 30s
  394. 2018-04-27 07:59:00,273 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received IAC SB 1801 SE
  395. 2018-04-27 07:59:00,273 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: '\xf0'
  396. 2018-04-27 07:59:00,318 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: 'a'
  397. 2018-04-27 07:59:00,396 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: 'dmin\r\n'
  398. 2018-04-27 07:59:00,434 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: 'Password: '
  399. 2018-04-27 07:59:00,434 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Match: [Pp]ass[Ww]ord: ?
  400. 2018-04-27 07:59:00,434 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] State: <PASSWORD>
  401. 2018-04-27 07:59:00,434 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Send: 'admin\n'
  402. 2018-04-27 07:59:00,434 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Setting timeout: 30s
  403. 2018-04-27 07:59:00,614 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: '\r\n'
  404. 2018-04-27 07:59:00,695 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: '\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n                 Welcome to Nateks NetXpert NX-3408 V1 Ethernet Switch\r\n\r\n\r\n\r\n\r\n\r\nK5-SW>'
  405. 2018-04-27 07:59:00,696 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Match: ^\S+?>
  406. 2018-04-27 07:59:00,696 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] State: <UNPRIVILEGED_PROMPT>
  407. 2018-04-27 07:59:00,696 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Send: 'enable\n'
  408. 2018-04-27 07:59:00,696 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Setting timeout: 10s
  409. 2018-04-27 07:59:00,726 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: 'e'
  410. 2018-04-27 07:59:00,805 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: 'nable\r\nK5-SW#'
  411. 2018-04-27 07:59:00,806 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Match: ^(?P<hostname>[a-zA-Z0-9/.]\S{0,35})(?:[-_\d\w]+)?(?:\(_config[^\)]*\))?#
  412. 2018-04-27 07:59:00,806 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] State: <PROMT>
  413. 2018-04-27 07:59:00,806 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Refining pattern prompt to '^K5\\-SW(?:[-_\\d\\w]+)?(?:\\(_config[^\\)]*\\))?#'
  414. 2018-04-27 07:59:00,806 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Resetting timeouts
  415. 2018-04-27 07:59:00,807 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Send: 'sh configuration\r\n\n'
  416. 2018-04-27 07:59:00,838 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: 's'
  417. 2018-04-27 07:59:00,843 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: 'h configuration\r\n!version 2.1.1A build 12652\r\nservice timestamps log date\r\nservice timestamps debug date\r\nlogging 10.220.21.123\r\nlogging buffered 21474\r\nlogging trap debugging\r\n!\r\nhostname K5-SW\r\n!\r\n!\r\n!\r\n!\r\nlldp run\r\n!\r\nip default-gateway xx.xx.xx.1\r\n!\r\n!\r\nspanning-tree mode rstp\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\naaa authentication login default local\r\naaa authentication enable default none\r\naaa authorization exec default local\r\n!\r\nusername admin password 0 admin\r\n!\r\n!\r\n!\r\ninterface FastEthernet0/1\r\n descr'
  418. 2018-04-27 07:59:00,843 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: 'iption ACSPP\r\n switchport pvid 106\r\n!\r\ninterface FastEthernet0/2\r\n description FFS\r\n switchport pvid 28\r\n!\r\ninterface FastEthernet0/3\r\n description VoIP\r\n switchport pvid 23\r\n!\r\ninterface FastEthernet0/4\r\n description Video\r\n switchport pvid 27\r\n!\r\ninterface FastEthernet0/5\r\n!\r\ninterface FastEthernet0/6\r\n switchport pvid 106\r\n!\r\ninterface FastEthernet0/7\r\n switchport pvid 26\r\n!\r\ninterface FastEthernet0/8\r\n description K5-WAP\r\n switchport mode trunk\r\n!\r\ninterface GigaEthernet1/1\r\n!\r\ninterface GigaEthernet1/2\r\n!\r\ninterface VLAN1\r\n shutdown\r\n ip address 192.168.0.1 255.255.0.0\r\n!\r\ninterface VLAN22\r\n description Network Management\r\n ip address xx.xx.xx.107 255.255.255.0\r\n!\r\n!\r\n!\r\nvlan 22\r\n name Network_Management\r\n!\r\nvlan 23\r\n name VoIP\r\n!\r\nvlan 26\r\n name Infinet_Management\r\n!\r\nvlan 27\r\n name Video\r\n!\r\nvlan 28\r\n name FFS\r\n!\r\nvlan 106\r\n name ACSPP\r\n!\r\nvlan 1,22-23,26-28,106\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\nip http language chinese\r\nip http server\r\n!\r\n!\r\nsnmp-server community 0 xxxxxx RO \r\n!\r\n!\r\nip sshd enable\r\n!\r\nsntp server 1'
  419. 2018-04-27 07:59:00,884 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: '0.220.21.122\r\n!\r\n!\r\n\r\nK5-SW#\r\nK5-SW#'
  420. 2018-04-27 07:59:00,884 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Match: ^K5\-SW(?:[-_\d\w]+)?(?:\(_config[^\)]*\))?#
  421. 2018-04-27 07:59:00,884 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] State: <PROMT>
  422. 2018-04-27 07:59:00,884 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Command: sh configuration
  423. sh configuration
  424. !version 2.1.1A build 12652
  425. service timestamps log date
  426. service timestamps debug date
  427. logging 10.220.21.123
  428. logging buffered 21474
  429. logging trap debugging
  430. !
  431. hostname K5-SW
  432. !
  433. !
  434. !
  435. !
  436. lldp run
  437. !
  438. ip default-gateway xx.xx.xx.1
  439. !
  440. !
  441. spanning-tree mode rstp
  442. !
  443. !
  444. !
  445. !
  446. !
  447. !
  448. !
  449. !
  450. !
  451. !
  452. !
  453. aaa authentication login default local
  454. aaa authentication enable default none
  455. aaa authorization exec default local
  456. !
  457. username admin password 0 admin
  458. !
  459. !
  460. !
  461. interface FastEthernet0/1
  462.  description ACSPP
  463.  switchport pvid 106
  464. !
  465. interface FastEthernet0/2
  466.  description FFS
  467.  switchport pvid 28
  468. !
  469. interface FastEthernet0/3
  470.  description VoIP
  471.  switchport pvid 23
  472. !
  473. interface FastEthernet0/4
  474.  description Video
  475.  switchport pvid 27
  476. !
  477. interface FastEthernet0/5
  478. !
  479. interface FastEthernet0/6
  480.  switchport pvid 106
  481. !
  482. interface FastEthernet0/7
  483.  switchport pvid 26
  484. !
  485. interface FastEthernet0/8
  486.  description K5-WAP
  487.  switchport mode trunk
  488. !
  489. interface GigaEthernet1/1
  490. !
  491. interface GigaEthernet1/2
  492. !
  493. interface VLAN1
  494.  shutdown
  495.  ip address 192.168.0.1 255.255.0.0
  496. !
  497. interface VLAN22
  498.  description Network Management
  499.  ip address xx.xx.xx.107 255.255.255.0
  500. !
  501. !
  502. !
  503. vlan 22
  504.  name Network_Management
  505. !
  506. vlan 23
  507.  name VoIP
  508. !
  509. vlan 26
  510.  name Infinet_Management
  511. !
  512. vlan 27
  513.  name Video
  514. !
  515. vlan 28
  516.  name FFS
  517. !
  518. vlan 106
  519.  name ACSPP
  520. !
  521. vlan 1,22-23,26-28,106
  522. !
  523. !
  524. !
  525. !
  526. !
  527. !
  528. ip http language chinese
  529. ip http server
  530. !
  531. !
  532. snmp-server community 0 xxxxxx RO
  533. !
  534. !
  535. ip sshd enable
  536. !
  537. sntp server 10.220.21.122
  538. !
  539. !
  540.  
  541.  
  542. 2018-04-27 07:59:00,888 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Send: 'show configuration\r\n\n'
  543. 2018-04-27 07:59:00,925 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: 's'
  544. 2018-04-27 07:59:00,930 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: 'how configuration\r\n!version 2.1.1A build 12652\r\nservice timestamps log date\r\nservice timestamps debug date\r\nlogging 10.220.21.123\r\nlogging buffered 21474\r\nlogging trap debugging\r\n!\r\nhostname K5-SW\r\n!\r\n!\r\n!\r\n!\r\nlldp run\r\n!\r\nip default-gateway xx.xx.xx.1\r\n!\r\n!\r\nspanning-tree mode rstp\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\naaa authentication login default local\r\naaa authentication enable default none\r\naaa authorization exec default local\r\n!\r\nusername admin password 0 admin\r\n!\r\n!\r\n!\r\ninterface FastEthernet0/1\r\n des'
  545. 2018-04-27 07:59:00,931 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: 'cription ACSPP\r\n switchport pvid 106\r\n!\r\ninterface FastEthernet0/2\r\n description FFS\r\n switchport pvid 28\r\n!\r\ninterface FastEthernet0/3\r\n description VoIP\r\n switchport pvid 23\r\n!\r\ninterface FastEthernet0/4\r\n description Video\r\n switchport pvid 27\r\n!\r\ninterface FastEthernet0/5\r\n!\r\ninterface FastEthernet0/6\r\n switchport pvid 106\r\n!\r\ninterface FastEthernet0/7\r\n switchport pvid 26\r\n!\r\ninterface FastEthernet0/8\r\n description K5-WAP\r\n switchport mode trunk\r\n!\r\ninterface GigaEthernet1/1\r\n!\r\ninterface GigaEthernet1'
  546. 2018-04-27 07:59:00,933 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: '/2\r\n!\r\ninterface VLAN1\r\n shutdown\r\n ip address 192.168.0.1 255.255.0.0\r\n!\r\ninterface VLAN22\r\n description Network Management\r\n ip address xx.xx.xx.107 255.255.255.0\r\n!\r\n!\r\n!\r\nvlan 22\r\n name Network_Management\r\n!\r\nvlan 23\r\n name VoIP\r\n!\r\nvlan 26\r\n name Infinet_Management\r\n!\r\nvlan 27\r\n name Video\r\n!\r\nvlan 28\r\n name FFS\r\n!\r\nvlan 106\r\n name ACSPP\r\n!\r\nvlan 1,22-23,26-28,106\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\nip http language chinese\r\nip http server\r\n!\r\n!\r\nsnmp-server community 0 xxxxxx RO \r\n!\r\n!\r\nip sshd enable\r\n!\r\nsntp server'
  547. 2018-04-27 07:59:00,969 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Received: ' 10.220.21.122\r\n!\r\n!\r\n\r\nK5-SW#\r\nK5-SW#'
  548. 2018-04-27 07:59:00,970 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Match: ^K5\-SW(?:[-_\d\w]+)?(?:\(_config[^\)]*\))?#
  549. 2018-04-27 07:59:00,970 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] State: <PROMT>
  550. 2018-04-27 07:59:00,970 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Command: show configuration
  551. show configuration
  552. !version 2.1.1A build 12652
  553. service timestamps log date
  554. service timestamps debug date
  555. logging 10.220.21.123
  556. logging buffered 21474
  557. logging trap debugging
  558. !
  559. hostname K5-SW
  560. !
  561. !
  562. !
  563. !
  564. lldp run
  565. !
  566. ip default-gateway xx.xx.xx.1
  567. !
  568. !
  569. spanning-tree mode rstp
  570. !
  571. !
  572. !
  573. !
  574. !
  575. !
  576. !
  577. !
  578. !
  579. !
  580. !
  581. aaa authentication login default local
  582. aaa authentication enable default none
  583. aaa authorization exec default local
  584. !
  585. username admin password 0 admin
  586. !
  587. !
  588. !
  589. interface FastEthernet0/1
  590.  description ACSPP
  591.  switchport pvid 106
  592. !
  593. interface FastEthernet0/2
  594.  description FFS
  595.  switchport pvid 28
  596. !
  597. interface FastEthernet0/3
  598.  description VoIP
  599.  switchport pvid 23
  600. !
  601. interface FastEthernet0/4
  602.  description Video
  603.  switchport pvid 27
  604. !
  605. interface FastEthernet0/5
  606. !
  607. interface FastEthernet0/6
  608.  switchport pvid 106
  609. !
  610. interface FastEthernet0/7
  611.  switchport pvid 26
  612. !
  613. interface FastEthernet0/8
  614.  description K5-WAP
  615.  switchport mode trunk
  616. !
  617. interface GigaEthernet1/1
  618. !
  619. interface GigaEthernet1/2
  620. !
  621. interface VLAN1
  622.  shutdown
  623.  ip address 192.168.0.1 255.255.0.0
  624. !
  625. interface VLAN22
  626.  description Network Management
  627.  ip address xx.xx.xx.107 255.255.255.0
  628. !
  629. !
  630. !
  631. vlan 22
  632.  name Network_Management
  633. !
  634. vlan 23
  635.  name VoIP
  636. !
  637. vlan 26
  638.  name Infinet_Management
  639. !
  640. vlan 27
  641.  name Video
  642. !
  643. vlan 28
  644.  name FFS
  645. !
  646. vlan 106
  647.  name ACSPP
  648. !
  649. vlan 1,22-23,26-28,106
  650. !
  651. !
  652. !
  653. !
  654. !
  655. !
  656. ip http language chinese
  657. ip http server
  658. !
  659. !
  660. snmp-server community 0 xxxxxx RO
  661. !
  662. !
  663. ip sshd enable
  664. !
  665. sntp server 10.220.21.122
  666. !
  667. !
  668.  
  669.  
  670. 2018-04-27 07:59:00,974 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  671. 2018-04-27 07:59:00,974 [noc.core.ioloop.snmp] [xx.xx.xx.107] SNMP GET ['1.3.6.1.2.1.1.2.0']
  672. 2018-04-27 07:59:01,008 [noc.core.ioloop.snmp] [xx.xx.xx.107] GET result: '1.3.6.1.4.1.4249.21.146'
  673. 2018-04-27 07:59:01,008 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  674. 2018-04-27 07:59:01,008 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  675. 2018-04-27 07:59:01,009 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  676. 2018-04-27 07:59:01,009 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  677. 2018-04-27 07:59:01,009 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  678. 2018-04-27 07:59:01,009 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  679. 2018-04-27 07:59:01,009 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  680. 2018-04-27 07:59:01,009 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  681. 2018-04-27 07:59:01,009 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  682. 2018-04-27 07:59:01,010 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  683. 2018-04-27 07:59:01,010 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  684. 2018-04-27 07:59:01,010 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  685. 2018-04-27 07:59:01,010 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  686. 2018-04-27 07:59:01,010 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  687. 2018-04-27 07:59:01,010 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  688. 2018-04-27 07:59:01,010 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  689. 2018-04-27 07:59:01,010 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  690. 2018-04-27 07:59:01,011 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  691. 2018-04-27 07:59:01,011 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  692. 2018-04-27 07:59:01,011 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  693. 2018-04-27 07:59:01,011 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  694. 2018-04-27 07:59:01,011 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  695. 2018-04-27 07:59:01,011 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  696. 2018-04-27 07:59:01,011 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  697. 2018-04-27 07:59:01,011 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  698. 2018-04-27 07:59:01,012 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  699. 2018-04-27 07:59:01,012 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  700. 2018-04-27 07:59:01,012 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  701. 2018-04-27 07:59:01,012 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  702. 2018-04-27 07:59:01,012 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'C' handler. Passing to next method
  703. 2018-04-27 07:59:01,012 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] No 'S' handler. Passing to next method
  704. 2018-04-27 07:59:01,012 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [snmp] Closing UDP socket
  705. 2018-04-27 07:59:01,013 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [snmp] Closing IOLoop
  706. 2018-04-27 07:59:01,013 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] [telnet] Closing IOLoop
  707. 2018-04-27 07:59:01,013 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] Result: {'Network | LLDP': True, 'Network | STP': True, 'SNMP | IF-MIB | HC': True, 'SNMP | IF-MIB': True, 'SNMP': True, 'SNMP | v2c': True, 'SNMP | Bulk': True, 'SNMP | v3': False, 'SNMP | v1': True}
  708. 2018-04-27 07:59:01,013 [script] [Nateks.NetXpert.get_capabilities|xx.xx.xx.107] Complete (1103.17ms)
  709. {'Network | LLDP': True,
  710.  'Network | STP': True,
  711.  'SNMP': True,
  712.  'SNMP | Bulk': True,
  713.  'SNMP | IF-MIB': True,
  714.  'SNMP | IF-MIB | HC': True,
  715.  'SNMP | v1': True,
  716.  'SNMP | v2c': True,
  717.  'SNMP | v3': False}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top