Maurice van 't Loo - Freelance TSM Specialist

MAU.PACK

Personal collections of TSM scripts

The scripts are moved from this page to an external file. Don't link directlty to the txt-file, as the name changes with every version.
Use this link to open a txt file containing the TSM commands to define the scripts.

The scripts are free to use, change and distribute, but respect the developer.


Extra's

Some extra scripts who are easy to use.

Most text is hidden because at this page the linebreaks are disabled.
Just copy/paste into a text file to see the full text.


Monitoring

What I use for monitoring

Hourly checks
DELETE SCRIPT CHECK.HOURLY Y DEFINE SCRIPT CHECK.HOURLY DESC="Monitoring: Hourly checks" UPDATE SCRIPT CHECK.HOURLY "* Check disk volumes" UPDATE SCRIPT CHECK.HOURLY "select '[disk_offline] stgpool:'||stgpool_name||' volume:'||volume_name||' status:'||status from volumes where DEVCLASS_NAME='DISK' and STATUS<>'ONLINE'" UPDATE SCRIPT CHECK.HOURLY "if(ok) issue message s '[disk_offline] Diskpool volumes offline'" UPDATE SCRIPT CHECK.HOURLY "* Check diskpool full" UPDATE SCRIPT CHECK.HOURLY "select '[diskpool_full] stgpool:'||stgpool_name||' pct_migr:'||PCT_MIGR||' pct_util:'||PCT_UTILIZED from stgpools where DEVCLASS='DISK' and PCT_UTILIZED>80" UPDATE SCRIPT CHECK.HOURLY "if(ok) run mau.diskpoolfull" UPDATE SCRIPT CHECK.HOURLY "select '[diskpool_full] stgpool:'||stgpool_name||' pct_migr:'||PCT_MIGR||' pct_util:'||PCT_UTILIZED from stgpools where DEVCLASS='DISK' and PCT_UTILIZED>95" UPDATE SCRIPT CHECK.HOURLY "if(ok) run mau.diskpoolfull" UPDATE SCRIPT CHECK.HOURLY "select '[diskpool_full] stgpool:'||stgpool_name||' pct_migr:'||PCT_MIGR||' pct_util:'||PCT_UTILIZED from stgpools where DEVCLASS='DISK' and PCT_UTILIZED>95" UPDATE SCRIPT CHECK.HOURLY "if(ok) issue message s '[diskpool_full] Diskpool more then 95% utilized'" UPDATE SCRIPT CHECK.HOURLY "* Check if audit library is running" UPDATE SCRIPT CHECK.HOURLY "select '[audit_libr] '||substr(START_TIME,1,10)||' '||STATUS from processes where process='AUDIT LIBRARY' and (current_timestamp-START_TIME)>1000" UPDATE SCRIPT CHECK.HOURLY "if(ok) issue message s '[audit_libr] Audit library is running'" UPDATE SCRIPT CHECK.HOURLY "* Check if Checkin is running" UPDATE SCRIPT CHECK.HOURLY "select '[checkin] '||substr(START_TIME,1,10)||' '||STATUS from processes where process='CHECKIN LIBVOLUME' and (current_timestamp-START_TIME)>1000" UPDATE SCRIPT CHECK.HOURLY "if(ok) issue message s '[checkin] Checkin is running'" UPDATE SCRIPT CHECK.HOURLY "* Check if Checkout is running" UPDATE SCRIPT CHECK.HOURLY "select '[checkout] '||substr(START_TIME,1,10)||' '||STATUS from processes where process='CHECKOUT LIBVOLUME' and (current_timestamp-START_TIME)>1000" UPDATE SCRIPT CHECK.HOURLY "if(ok) issue message s '[checkout] Checkout is running'"