As part of our monitoring efforts, we are looking for a way to trigger “Nearing Media Life” and “End of Life” (EOL) alarms for any tape. While reviewing the CTA codebase, I noticed there is a CASTOR implementation for Tape Alerts (SCSI Command 4D, Page 2E) that could be useful to integrate into the cta-taped daemon.
I tested this command and observed that Flag 07h is set to true when a mount occurs (cta-smc -m), but the log sense is cleared after running the command.
hexcode flag name 0x0007(7) true Media life
I believe it would be beneficial to log these flags when a tape mount occurs so we can enable notifications when tapes are approaching EOL (Flags 13h and 07h).
My apology, I jumped into a wrong conclusion, digging more into CTA code I see it’s already implemented on Read and Write mounts but we haven’t see any 0x07 or 0x13 tapeAlert in the logs.
This are the tapeAlerts we have in our logs for the last 6 months.