Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Working directory: /usr/local/noc
- <type 'exceptions.UnicodeDecodeError'>
- 'ascii' codec can't decode byte 0x88 in position 132: ordinal not in range(128)
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/scheduler/job.py (Line: 93)
- Function: debug
- 86
- 87 def get_display_key(self):
- 88 return self.key
- 89
- 90 def debug(self, msg):
- 91 logging.debug("[%s: %s(%s)] %s" % (
- 92 self.scheduler.name, self.name,
- 93 ==> self.get_display_key(), msg))
- 94 if self.to_log:
- 95 self.job_log += [msg]
- 96
- 97 def info(self, msg):
- 98 logging.info("[%s: %s(%s)] %s" % (
- 99 self.scheduler.name, self.name,
- Variables:
- msg =
- "Submit vendor=NONAME, description=SFP Transceiver, part_no=['NoName | Transceiver | 1G | SFP'], number=26, builtin=False, serial=|MS\x88\x87\xa4, type=XCVR, revision=\xdc\xf5"
- self =
- <noc.inv.discovery.jobs.asset_discovery.AssetDiscoveryJob object at 0x807e68e10>
- ------------------------------------------------------------------------
- File: /usr/local/noc/inv/discovery/jobs/asset_discovery.py (Line: 35)
- Function: handler
- 28
- 29 def handler(self, object, result):
- 30 self.report = AssetReport(self, to_save=self.to_save)
- 31 #
- 32 self.report.find_managed()
- 33 # Submit objects
- 34 for o in result:
- 35 ==> self.debug("Submit %s" % str_dict(o))
- 36 self.report.submit(
- 37 type=o["type"], number=o.get("number"),
- 38 builtin=o["builtin"],
- 39 vendor=o.get("vendor"), part_no=o["part_no"],
- 40 revision=o.get("revision"), serial=o.get("serial"),
- 41 description=o.get("description")
- Variables:
- self =
- <noc.inv.discovery.jobs.asset_discovery.AssetDiscoveryJob object at 0x807e68e10>
- object = <ManagedObject: bolsheoxt-6-1-es3528.line-r.ru>
- result =
- [{'builtin': False,
- 'description': 'EdgeCore ES3528M',
- 'number': 'None',
- 'part_no': ['ES3528M'],
- 'revision': 'R01',
- 'serial': '002000304',
- 'type': 'CHASSIS',
- 'vendor': 'EDGECORE'},
- {'builtin': False,
- 'description': 'SFP Transceiver',
- 'number': '26',
- 'part_no': ['NoName | Transceiver | 1G | SFP'],
- 'revision': '\xdc\xf5',
- 'serial': '|MS\x88\x87\xa4',
- 'type': 'XCVR',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': 'SFP Transceiver',
- 'number': '27',
- 'part_no': ['NoName | Transceiver | 1G | SFP'],
- 'revision': 'None',
- 'serial': 'None',
- 'type': 'XCVR',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': 'SFP Transceiver',
- 'number': '28',
- 'part_no': ['NoName | Transceiver | 1G | SFP'],
- 'revision': 'None',
- 'serial': 'None',
- 'type': 'XCVR',
- 'vendor': 'NONAME'}]
- o =
- {'builtin': False,
- 'description': 'SFP Transceiver',
- 'number': '26',
- 'part_no': ['NoName | Transceiver | 1G | SFP'],
- 'revision': '\xdc\xf5',
- 'serial': '|MS\x88\x87\xa4',
- 'type': 'XCVR',
- 'vendor': 'NONAME'}
- ------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment