Darkly Colored Felines of Fury

Lynx in Summer
  <HOME>   <BIO>   <CV>   <LIFELINES>

Posts

Author
Patrick Aud­ley
Down­load
(direct down­load)
SVN
(svn url)
Docs
(docs)
License
GPL Pub­lic License

See the sam­ple report for an idea of that this pro­gram does.

TSM is a data man­age­ment solu­tion that is offered by IBM. It’s a huge, sprawl­ing, flex­i­ble mon­stros­ity that work per­fectly… if you watch it and keep it fed and watered. TSM is also very script­able and extensible.

This pro­gram attempts to give a TSM admin­is­tra­tor a daily report that con­tains all the things that need to be peri­od­i­cally looked at. Wher­ever pos­si­ble it will offer advice on how to fix prob­lems found or attempt to resolve them itself. It will gen­er­ate a nice email with the report and will mod­ify the sub­ject to flag and prob­lems found so that you know when it’s really impor­tant to have a peek inside the report.

If you know of any­thing that you’d like added, you find a bug, or just can’t get it to run for you, please email me at paudley@blackcat.ca and I’ll see what I can do to help. Please Note: I no longer have reg­u­lar access to a TSM sys­tem for test­ing, if you’d like trou­bleshoot­ing I can prob­a­bly work some­thing remotely.

Thanks to the many peo­ple that have passed along code or sug­ges­tions and to the Well­come Trust for fund­ing my time at the Uni­ver­sity of Dundee.

Change His­tory

v1.0

  • pre­li­mary ver­sion, ugly perl :)

v1.1

  • refac­tored perl code
  • sum­ma­rize more log messages
  • make scratch queries actu­ally work on other systems
  • added checks for:
  • nodes that haven’t talked to the server in a while
  • file­spaces that haven’t been backed up in a while
  • added reports for:
  • aver­age fill of tapes in each device class

v1.2

  • add ses­sion section
  • show loaded/empty sta­tus for drives
  • catch restored objects in the client sum­mary and warn for unknown types
  • check for MIME::Lite and dis­able email if not found
  • revamp con­fig­u­ra­tion sec­tions, use more hashes
  • add com­mand line argu­ments for many things
  • add fine-grained sec­tion control
  • added the alter_library flag to tog­gle com­mands that might alter TSM
  • added the option to skip slow or iter­a­tive queries

v1.3

  • add report­ing of dri­ves that need to be cleaned in the dri­ves section
  • sig­nif­i­cant activ­ity log pars­ing speedups for very large logs
  • cre­ate a seri­ous errors section
  • detect data-integrity errors and attach a list of them if found
  • infor­mat­ing about audited volumes
  • abil­ity to audit ran­dom volumes
  • added mem­o­ize sup­port and the no_queries options to help in debug­ging and run­ning offline.

v1.4

  • make alerts appear in the seri­ous errors section
  • show break­down of vol­umes by type per library in the vol­ume infor­ma­tion section
  • make alter_tsm a com­mand line option
  • try to work around a miss­ing Pod::Usage
  • change the “use warn­ings” prag­mas to just a “-w” at the top of the script
  • dis­play locked client nodes
  • add col­umn num­bers to debug_tables output
  • add db and log mir­ror­ing information
  • add an advice function
  • report pri­vate vol­umes that have no recorded last use, option­ally turn these into scratch volumes.
  • fix label­ing of bulk io volumes
  • add data trans­fer time to client display
  • detect slow nodes
  • add list of added users and nodes, also show pol­icy domain association
  • add con­fig file parsing

v1.5

  • add a sched­ule graph section
  • exclude nodes that you don’t care about
  • added the script infor­ma­tion section
  • added a debug sec­tion — mainly for me while developing
  • report SQL errors
  • sup­port nar­row­ing report to spe­cific pol­icy domains
  • detect nodes that were ter­mi­nated for being idle
careerreportingscriptingtape-backuptivoli-storage-managertsmUNIX
Posted on:August 12th, 2007underadministravia, code, lifelines.

Leave a Reply

Post a Comment: