Advertisement
Guest User

Untitled

a guest
Feb 6th, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.98 KB | None | 0 0
  1. 2014-02-06 14:55:26,898 script(DLink.DxS.get_interfaces,dsw01-ors-ups,**{}) failed: <class 'noc.sa.script.exception.CLISyntaxError'>
  2. fdb
  3.  
  4. Available commands:
  5. .. ? clear config create delete dir disable download enable login
  6. logout ping reboot reset save show upload
  7.  
  8.  
  9. START OF TRACEBACK
  10. ------------------------------------------------------------------------
  11. File: /opt/noc/sa/script/script.py (Line: 648)
  12. Function: cli
  13. 641 if isinstance(data, Exception):
  14. 642 # Exception captured
  15. 643 raise data
  16. 644 if not ignore_errors:
  17. 645 # Check for syntax error
  18. 646 if (self.profile.rx_pattern_syntax_error and
  19. 647 self.profile.rx_pattern_syntax_error.search(data)):
  20. 648 ==> raise self.CLISyntaxError(data)
  21. 649 # Then check for operaion error
  22. 650 if (self.profile.rx_pattern_operation_error and
  23. 651 self.profile.rx_pattern_operation_error.search(data)):
  24. 652 raise self.CLIOperationError(data)
  25. 653 # Echo cancelation
  26. 654 if self.strip_echo and data.lstrip().startswith(cmd):
  27. Variables:
  28. cmd = 'show ipif'
  29. cc = 'CLI:show ipif'
  30. bulk_lines = None
  31. cache =
  32. {'CLI:show switch': 'show switch\nCommand: show switch\n\nDevice Type : DES-3026 Ethernet Switch\nModule 1 Type : None\nModule 2 Type : None\nMAC Address
  33. : 00-13-46-71-D9-BC\nIP Address : 10.12.161.51 (Manual)\nVLAN Name : COMM-MGMT\nSubnet Mask : 255.255.255.0\nDefault Gateway : 10.12.161.1\nBoot PROM V
  34. ersion : Build 1.01.003\nFirmware Version : Build 1.01.021\nHardware Version : 0A1\nSystem Name : \nSystem Location : \nSystem Contact : \nSpanning Tree :
  35. Disabled\nIGMP Snooping : Disabled\n802.1X : Disabled\nTELNET : Enabled(TCP 23)\nWEB : Enabled(TCP 80)\nRMON : Disabl
  36. ed\n\n'}
  37. command_submit = '\n'
  38. cached = False
  39. from_cache = False
  40. file = None
  41. list_re = None
  42. ignore_errors = False
  43. data =
  44. 'fdb\n\nAvailable commands: \n .. ? clear config create delete dir disable download enable login \n logout ping reboot reset save show upload \n\n'
  45. self = <Script(Thread-987, started 139851473221376)>
  46. ------------------------------------------------------------------------
  47. File: /opt/noc/sa/profiles/DLink/DxS/get_interfaces.py (Line: 216)
  48. Function: execute
  49. 209 i["enabled_protocols"] += ["LLDP"]
  50. 210 if ctp_enable and ifname in ctp:
  51. 211 i["enabled_protocols"] += ["CTP"]
  52. 212 if ifname in udld:
  53. 213 i["enabled_protocols"] += ["UDLD"]
  54. 214 interfaces += [i]
  55. 215
  56. 216 ==> ipif = self.cli("show ipif")
  57. 217 for match in self.rx_ipif1.finditer(ipif):
  58. 218 admin_status = match.group("admin_state") == "Enabled"
  59. 219 o_status = match.group("oper_status")
  60. 220 oper_status = re.match(self.rx_link_up, o_status) is not None
  61. 221 i = {
  62. 222 "name": match.group("ifname"),
  63. Variables:
  64. pim = []
  65. lldp_enable = False
  66. rip = []
  67. igmp = []
  68. lldp = []
  69. tagged_vlans = []
  70. self = <Script(Thread-987, started 139851473221376)>
  71. rip_enable = False
  72. ifname = '24'
  73. ctp_enable = False
  74. interfaces =
  75. [{'admin_status': True,
  76. 'enabled_protocols': [],
  77. 'name': '1',
  78. 'oper_status': False,
  79. 'subinterfaces': [{'admin_status': True,
  80. 'enabled_afi': ['BRIDGE'],
  81. 'name': '1',
  82. 'oper_status': False}],
  83. 'type': 'physical'},
  84. {'admin_status': True,
  85. 'enabled_protocols': [],
  86. 'name': '2',
  87. 'oper_status': False,
  88. 'subinterfaces': [{'admin_status': True,
  89. 'enabled_afi': ['BRIDGE'],
  90. 'name': '2',
  91. 'oper_status': False}],
  92. 'type': 'physical'},
  93. {'admin_status': True,
  94. 'enabled_protocols': [],
  95. 'name': '3',
  96. 'oper_status': False,
  97. 'subinterfaces': [{'admin_status': True,
  98. ------------------------------------------------------------------------
  99. File: /opt/noc/sa/script/script.py (Line: 422)
  100. Function: guarded_run
  101. 415 return result
  102. 416 except KeyError:
  103. 417 self.debug("Not in call cache: %r, %r" % (self.name,
  104. 418 self.kwargs))
  105. 419 pass
  106. 420 # Calling script body
  107. 421 self._thread_id = thread.get_ident()
  108. 422 ==> result = self.execute(**self.kwargs)
  109. 423 # Enforce interface result checking
  110. 424 for i in self.implements:
  111. 425 result = i.script_clean_result(self.profile, result)
  112. 426 # Cache result when required
  113. 427 if self.cache and self.parent is not None:
  114. 428 self.debug("Write to call cache: %s, %s, %r" % (self.name,
  115. Variables:
  116. i = <noc.sa.interfaces.igetinterfaces.IGetInterfaces object at 0x226e610>
  117. self = <Script(Thread-987, started 139851473221376)>
  118. ------------------------------------------------------------------------
  119. File: /opt/noc/sa/script/script.py (Line: 445)
  120. Function: run
  121. 438
  122. 439 def run(self):
  123. 440 """Script thread worker method"""
  124. 441 self.debug("Running")
  125. 442 result = None
  126. 443 try:
  127. 444 with self.cancelable():
  128. 445 ==> result = self.guarded_run()
  129. 446 except self.TimeOutError:
  130. 447 self.error("Timed out")
  131. 448 self.e_timeout = True
  132. 449 except CancelledError:
  133. 450 self.error("Cancelled")
  134. 451 self.e_cancel = True
  135. Variables:
  136. self = <Script(Thread-987, started 139851473221376)>
  137. r =
  138. ["<class 'noc.sa.script.exception.CLISyntaxError'>",
  139. 'fdb\n\nAvailable commands: \n .. ? clear config create delete dir disable download enable login \n logout ping reboot reset save show upload \n\n']
  140. result = None
  141. v =
  142. CLISyntaxError('fdb\n\nAvailable commands: \n .. ? clear config create delete dir disable download enable login \n logout ping reboot reset save show upload \n\n',)
  143. tb = <traceback object at 0x7f31ac02dab8>
  144. t = <class 'noc.sa.script.exception.CLISyntaxError'>
  145. ------------------------------------------------------------------------
  146. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement