Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cisco.IOS.get_interfaces, fault code:14
- <type 'exceptions.KeyError'> 'Sp' START OF TRACEBACK
- ------------------------------------------------------------------------ File: /opt/noc/sa/profiles/Cisco/IOS/get_interfaces.py (Line: 315) Function: execute 308 sub["snmp_ifindex"] = ifindex[full_ifname] 309 310 if "." not in ifname and ":" not in ifname: 311 iface = { 312 "name": ifname, 313 "admin_status": a_stat, 314 "oper_status": o_stat, 315 ==> "type": self.types[ifname[:2]], 316 "enabled_protocols": [], 317 "subinterfaces": [sub] 318 } 319 if ifname in lldp: 320 iface["enabled_protocols"] += ["LLDP"] 321 match1 = self.rx_ctp.search(v) Variables: cmd = 'show vlan-switch brief' ipv6_interfaces = defaultdict(<type 'list'>, {})
- [ .... данные об интерфейсах и статистике на низ поскипаны .... ]
- ------------------------------------------------------------------------ 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 0x2b5ac10> self = <Script(Thread-2, started 140562113529600)>
- ------------------------------------------------------------------------ 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-2, started 140562113529600)> r = ["<type 'exceptions.KeyError'>", "'Sp'"] result = None v = KeyError('Sp',) tb = <traceback object at 0x2bfd908> t = <type 'exceptions.KeyError'>
- ------------------------------------------------------------------------ END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement