Here are few commands to configure tape drives in HP-UX
1. Scan for new devices:
# ioscan –fnC tape
2. List tape drives currently recognized by the OS (without performing an actual hardware scan)
# ioscan –fnkC tape
3. remove all the special files used by the tape drives
# rmsf /dev/rmt/*
4. Recreate the specil files for the tape drives
# insf –C tape –e
5. Remove a tape drive (that has a NO_HW state)
# rmsf –H 0/7/1/0.1.24.255.5.5.0
Find the WWN for the HBAs:
# ioscan –fnkC fc
# fcmsutil /dev/fcd0
Find the WWN for the tape drives connected to the HBA:
# fcmsutil /dev/fcd0 get remote all
**These are just a handful of commands to deal with the tape drives. Not to be used as a procedure