Advertisement
Guest User

TRACEBACK

a guest
Apr 21st, 2018
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.14 KB | None | 0 0
  1. root@Node1:/opt/noc# ./noc script --debug --pretty get_lldp_neighbors "K1-WAP"
  2. 2018-04-22 07:35:53,675 [noc.core.dcs.base] Resolve near service postgres
  3. 2018-04-22 07:35:53,675 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
  4. 2018-04-22 07:35:53,678 [noc.core.http.client] HTTP Response 200
  5. 2018-04-22 07:35:53,679 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
  6. 2018-04-22 07:35:54,547 [noc.core.dcs.base] Running resolver for service mongo
  7. 2018-04-22 07:35:54,548 [noc.core.dcs.base] [mongo] Starting resolver
  8. 2018-04-22 07:35:54,548 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  9. 2018-04-22 07:35:54,549 [noc.core.http.client] HTTP Response 200
  10. 2018-04-22 07:35:54,550 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
  11. 2018-04-22 07:35:54,550 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=1901024&passing=1
  12. 2018-04-22 07:35:54,551 [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-22 07:35:54,610 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  14. 2018-04-22 07:35:54,667 [noc.main.models.doccategory] Registering Capability
  15. 2018-04-22 07:35:54,668 [noc.main.models.doccategory] Registering MetricType
  16. 2018-04-22 07:35:54,702 [noc.main.models.doccategory] Registering ConnectionType
  17. 2018-04-22 07:35:54,706 [noc.main.models.doccategory] Registering ObjectModel
  18. 2018-04-22 07:35:54,715 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  19. 2018-04-22 07:35:54,731 [noc.main.models.textindex] Adding FTS index for ip.vrf
  20. 2018-04-22 07:35:54,734 [noc.main.models.textindex] Adding FTS index for vc.vc
  21. 2018-04-22 07:35:54,737 [noc.main.models.textindex] Adding FTS index for ip.prefix
  22. 2018-04-22 07:35:54,742 [noc.main.models.textindex] Adding FTS index for ip.address
  23. 2018-04-22 07:35:54,789 [noc.core.script.loader] Loading script InfiNet.WANFlexX.get_lldp_neighbors
  24. 2018-04-22 07:35:54,805 [noc.core.profile.loader] Loading profile InfiNet.WANFlexX
  25. 2018-04-22 07:35:54,806 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] Filling get_version cache with {'platform': u'R5000', 'version': u'H11S01-MINTv1.90.29', 'vendor': u'INFINET'}
  26. 2018-04-22 07:35:54,806 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] Running. Input arguments: {}, timeout 3600
  27. 2018-04-22 07:35:54,806 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] Open telnet CLI
  28. 2018-04-22 07:35:54,809 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Creating IOLoop
  29. 2018-04-22 07:35:54,810 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Connecting (u'10.20.56.9', 23)
  30. 2018-04-22 07:35:54,843 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Connected
  31. 2018-04-22 07:35:54,843 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] State: <START>
  32. 2018-04-22 07:35:54,843 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Setting timeout: 60s
  33. 2018-04-22 07:35:54,881 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Received: '\r\n'
  34. 2018-04-22 07:35:54,911 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Received WILL ECHO
  35. 2018-04-22 07:35:54,911 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Send DO ECHO
  36. 2018-04-22 07:35:54,911 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Received DONT LINEMODE
  37. 2018-04-22 07:35:54,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Send WONT LINEMODE
  38. 2018-04-22 07:35:54,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Received DO SGA
  39. 2018-04-22 07:35:54,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Send WILL SGA
  40. 2018-04-22 07:35:54,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Received DO NAWS
  41. 2018-04-22 07:35:54,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Send WILL NAWS
  42. 2018-04-22 07:35:54,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Send IAC SB '\x1f' '\x00\x80\x00\x80' IAC SE
  43. 2018-04-22 07:35:54,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Received: 'WANFleX Access Control 0\r\nK1-WAP / 257977\r\n\r\n\rLogin:\r\x1b[6C\x1b[K\r\x1b[6C'
  44. 2018-04-22 07:35:54,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Match: ([Uu]ser ?[Nn]ame|[Ll]ogin): ?
  45. 2018-04-22 07:35:54,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] State: <USERNAME>
  46. 2018-04-22 07:35:54,912 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Send: '1\r'
  47. 2018-04-22 07:35:54,913 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Setting timeout: 30s
  48. 2018-04-22 07:35:54,940 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Received DONT SGA
  49. 2018-04-22 07:35:54,940 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Send WONT SGA
  50. 2018-04-22 07:35:54,968 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Received: '1\r\n\rPassword:'
  51. 2018-04-22 07:35:54,968 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Match: [Pp]ass[Ww]ord: ?
  52. 2018-04-22 07:35:54,968 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] State: <PASSWORD>
  53. 2018-04-22 07:35:54,968 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Send: '1\r'
  54. 2018-04-22 07:35:54,968 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Setting timeout: 30s
  55. 2018-04-22 07:35:54,995 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Received: '\r\n'
  56. 2018-04-22 07:35:55,059 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [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 H11S01-MINTv1.90.29 * Oct 5 2017 11:15:09 * SN:257977\r\n\r\nDevice name: K1-WAP\r\n\r\n *** Please setup correct DATE & TIME via "date" or "sntp" command ***\r\n\r\nUptime: 5 days 23:03:53\r\nLast reboot reason: unexpected restart (power-on reset)\r\n*** Please change default Login and Password !!! ***\r\n\r\n\rK1-WAP#1> \r\x1b[10C\x1b[K\r\x1b[10C'
  57. 2018-04-22 07:35:55,060 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Match: (?P<hostname>\S+?)#\d+>
  58. 2018-04-22 07:35:55,060 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] State: <PROMT>
  59. 2018-04-22 07:35:55,060 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Refining pattern prompt to 'K1\\-WAP#\\d+>'
  60. 2018-04-22 07:35:55,060 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Resetting timeouts
  61. 2018-04-22 07:35:55,061 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Send: 'lldp report\r'
  62. 2018-04-22 07:35:55,091 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Received: 'l'
  63. 2018-04-22 07:35:55,092 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [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: | 00:0F:D9:0A:85:E8 (mac) |\r\n| SysName: | K1-SW |\r\n| SysDescr: | Nateks(tm) NetXpert NX-3408 V1 Software, Version 2.2.0C?Serial: 20013217075, Copyright (c) 2017 by Nateks Networks |\r\n| | Co.Ltd?Compiled: 2017-3-13 12:8:26 by SYS |\r\n| Caps: | Bridge*, Router |\r\n| PortID: | Gig0/1 (local) |\r\n| PortDescr: | GigaEthernet0/1 |\r\n| MFS: | 1500 bytes '
  64. 2018-04-22 07:35:55,121 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Received: ' |\r\n| AutoNeg: | Supported, Disabled |\r\n| MAU: | 100BASE-TX-FD |\r\n| MgmtIP: | 192.168.0.1 |\r\n| PVID: | 1 |\r\n| VlanName: | 1(Default),22(Management),23(VoIP),26(Infinet_Management),27(Video),28(FireFightingSystem),106(VLAN0106),109(KITSO) |\r\n| Last report: | 24 seconds ago, TTL 120 seconds, Age 5 days 23:02:55 |\r\n+---------------+---------------------------------------------------------------------------------------------------------------------+\r\n\r\n\rK1-WAP#1> \r\x1b[10C\x1b[K\r\x1b[10C'
  65. 2018-04-22 07:35:55,121 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Match: K1\-WAP#\d+>
  66. 2018-04-22 07:35:55,121 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] State: <PROMT>
  67. 2018-04-22 07:35:55,122 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Command: lldp report
  68. lldp report
  69. LLDP Neighbors Table on eth0
  70. +---------------+-------------------------------------------------------------+
  71. | LLDP Mode: TxRx, Forward: disabled |
  72. +---------------+-------------------------------------------------------------+
  73. | ChassisID: | 00:0F:D9:0A:85:E8 (mac) |
  74. | SysName: | K1-SW |
  75. | SysDescr: | Nateks(tm) NetXpert NX-3408 V1 Software, Version 2.2.0C?Serial: 20013217075, Copyright (c) 2017 by Nateks Networks |
  76. | | Co.Ltd?Compiled: 2017-3-13 12:8:26 by SYS |
  77. | Caps: | Bridge*, Router |
  78. | PortID: | Gig0/1 (local) |
  79. | PortDescr: | GigaEthernet0/1 |
  80. | MFS: | 1500 bytes |
  81. | AutoNeg: | Supported, Disabled |
  82. | MAU: | 100BASE-TX-FD |
  83. | MgmtIP: | 192.168.0.1 |
  84. | PVID: | 1 |
  85. | VlanName: | 1(Default),22(Management),23(VoIP),26(Infinet_Management),27(Video),28(FireFightingSystem),106(VLAN0106),109(KITSO) |
  86. | Last report: | 24 seconds ago, TTL 120 seconds, Age 5 days 23:02:55 |
  87. +---------------+---------------------------------------------------------------------------------------------------------------------+
  88.  
  89.  
  90. 2018-04-22 07:35:55,123 [script] [InfiNet.WANFlexX.get_lldp_neighbors|10.20.56.9] [telnet] Closing IOLoop
  91. 2018-04-22 07:35:55,299 [noc.core.debug] UNHANDLED EXCEPTION (2018-04-22 07:35:55.136316)
  92. PROCESS: ./commands/script.py
  93. VERSION: 15.05.1+microservices.9321.98fb0ac3
  94. BRANCH: microservices CHANGESET: 98fb0ac3
  95. ERROR FINGERPRINT: 45e798d6-0bc4-5fce-a763-e244cbfea681
  96. WORKING DIRECTORY: /opt/noc
  97. EXCEPTION: <type 'exceptions.ValueError'> DictParameter: '0'.
  98. START OF TRACEBACK
  99. ------------------------------------------------------------------------
  100. File: core/interface/parameter.py (Line: 37)
  101. Function: raise_error
  102. 30 :param value: Value where error detected
  103. 31 :type value: Arbitrary python type
  104. 32 :param msg: Optional message
  105. 33 :type msg: String
  106. 34 :raises InterfaceTypeError
  107. 35 """
  108. 36 raise InterfaceTypeError("%s: %s. %s" % (self.__class__.__name__,
  109. 37 ==> repr(value), msg))
  110. 38
  111. 39 def clean(self, value):
  112. 40 """
  113. 41 Input parameter normalization
  114. 42
  115. 43 :param value: Input parameter
  116. Variables:
  117. msg = ''
  118. self = <noc.sa.interfaces.base.DictParameter object at 0x7f58b5c53250>
  119. value = '0'
  120. ------------------------------------------------------------------------
  121. File: sa/interfaces/base.py (Line: 517)
  122. Function: clean
  123. 510 self.attrs = attrs
  124. 511 self.truncate = truncate
  125. 512
  126. 513 def clean(self, value):
  127. 514 if value is None and self.default is not None:
  128. 515 return self.default
  129. 516 if not isinstance(value, dict):
  130. 517 ==> self.raise_error(value)
  131. 518 if not self.attrs:
  132. 519 return value
  133. 520 in_value = value.copy()
  134. 521 out_value = {}
  135. 522 for a_name, attr in self.attrs.items():
  136. 523 if a_name not in in_value and attr.required:
  137. Variables:
  138. self = <noc.sa.interfaces.base.DictParameter object at 0x7f58b5c53250>
  139. value = '0'
  140. ------------------------------------------------------------------------
  141. File: sa/interfaces/base.py (Line: 465)
  142. Function: clean
  143. 458 return self.default
  144. 459 if self.convert and not isinstance(value, (list, tuple)):
  145. 460 value = [value]
  146. 461 v = super(ListOfParameter, self).clean(value)
  147. 462 if self.is_list:
  148. 463 return [[e.clean(vv) for e, vv in zip(self.element, v)] for v in value]
  149. 464 else:
  150. 465 ==> return [self.element.clean(x) for x in v]
  151. 466
  152. 467 def script_clean_input(self, profile, value):
  153. 468 if value is None and self.default is not None:
  154. 469 return self.default
  155. 470 v = super(ListOfParameter, self).script_clean_input(profile, value)
  156. 471 if self.is_list:
  157. Variables:
  158. x = '0'
  159. self = <noc.sa.interfaces.base.ListOfParameter object at 0x7f58b5c53290>
  160. value = '00:0F:D9:0A:85:E8'
  161. v =
  162. ['0',
  163. '0',
  164. ':',
  165. '0',
  166. 'F',
  167. ':',
  168. 'D',
  169. '9',
  170. ':',
  171. '0',
  172. 'A',
  173. ':',
  174. '8',
  175. '5',
  176. ':',
  177. 'E',
  178. '8']
  179. ------------------------------------------------------------------------
  180. File: core/interface/parameter.py (Line: 73)
  181. Function: script_clean_result
  182. 66
  183. 67 :param profile: Profile
  184. 68 :type profile: Profile instance
  185. 69 :param value: Input parameter
  186. 70 :type value: Arbitrary python type
  187. 71 :return: Normalized value
  188. 72 """
  189. 73 ==> return self.clean(value)
  190. 74
  191. 75 def form_clean(self, value):
  192. 76 """
  193. 77 Clean up form field
  194. 78
  195. 79 :param value: Input parameter
  196. Variables:
  197. profile = <noc.sa.profiles.InfiNet.WANFlexX.Profile object at 0x7f58b5c535d0>
  198. self = <noc.sa.interfaces.base.ListOfParameter object at 0x7f58b5c53290>
  199. value = '00:0F:D9:0A:85:E8'
  200. ------------------------------------------------------------------------
  201. File: sa/interfaces/base.py (Line: 479)
  202. Function: script_clean_result
  203. 472 return [[e.script_clean_input(profile, vv) for e, vv in zip(self.element, v)] for v in value]
  204. 473 else:
  205. 474 return [self.element.script_clean_input(profile, x) for x in v]
  206. 475
  207. 476 def script_clean_result(self, profile, value):
  208. 477 if value is None and self.default is not None:
  209. 478 return self.default
  210. 479 ==> v = super(ListOfParameter, self).script_clean_result(profile, value)
  211. 480 if self.is_list:
  212. 481 return [[e.script_clean_result(profile, vv) for e, vv in zip(self.element, v)] for v in value]
  213. 482 else:
  214. 483 return [self.element.script_clean_result(profile, x) for x in v]
  215. 484
  216. 485
  217. Variables:
  218. profile = <noc.sa.profiles.InfiNet.WANFlexX.Profile object at 0x7f58b5c535d0>
  219. self = <noc.sa.interfaces.base.ListOfParameter object at 0x7f58b5c53290>
  220. value = '00:0F:D9:0A:85:E8'
  221. ------------------------------------------------------------------------
  222. File: core/interface/base.py (Line: 78)
  223. Function: script_clean_result
  224. 71 return self.clean(__profile, **kwargs)
  225. 72
  226. 73 def script_clean_result(self, __profile, result):
  227. 74 try:
  228. 75 rp = self.returns
  229. 76 except AttributeError:
  230. 77 return result
  231. 78 ==> return rp.script_clean_result(__profile, result)
  232. 79
  233. 80 def template_clean_result(self, __profile, result):
  234. 81 return result
  235. 82
  236. 83 def requires_input(self):
  237. 84 for n, p in self.gen_parameters():
  238. Variables:
  239. _BaseInterface__profile = <noc.sa.profiles.InfiNet.WANFlexX.Profile object at 0x7f58b5c535d0>
  240. self =
  241. <noc.sa.interfaces.igetlldpneighbors.IGetLLDPNeighbors object at 0x7f58c1892f10>
  242. rp = <noc.sa.interfaces.base.ListOfParameter object at 0x7f58b5c53290>
  243. result = '00:0F:D9:0A:85:E8'
  244. ------------------------------------------------------------------------
  245. File: core/script/base.py (Line: 224)
  246. Function: clean_output
  247. 217 """
  248. 218 return self.interface().script_clean_input(self.profile, **args)
  249. 219
  250. 220 def clean_output(self, result):
  251. 221 """
  252. 222 Clean script result against interface
  253. 223 """
  254. 224 ==> return self.interface().script_clean_result(self.profile, result)
  255. 225
  256. 226 def run(self):
  257. 227 """
  258. 228 Run script
  259. 229 """
  260. 230 with Span(server="activator", service=self.name,
  261. Variables:
  262. self =
  263. <noc.sa.profiles.InfiNet.WANFlexX.get_lldp_neighbors.Script object at 0x7f58b5c53c50>
  264. result = '00:0F:D9:0A:85:E8'
  265. ------------------------------------------------------------------------
  266. File: core/script/base.py (Line: 260)
  267. Function: run
  268. 253 # Close SNMP socket when necessary
  269. 254 self.snmp.close()
  270. 255 # Close CLI socket when necessary
  271. 256 self.close_cli_stream()
  272. 257 # Close HTTP Client
  273. 258 self.http.close()
  274. 259 # Clean result
  275. 260 ==> result = self.clean_output(result)
  276. 261 self.logger.debug("Result: %s", result)
  277. 262 runtime = time.time() - self.start_time
  278. 263 self.logger.info("Complete (%.2fms)", runtime * 1000)
  279. 264 return result
  280. 265
  281. 266 @classmethod
  282. Variables:
  283. cache_hit = False
  284. self =
  285. <noc.sa.profiles.InfiNet.WANFlexX.get_lldp_neighbors.Script object at 0x7f58b5c53c50>
  286. result = '00:0F:D9:0A:85:E8'
  287. ------------------------------------------------------------------------
  288. File: commands/script.py (Line: 118)
  289. Function: handle
  290. 111 capabilities=caps,
  291. 112 args=args,
  292. 113 version=version,
  293. 114 timeout=3600,
  294. 115 name=script,
  295. 116 collect_beef=bool(beef)
  296. 117 )
  297. 118 ==> result = scr.run()
  298. 119 if pretty:
  299. 120 pprint.pprint(result)
  300. 121 elif yaml:
  301. 122 import yaml
  302. 123 import sys
  303. 124 yaml.dump(result, sys.stdout)
  304. Variables:
  305. obj = <ManagedObject: K1-WAP>
  306. beef = None
  307. service = <__main__.ServiceStub object at 0x7f58b5c53650>
  308. script = u'InfiNet.WANFlexX.get_lldp_neighbors'
  309. script_class = <class 'noc.sa.profiles.InfiNet.WANFlexX.get_lldp_neighbors.Script'>
  310. self = <__main__.Command object at 0x7f58c25e1110>
  311. args = {}
  312. use_snmp = True
  313. caps =
  314. {u'DB | Interfaces': 5,
  315. u'SNMP': True,
  316. u'SNMP | Bulk': True,
  317. u'SNMP | IF-MIB': True,
  318. u'SNMP | IF-MIB | HC': True,
  319. u'SNMP | v1': True,
  320. u'SNMP | v2c': True,
  321. u'SNMP | v3': False}
  322. yaml = False
  323. object_name = ['K1-WAP']
  324. version =
  325. {'platform': u'R5000', 'vendor': u'INFINET', 'version': u'H11S01-MINTv1.90.29'}
  326. arguments = []
  327. pretty = True
  328. credentials =
  329. {'access_preference': u'CS',
  330. 'address': u'10.20.56.9',
  331. 'cli_protocol': 'telnet',
  332. 'password': u'1',
  333. 'path': None,
  334. 'raise_privileges': True,
  335. 'snmp_ro': u'kondaro',
  336. 'snmp_version': 'v2c',
  337. 'super_password': None,
  338. 'user': u'1'}
  339. access_preference = None
  340. options = {}
  341. scr =
  342. <noc.sa.profiles.InfiNet.WANFlexX.get_lldp_neighbors.Script object at 0x7f58b5c53c50>
  343. ------------------------------------------------------------------------
  344. File: core/management/base.py (Line: 75)
  345. Function: run_from_argv
  346. 68 enable_profiling = cmd_options.pop("enable_profiling", False)
  347. 69 show_metrics = cmd_options.pop("show_metrics", False)
  348. 70 if enable_profiling:
  349. 71 # Start profiler
  350. 72 import yappi
  351. 73 yappi.start()
  352. 74 try:
  353. 75 ==> return self.handle(*args, **cmd_options) or 0
  354. 76 except CommandError as e:
  355. 77 self.print(str(e))
  356. 78 return 1
  357. 79 except KeyboardInterrupt:
  358. 80 self.print("Ctrl+C")
  359. 81 return 3
  360. Variables:
  361. parser =
  362. ArgumentParser(prog='script.py', usage=None, description=None, version=None, formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
  363. loglevel = 'debug'
  364. enable_profiling = False
  365. args = ()
  366. cmd_options =
  367. {'access_preference': None,
  368. 'arguments': [],
  369. 'beef': None,
  370. 'object_name': ['K1-WAP'],
  371. 'pretty': True,
  372. 'script': ['get_lldp_neighbors'],
  373. 'use_snmp': True,
  374. 'yaml': False}
  375. argv = ['--debug', '--pretty', 'get_lldp_neighbors', 'K1-WAP']
  376. self = <__main__.Command object at 0x7f58c25e1110>
  377. show_metrics = False
  378. options =
  379. Namespace(access_preference=None, arguments=[], beef=None, object_name=['K1-WAP'], pretty=True, script=['get_lldp_neighbors'], use_snmp=True, yaml=False)
  380. ------------------------------------------------------------------------
  381. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement