Advertisement
Guest User

Untitled

a guest
Feb 20th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. 2012-02-20 11:54:03,205 script Cisco.IOS.get_interfaces(crt06-yla-srv-10720)
  2. 2012-02-20 11:54:11,100 script(Cisco.IOS.get_interfaces,crt06-yla-srv-10720,**{}) failed: <type 'exceptions.KeyError'>
  3. 'SR'
  4. START OF TRACEBACK
  5. ------------------------------------------------------------------------
  6. File: /opt/noc/sa/profiles/Cisco/IOS/get_interfaces.py (Line: 203)
  7. Function: execute
  8. 196 sub['is_ospf'] = True
  9. 197 phys = len(ifname.split('.')) + len(ifname.split(':'))
  10. 198 if phys == 2:
  11. 199 iface = {
  12. 200 "name": ifname,
  13. 201 "admin_status": a_stat,
  14. 202 "oper_status": o_stat,
  15. 203 ==> "type": self.types[ifname[:2]],
  16. 204 'subinterfaces': [sub]
  17. 205 }
  18. 206 if match.group('desc'):
  19. 207 iface["description"] = match.group('desc')
  20. 208 if 'mac' in sub.keys():
  21. 209 iface['mac'] = sub['mac']
  22. Variables:
  23. o_stat = True
  24. cmd = 'show vlan-switch brief'
  25. phys = 2
  26. sub = {'oper_status': True, 'admin_status': True, 'mac': '0014.691f.ba00', 'name': 'SRP1/1'}
  27. subinterfaces = []
  28. encaps = 'SRP2,'
  29. interfaces = []
  30. shotn = 'Sr1/1'
  31. matchifn = <_sre.SRE_Match object at 0xb5d16500>
  32. hw = 'SRP OC48, address is 0014.691f.ba00 (bia 0014.691f.ba00)'
  33. matchmac = <_sre.SRE_Match object at 0x8bb6ea0>
  34. ospfs = ['Fa2/5', 'SR1/1', 'Lo0']
  35. v = 'SRP1/1 is up, line protocol is up \n Hardware is SRP OC48, address is 0014.691f.ba00 (bia 0014.691f.ba00)\n Internet address is 192.
  36. a_stat = True
  37. ifname = 'SRP1/1'
  38. vlans = None
  39. pvm = {}
  40. self = <Script(script-192.168.65.128-Cisco.IOS.get_interfaces, started -1368433808)>
  41. match = <_sre.SRE_Match object at 0x8bb9d40>
  42. portchannel_members = {}
  43. ------------------------------------------------------------------------
  44. File: /opt/noc/sa/script/script.py (Line: 411)
  45. Function: guarded_run
  46. 404 return result
  47. 405 except KeyError:
  48. 406 self.debug("Not in call cache: %r, %r" % (self.name,
  49. 407 self.kwargs))
  50. 408 pass
  51. 409 # Calling script body
  52. 410 self._thread_id = thread.get_ident()
  53. 411 ==> result = self.execute(**self.kwargs)
  54. 412 # Enforce interface result checking
  55. 413 for i in self.implements:
  56. 414 result = i.script_clean_result(self.profile, result)
  57. 415 # Cache result when required
  58. 416 if self.cache and self.parent is not None:
  59. 417 self.debug("Write to call cache: %s, %s, %r" % (self.name,
  60. Variables:
  61. i = <noc.sa.interfaces.igetinterfaces.IGetInterfaces object at 0x89879ac>
  62. self = <Script(script-192.168.65.128-Cisco.IOS.get_interfaces, started -1368433808)>
  63. ------------------------------------------------------------------------
  64. File: /opt/noc/sa/script/script.py (Line: 434)
  65. Function: run
  66. 427
  67. 428 def run(self):
  68. 429 """Script thread worker method"""
  69. 430 self.debug("Running")
  70. 431 result = None
  71. 432 try:
  72. 433 with self.cancelable():
  73. 434 ==> result = self.guarded_run()
  74. 435 except TimeOutError:
  75. 436 self.error("Timed out")
  76. 437 self.e_timeout = True
  77. 438 except CancelledError:
  78. 439 self.error("Cancelled")
  79. 440 self.e_cancel = True
  80. Variables:
  81. self = <Script(script-192.168.65.128-Cisco.IOS.get_interfaces, started -1368433808)>
  82. r = ["<type 'exceptions.KeyError'>", "'SR'"]
  83. result = None
  84. v = KeyError('SR',)
  85. tb = <traceback object at 0xb69e54b4>
  86. t = <type 'exceptions.KeyError'>
  87. ------------------------------------------------------------------------
  88. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement