- Community Home
- >
- Storage
- >
- Data Protection and Retention
- >
- StoreEver Tape Storage
- >
- Tape Library DLT Cleaning tape Script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 02:23 AM
тАО10-22-2002 02:23 AM
Tape Library DLT Cleaning tape Script
THX for helping!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 03:01 AM
тАО10-22-2002 03:01 AM
Re: Tape Library DLT Cleaning tape Script
Do you use barcode labels. If so you can use the label for this. Example:
label is CLNH35L1
create a file with the tape label in the log directory.
label='cat /var/opt/omni/log/label'
nr='grep $label create a file with the tape label in the log directory.
/var/opt/omni/log/cleaning.log |wc -l'
if [nr -gt 20 ]
then echo "Change cleaning tape"
fi
When you change the tape you have to edit the label file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 03:04 AM
тАО10-22-2002 03:04 AM
Re: Tape Library DLT Cleaning tape Script
Something got wrong. Hope this is better
Do you use barcode labels. If so you can use the label for this. Example:
label is CLNH35L1
create a file with the tape label in the log directory.
#SCRIPT#
label='cat /var/opt/omni/log/label'
nr='grep $label /var/opt/omni/log/cleaning.log |wc -l'
if [nr -gt 20 ]
then echo "Change cleaning tape"
fi
#END#
When you change the tape you have to edit the label file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 03:24 AM
тАО10-22-2002 03:24 AM
Re: Tape Library DLT Cleaning tape Script
Some modifications.
I assume yuo use OmniBack.
If you don't want to use the label file you can get this information from the library.
#SCRIPT#
label='omnimm -repository
nr='grep $label /var/opt/omni/log/cleaning.log |wc -l'
if [nr -gt 20 ]
then echo "Change cleaning tape"
fi
#END#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 05:09 AM
тАО10-22-2002 05:09 AM
Re: Tape Library DLT Cleaning tape Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 05:20 AM
тАО10-22-2002 05:20 AM
Re: Tape Library DLT Cleaning tape Script
A simple solution. Reset the logfile when you have changed the tape. Command:
>/var/opt/omni/log/cleaning.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 05:40 AM
тАО10-22-2002 05:40 AM
Re: Tape Library DLT Cleaning tape Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 06:14 AM
тАО10-22-2002 06:14 AM
Re: Tape Library DLT Cleaning tape Script
This is perhaps not easy as the only way to distinguish two cleaning tapes seems to be the barcode label. You cant apply any Description, Media pool or other information to cleaning tapes. Of course it is possible to find "workarounds", for example add some information to each line with this label in the log file. Another solution could be to create a "lockfile" each time a tape is used 20 times. This lockfile is removed when the tape is replaced and then divide line numbers with 20 and use the reminder. But I don't like such workarounds, they don't seems very reliable.
I think the best solution is to buy some barcode labels, it can't be very expensive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2002 06:19 AM
тАО10-22-2002 06:19 AM
Re: Tape Library DLT Cleaning tape Script
thank you again, you already helped me enough because you gave me good ideas.
i guess i will just make a grep with tail 20 and head -1 on the cleaning tape barcode and then i compare the dates from the grep with the one from the file that will be made when a new cleaning tape is put in, that way i can see if the tape needs to bechanged or not! ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2002 02:24 AM
тАО10-23-2002 02:24 AM
Re: Tape Library DLT Cleaning tape Script
May be my answer is outside your question, but I would like to remember you about the follownig point;
I read a document from HP in which engnieers from mentioned that you do'nt need to clean your back-up unit as long as the backup-unit does'nt ask for cleaning.
They give an advice about DLT en LTO, may be you need to clean then once every six months.
so if we say you 'll clean your backup unit twice a year then you can use your cleaning tape for 10 years(according to your script).
Regards,
Hamdy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2002 03:48 AM
тАО10-23-2002 03:48 AM
Re: Tape Library DLT Cleaning tape Script
but thank you for reminding me about that. i got the problem solved now, if anybody is interested in the script code (its not very professionell) just let me know!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2002 09:33 AM
тАО11-26-2002 09:33 AM
Re: Tape Library DLT Cleaning tape Script
I'm trying to learn how to write a script for
DLT cleaning. I'm interested about the script code that you got it to worked.
Thanks
-Lay