Guest User

Untitled

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