Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2014-02-06 14:55:26,898 script(DLink.DxS.get_interfaces,dsw01-ors-ups,**{}) failed: <class 'noc.sa.script.exception.CLISyntaxError'>
- fdb
- Available commands:
- .. ? clear config create delete dir disable download enable login
- logout ping reboot reset save show upload
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 648)
- Function: cli
- 641 if isinstance(data, Exception):
- 642 # Exception captured
- 643 raise data
- 644 if not ignore_errors:
- 645 # Check for syntax error
- 646 if (self.profile.rx_pattern_syntax_error and
- 647 self.profile.rx_pattern_syntax_error.search(data)):
- 648 ==> raise self.CLISyntaxError(data)
- 649 # Then check for operaion error
- 650 if (self.profile.rx_pattern_operation_error and
- 651 self.profile.rx_pattern_operation_error.search(data)):
- 652 raise self.CLIOperationError(data)
- 653 # Echo cancelation
- 654 if self.strip_echo and data.lstrip().startswith(cmd):
- Variables:
- cmd = 'show ipif'
- cc = 'CLI:show ipif'
- bulk_lines = None
- cache =
- {'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
- : 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
- ersion : Build 1.01.003\nFirmware Version : Build 1.01.021\nHardware Version : 0A1\nSystem Name : \nSystem Location : \nSystem Contact : \nSpanning Tree :
- Disabled\nIGMP Snooping : Disabled\n802.1X : Disabled\nTELNET : Enabled(TCP 23)\nWEB : Enabled(TCP 80)\nRMON : Disabl
- ed\n\n'}
- command_submit = '\n'
- cached = False
- from_cache = False
- file = None
- list_re = None
- ignore_errors = False
- data =
- 'fdb\n\nAvailable commands: \n .. ? clear config create delete dir disable download enable login \n logout ping reboot reset save show upload \n\n'
- self = <Script(Thread-987, started 139851473221376)>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/DLink/DxS/get_interfaces.py (Line: 216)
- Function: execute
- 209 i["enabled_protocols"] += ["LLDP"]
- 210 if ctp_enable and ifname in ctp:
- 211 i["enabled_protocols"] += ["CTP"]
- 212 if ifname in udld:
- 213 i["enabled_protocols"] += ["UDLD"]
- 214 interfaces += [i]
- 215
- 216 ==> ipif = self.cli("show ipif")
- 217 for match in self.rx_ipif1.finditer(ipif):
- 218 admin_status = match.group("admin_state") == "Enabled"
- 219 o_status = match.group("oper_status")
- 220 oper_status = re.match(self.rx_link_up, o_status) is not None
- 221 i = {
- 222 "name": match.group("ifname"),
- Variables:
- pim = []
- lldp_enable = False
- rip = []
- igmp = []
- lldp = []
- tagged_vlans = []
- self = <Script(Thread-987, started 139851473221376)>
- rip_enable = False
- ifname = '24'
- ctp_enable = False
- interfaces =
- [{'admin_status': True,
- 'enabled_protocols': [],
- 'name': '1',
- 'oper_status': False,
- 'subinterfaces': [{'admin_status': True,
- 'enabled_afi': ['BRIDGE'],
- 'name': '1',
- 'oper_status': False}],
- 'type': 'physical'},
- {'admin_status': True,
- 'enabled_protocols': [],
- 'name': '2',
- 'oper_status': False,
- 'subinterfaces': [{'admin_status': True,
- 'enabled_afi': ['BRIDGE'],
- 'name': '2',
- 'oper_status': False}],
- 'type': 'physical'},
- {'admin_status': True,
- 'enabled_protocols': [],
- 'name': '3',
- 'oper_status': False,
- 'subinterfaces': [{'admin_status': True,
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 422)
- Function: guarded_run
- 415 return result
- 416 except KeyError:
- 417 self.debug("Not in call cache: %r, %r" % (self.name,
- 418 self.kwargs))
- 419 pass
- 420 # Calling script body
- 421 self._thread_id = thread.get_ident()
- 422 ==> result = self.execute(**self.kwargs)
- 423 # Enforce interface result checking
- 424 for i in self.implements:
- 425 result = i.script_clean_result(self.profile, result)
- 426 # Cache result when required
- 427 if self.cache and self.parent is not None:
- 428 self.debug("Write to call cache: %s, %s, %r" % (self.name,
- Variables:
- i = <noc.sa.interfaces.igetinterfaces.IGetInterfaces object at 0x226e610>
- self = <Script(Thread-987, started 139851473221376)>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 445)
- Function: run
- 438
- 439 def run(self):
- 440 """Script thread worker method"""
- 441 self.debug("Running")
- 442 result = None
- 443 try:
- 444 with self.cancelable():
- 445 ==> result = self.guarded_run()
- 446 except self.TimeOutError:
- 447 self.error("Timed out")
- 448 self.e_timeout = True
- 449 except CancelledError:
- 450 self.error("Cancelled")
- 451 self.e_cancel = True
- Variables:
- self = <Script(Thread-987, started 139851473221376)>
- r =
- ["<class 'noc.sa.script.exception.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']
- result = None
- v =
- 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',)
- tb = <traceback object at 0x7f31ac02dab8>
- t = <class 'noc.sa.script.exception.CLISyntaxError'>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement