Tape Serial Number


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Tape Serial Number
# 1  
Old 07-20-2004
Data Tape Serial Number

Hello Experts,

I've got a shell script that makes the backup of the files that i want. I also have this script showing the amount of files backed up and in witch folders they are.
It's only missing one thing.

I got all the information beeing stored in a text file and all i've got to do is to see that file in the morning to see if all went well. The problem is that i may not know if the tapes are beeing changed daily as it is supposed to. So the trick is to know the tape serial number, because i use one tape for each day of the week.

How can i accomplish this?
Witch script can return me the serial number of the tape?

Thank you so much,

Jorge Ferreira
# 2  
Old 07-20-2004
Hello Jorge

I think it would be better to label your tapes in order to be able to identify them.
The command to write a label to the tapes obviously depends on your O.S.
# 3  
Old 07-20-2004
UnixWare SCO 7

Ok.
My OS is the UnixWare SCO 7.
How to label the tapes then?


Thank you for your reply.

Jorge
# 4  
Old 07-20-2004
How are you doing the backup. What software are you using. When the previous person talked about labeling the tape, he meant to write a logical label to the tape. This will not work (for example) if you are writing to the tape as a raw device using something like tar. If it isn't too big. put the backup script into a note.
# 5  
Old 07-21-2004
Hammer & Screwdriver How do I label my tapes?

Ok, this is the deal.

The backup is being made by a tar command, directly to the tape. Something like: tar cvf ./xpto /dev/tape

In this script i check the time of start and end of the script and the amount of files in each directory copied. Each of these informations are being sent to a text file wich is created with the "DayMonthYear.txt" format. Something like 01122004.txt.

Another information i would like to put in these text files is if the backup is being made to the right tape. Because the backup of Friday wouldn't be made to the Wednesday tape. Tapes' got to be chaged daily.

So aparently the trick is to know witch tape is in the drive. If i can label my tapes and then check the label in the script, I would have the problem solved.

That's it,

Thak you for all your replies,


Jorge Ferreira
# 6  
Old 07-21-2004
Sorry, your out of luck. Tar writes to the tape as a raw device. While you can have multiple tars on a tape (seperated by EOF marks), you can't logically label the tape.
# 7  
Old 07-23-2004
The script

Maybe it's better to post the script to see if there's anything that can be done.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help about bind serial number

Hello folks. Please let me understand the bind serial number. I am confuse. 13011321 ---------- Post updated at 08:32 AM ---------- Previous update was at 07:55 AM ---------- Thanks problem is solved. (1 Reply)
Discussion started by: learnbash
1 Replies

2. Solaris

Anyone know how to get Serial number with 1 command?

Solaris8 Anyone help? (27 Replies)
Discussion started by: frustrated1
27 Replies

3. Linux

Device serial number

Hey! I'm trying to figure out a sollution for a problem I have at my company with an Iomega MiniMax 500 GB USB disk. If i run cat /proc/bus/usb/devices I get this information: T: Bus=01 Lev=02 Prnt=04 Port=00 Cnt=01 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00... (2 Replies)
Discussion started by: noratx
2 Replies

4. Solaris

[help] how to get serial number of cpu or other hardware

hi experts, hi all, need help, how to get serial number of cpu or other hardware using command? does anybody know using what syntax? thank you wu (8 Replies)
Discussion started by: bucci
8 Replies

5. Solaris

Serial number

Hi Solarizer ;) I have face the difficulties of gathering information about the serial number of sun machine. i think its can do so easy while the machine is just one or two. But i have to administrate hundreds of sun machine. Any body knows how to gather this information by the command ? ... (4 Replies)
Discussion started by: tpx99
4 Replies

6. Solaris

Display Serial Number

Hello, I am running Solaris 9 and I need to display the serial number of my machine. How can I do this? Here is my machine info: SunOS birch 5.9 Generic_118558-09 sun4u sparc SUNW,Sun-Fire-V240 Thank you, David (5 Replies)
Discussion started by: dkranes
5 Replies

7. Solaris

Server Serial Number from Solaris

This may be an off the wall question but is there anyway in Solaris to snag the serial number of a Sun box? I'm not sure if you can do this but it would save me a long drive to the data center to get the serial number to renew support... (8 Replies)
Discussion started by: kingdbag
8 Replies

8. AIX

how to find serial number

hi how to find ( server machine )serial number throught the command in AIX thanks for your replay (3 Replies)
Discussion started by: chomca
3 Replies

9. UNIX for Advanced & Expert Users

serial number for E3500

just wanted to know the serial number of my machine E3500 with Solaris 8 installed.Does any one who what's the command that i can use when the OS is running?( not with the Banner Command!) (3 Replies)
Discussion started by: i2admin
3 Replies
Login or Register to Ask a Question