tpclean enables you to monitor Media Manager tape drive usage and optionally configure tape drives to be cleaned automatically. (This function does not apply to drives in ACS or TLH robots, or QIC drives.)
Media Manager tracks the total amount of time that volumes have been mounted in the drives. You can use tpclean to specify a cleaning frequency (in hours) for a drive.
The Comment field in the tpclean -L output contains the message, NEEDS CLEANING, if the following are true:
Manually clean the drive and reset the mount time by using the -M option.
For the -C, -M, and -F options to operate, the following must occur: ltid must be running on UNIX or Linux systems, or the NetBackup Device Manager service must be running on Windows systems.
For more information on TapeAlert and other related drive-cleaning topics, refer to "Using TapeAlert" in the NetBackup Administrator's Guide, Volume II.
In a NetBackup Enterprise Server, a frequency-based cleaning is not supported for shared drives.
Initiates the cleaning of a drive in a robot. The drive must be defined in a robot and a defined cleaning tape in the Media Manager volume configuration. The mount time is reset to zero. The drive name is the name that was assigned to the drive when it was added to the configuration.
Prints the cleaning statistics. (On UNIX and Linux systems, it prints to stdout.)
Specifies a new priority for the job at which tpclean gets a media-drive pair of resources. The new priority overrides the default job priority.
Indicates that the drive was manually cleaned. The mount time is reset to zero. The drive name is the name that was assigned to the drive when it was added to the device configuration.
Sets the cleaning frequency for the specified drive to cleaning_frequency hours. The drive name is the name that was assigned to the drive when it was added. The value of cleaning_frequency must be between zero (0) hours and 10,000 hours.
tpconfig -d, tpconfig -l, and vmoprcmd may truncate long drive names. Use tpconfig -dl to obtain the full drive name.
The following example displays cleaning statistics. An asterisk next to the drive type indicates that the device is defined as robotic.
# tpclean -L Drive Name Type Mount Time Frequency Last Cleaned Comment ********** **** ********** ********** ************ ******* rob_A_drv1 8mm* 11.4 30 14:33 05/29/92 4mm_drv5 4mm 5.6 10 13:01 06/02/92 dlt_drv6 dlt 3.0 0 N/A
The following example sets the cleaning frequency for the drive named dlt_drv6 to 25 hours. The drive is flagged as having a need to be cleaned after 25 hours of mount time has occurred.
# tpclean -F dlt_drv6 25
The following example resets the mount time for the drive named rob_A_drv1 to zero. You normally use this command after you manually clean the drive.
# tpclean -M rob_A_drv1
The following example initiates the cleaning of drive rob_A_drv1. This example assumes that the drive is a robotic drive with a cleaning tape defined. The mount time is reset to zero.
You can use the -C option to force the cleaning of a drive before you reach cleaning_frequency. Normally, robotic drives are cleaned automatically when their mount time exceeds the cleaning frequency.
# tpclean -C rob_A_drv1