Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. 2014-01-23 14:25:40,592 [EdgeCore.ES.get_vlans(jakorn-1-1-es3528.line-r.ru, 172.16.3.6)] Script traceback:
  2. <type 'exceptions.KeyError'>
  3. '94'
  4. START OF TRACEBACK
  5. ------------------------------------------------------------------------
  6. File: /usr/local/noc/sa/profiles/EdgeCore/ES/get_vlans.py (Line: 37)
  7. Function: execute
  8. 30 oids[oid.split(".")[-1]] = v
  9. 31 # Get VLAN names
  10. 32 result = []
  11. 33 for oid, v in self.snmp.getnext("1.3.6.1.2.1.17.7.1.4.3.1.1",
  12. 34 bulk=True): # dot1qVlanStaticName
  13. 35 o = oid.split(".")[-1]
  14. 36 result += [{
  15. 37 ==> "vlan_id":int(oids[o]),
  16. 38 "name":v.strip().rstrip('\x00')
  17. 39 }]
  18. 40 return sorted(result, lambda x, y: cmp(x["vlan_id"], y["vlan_id"]))
  19. 41 except self.snmp.TimeOutError:
  20. 42 # SNMP failed, continue with CLI
  21. 43 pass
  22. Variables:
  23. self = <Script(Thread-2, started 34533881216)>
  24. oid = '1.3.6.1.2.1.17.7.1.4.3.1.1.94'
  25. o = '94'
  26. oids = {'1': '1', '10': '10', '3': '3'}
  27. result =
  28. [{'name': 'DefaultVlan', 'vlan_id': 1},
  29. {'name': 'L-Customers', 'vlan_id': 3},
  30. {'name': '', 'vlan_id': 10}]
  31. v = 'seg_94'
  32. ------------------------------------------------------------------------
  33. File: /usr/local/noc/sa/script/script.py (Line: 422)
  34. Function: guarded_run
  35. 415 return result
  36. 416 except KeyError:
  37. 417 self.debug("Not in call cache: %r, %r" % (self.name,
  38. 418 self.kwargs))
  39. 419 pass
  40. 420 # Calling script body
  41. 421 self._thread_id = thread.get_ident()
  42. 422 ==> result = self.execute(**self.kwargs)
  43. 423 # Enforce interface result checking
  44. 424 for i in self.implements:
  45. 425 result = i.script_clean_result(self.profile, result)
  46. 426 # Cache result when required
  47. 427 if self.cache and self.parent is not None:
  48. 428 self.debug("Write to call cache: %s, %s, %r" % (self.name,
  49. Variables:
  50. i = <noc.sa.interfaces.igetvlans.IGetVlans object at 0x80927ee10>
  51. self = <Script(Thread-2, started 34533881216)>
  52. ------------------------------------------------------------------------
  53. File: /usr/local/noc/sa/script/script.py (Line: 445)
  54. Function: run
  55. 438
  56. 439 def run(self):
  57. 440 """Script thread worker method"""
  58. 441 self.debug("Running")
  59. 442 result = None
  60. 443 try:
  61. 444 with self.cancelable():
  62. 445 ==> result = self.guarded_run()
  63. 446 except self.TimeOutError:
  64. 447 self.error("Timed out")
  65. 448 self.e_timeout = True
  66. 449 except CancelledError:
  67. 450 self.error("Cancelled")
  68. 451 self.e_cancel = True
  69. Variables:
  70. self = <Script(Thread-2, started 34533881216)>
  71. r = ["<type 'exceptions.KeyError'>", "'94'"]
  72. result = None
  73. v = KeyError('94',)
  74. tb = <traceback object at 0x80a582440>
  75. t = <type 'exceptions.KeyError'>
  76. ------------------------------------------------------------------------
  77. END OF TRACEBACK
  78. 2014-01-23 14:25:40,593 [EdgeCore.ES.get_vlans(jakorn-1-1-es3528.line-r.ru, 172.16.3.6)] Closing
  79. 2014-01-23 14:25:40,593 [<SNMPGetNextSocket(0x80a570410, )>] Closing socket
  80. 2014-01-23 14:25:40,593 unregister_socket(<SNMPGetNextSocket(0x80a570410, closing)>)
  81. 2014-01-23 14:25:40,593 Resetting wait ticks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement