There is situation when you have a new HPUX server and then you need to access the old tape that is not supported on the new tape drive. If there is extra SCSI port on the server, definitely you can move the old tape drive to the new server. But when there is no extra SCSI port and you don’t want to buy extra SCSI card, or the old tape drive is needed to be attached to the old server, you still can access the old tape drive using “remsh” command.
We assume the new server’s host name is newserver, while the old server’s host name is oldserver:
- Decide a user login to be used to access the old tape drive, let’s said james.
- Ensure that both servers have that particular user login (with same password).
- Add the host names of both servers into both hosts file (/etc/hosts), for example:
- At old server, create or edit the .rhosts file at the home directory of that particular user by adding the following line:
- To untar files from old tape drive on old server, use this command:
remsh oldserver dd if=/dev/rmt/0m bs=64b|(cd /location/to/untar;tar -xvpfb - 64)
- While to tar files into the old tape drive, use this command:
tar -cvpfb - 64|remsh oldserver dd of=/dev/rmt/0m bs=64b
Refer Remote access tape drive in another HPUX server for extra commands.