Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2012-02-20 11:54:03,205 script Cisco.IOS.get_interfaces(crt06-yla-srv-10720)
- 2012-02-20 11:54:11,100 script(Cisco.IOS.get_interfaces,crt06-yla-srv-10720,**{}) failed: <type 'exceptions.KeyError'>
- 'SR'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/profiles/Cisco/IOS/get_interfaces.py (Line: 203)
- Function: execute
- 196 sub['is_ospf'] = True
- 197 phys = len(ifname.split('.')) + len(ifname.split(':'))
- 198 if phys == 2:
- 199 iface = {
- 200 "name": ifname,
- 201 "admin_status": a_stat,
- 202 "oper_status": o_stat,
- 203 ==> "type": self.types[ifname[:2]],
- 204 'subinterfaces': [sub]
- 205 }
- 206 if match.group('desc'):
- 207 iface["description"] = match.group('desc')
- 208 if 'mac' in sub.keys():
- 209 iface['mac'] = sub['mac']
- Variables:
- o_stat = True
- cmd = 'show vlan-switch brief'
- phys = 2
- sub = {'oper_status': True, 'admin_status': True, 'mac': '0014.691f.ba00', 'name': 'SRP1/1'}
- subinterfaces = []
- encaps = 'SRP2,'
- interfaces = []
- shotn = 'Sr1/1'
- matchifn = <_sre.SRE_Match object at 0xb5d16500>
- hw = 'SRP OC48, address is 0014.691f.ba00 (bia 0014.691f.ba00)'
- matchmac = <_sre.SRE_Match object at 0x8bb6ea0>
- ospfs = ['Fa2/5', 'SR1/1', 'Lo0']
- 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.
- a_stat = True
- ifname = 'SRP1/1'
- vlans = None
- pvm = {}
- self = <Script(script-192.168.65.128-Cisco.IOS.get_interfaces, started -1368433808)>
- match = <_sre.SRE_Match object at 0x8bb9d40>
- portchannel_members = {}
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 411)
- Function: guarded_run
- 404 return result
- 405 except KeyError:
- 406 self.debug("Not in call cache: %r, %r" % (self.name,
- 407 self.kwargs))
- 408 pass
- 409 # Calling script body
- 410 self._thread_id = thread.get_ident()
- 411 ==> result = self.execute(**self.kwargs)
- 412 # Enforce interface result checking
- 413 for i in self.implements:
- 414 result = i.script_clean_result(self.profile, result)
- 415 # Cache result when required
- 416 if self.cache and self.parent is not None:
- 417 self.debug("Write to call cache: %s, %s, %r" % (self.name,
- Variables:
- i = <noc.sa.interfaces.igetinterfaces.IGetInterfaces object at 0x89879ac>
- self = <Script(script-192.168.65.128-Cisco.IOS.get_interfaces, started -1368433808)>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 434)
- Function: run
- 427
- 428 def run(self):
- 429 """Script thread worker method"""
- 430 self.debug("Running")
- 431 result = None
- 432 try:
- 433 with self.cancelable():
- 434 ==> result = self.guarded_run()
- 435 except TimeOutError:
- 436 self.error("Timed out")
- 437 self.e_timeout = True
- 438 except CancelledError:
- 439 self.error("Cancelled")
- 440 self.e_cancel = True
- Variables:
- self = <Script(script-192.168.65.128-Cisco.IOS.get_interfaces, started -1368433808)>
- r = ["<type 'exceptions.KeyError'>", "'SR'"]
- result = None
- v = KeyError('SR',)
- tb = <traceback object at 0xb69e54b4>
- t = <type 'exceptions.KeyError'>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement