Personal tools
You are here: Home Scripts and Automation ldms_core ldms_errorscan_parser

ldms_errorscan_parser

by jack — last modified 2007-09-28 10:11

Rename the error scan files to indicate the machines causing problems; also delete old scans automatically.

This utility parses the ErrorScan directory and renames the files to include meaningful information like the device name or IP address. It uses database access to check the Unique ID, as only the Unique ID is guaranteed to be in a delta scan file. If there is no record associated with the Unique ID, then the scan is named with either the Host Name or the IP Address, whichever comes first. The old scan name is retained for use in locating scans referenced by logged SQL errors.

Download version 1.9.2 here. The manual is available here.

IMPORTANT NOTE: This tool has been merged into ldms_core and will not be maintained separately (by me, at least) from this point forward.

# CHANGELOG
# 1.0 -- initial release
# 1.1 -- added rename after scan contents if database check fails
# 1.2 -- added undo mode, removed check for files named after the machine
# 1.3 -- improved speed of database access, fixed assorted bugs
# 1.5 -- added Oracle support, all options are on the command line now. Thanks Charles Tank for the Oracle work!
# 1.6 -- delete files older than X days
# 1.7 -- log to event viewer
# 1.8 -- use configuration from the registry if run on the core
# 1.9 -- Compress and delete old files in the storage directory
# 1.9.1 - fix bug when storage directory is non-existent
# 1.9.2 - fix bug where empty storage zip files are created


Server Says:
The Commandments of the EE:

(5) Take care that thou useth the proper method when thou takest the
measures of high-voltage circuits too, that thou dost not incinerate
both thee and thy test meter, for verily, though thou has no company
property number and can be easily surveyed, the test meter has
one and, as a consequence, bringeth much woe unto a purchasing agent.
(6) Take care that thou tamperest not with interlocks and safety devices,
for this incurreth the wrath of the chief electrician and bring
the fury of the engineers on his head.
(7) Work thou not on energized equipment for if thou doest so, thy
friends will surely be buying beers for thy widow and consoling
her in certain ways not generally acceptable to thee.
(8) Verily, verily I say unto thee, never service equipment alone,
for electrical cooking is a slow process and thou might sizzle in
thy own fat upon a hot circuit for hours on end before thy maker
sees fit to end thy misery and drag thee into his fold.
Safety First!
63 Days without a Dumpster fire.
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: