IBM Storage Protect

Scripts for TSM admins

A small collection of things I wrote for my own IBM Storage Protect work — tape handling, monitoring, console helpers. Nothing fancy, just shared in case they're useful to someone else.

Personal project · not affiliated with IBM

https://tsmpilot.randomhive.de/
Servers
PROD-TSM-01
PROD-TSM-02 2
PROD-TSM-03 7
DR-TSM-01
Quick Commands
▶ Failed Backups 24h
▶ Active Sessions
▶ DB + Log Status
PROD-TSM-01
PROD-TSM-03
09:14:22 SYS Console started — stream: tsmplt | commands: admin
09:14:31 CON ANR0400I Session 42 established for node BACKUP-NODE-01.
09:14:44 CON ANR0984W Database utilization is at 81%.
09:15:01 CMD > QUERY SESSION
09:15:08 CON ANR2034E MOVE DRMEDIA: No scratch volumes available for TAPE_POOL.
09:15:08 CON ANR4746E Drive DRIVE03 is offline or unavailable.
PROD-TSM-01
dsmadmc command…
About

Just sharing what I use

I'm a Storage Protect admin. These are scripts and small tools from my day-to-day work — console sessions, tape jobs, monitoring checks. I put them on GitHub in case another admin finds them helpful.

Multi-server setups
Most environments have more than one server — prod, DR, dev. The scripts here assume that kind of estate, not a single box.
ANR noise
Console output is mostly ANR codes. Some of the tooling deals with filtering and triage for real dsmadmc sessions.
Tape work
Dumping tapes, building inventories, pulling files off dumps — the unglamorous side of backup admin.
Monitoring
Check_MK plugins for TSM servers and TS4500 libraries — scratch pools, I/O stations, the usual operational checks.
Console admin
Working in dsmadmc all day adds up. TSM Pilot (when it's ready) is a browser-based console helper I've been building on the side.
Take it as-is
No support contract, no sales pitch. Clone it, adapt it, ignore it — whatever works for your environment.
GitHub

Repos

Everything here is open source on GitHub. Use at your own risk.

Coming soon
TSM Pilot
Browser console helper — work in progress
  • Live console stream + command sessions in one view
  • Multi-server matrix with error/warning counts
  • 200+ ANR codes in configurable filter groups
  • Browser notifications for critical alerts
  • Mobile-ready PWA with dark/light themes
Coming soon
tape_dump
Tape dump, inventory & file extraction
  • Dump tapes to disk
  • Scan dumps and build file inventory
  • Extract single files or full tape contents
  • Full pipeline: dump → inventory → extract
  • Works with any node, client type, or file extension
View on GitHub
tsm_check
Check_MK local checks for TSM instances
  • Check_MK local plugin for IBM Storage Protect
  • Multi-instance and multi-cluster configuration
  • Operational signals for backup windows and server health
  • Deployable via Ansible to agent hosts
View on GitHub
lib_check
Check_MK piggyback checks for TS4500 libraries
  • IBM TS4500 tape library monitoring via REST API
  • Check_MK piggyback plugin with per-library config
  • I/O station, drive, and scratch pool visibility
  • customizable thresholds and thresholds groups
View on GitHub
Contact

Questions?

If something doesn't work or you have a suggestion, feel free to mail me or open an issue on GitHub.