Write Protected Media Test

Top  Previous  Next

This feature was added in release 1.28. It provides a convenient test to see if the media in a device (typically a tape drive) is write protected.

Note, some operating systems, such as HP/UX do not support querying tape drives unless there is media inserted into them.

 

Syntax

-wp {devicefile}.

 

Example:

# ./smartmon-ux -wp

SMARTMon-ux [Release 1.27T-1, Build 12-APR-2005] - Copyright 2001-2005 SANtools, Inc. http://www.SANtools.com

Discovered MITSUMI CD-ROM FX4830T!B S/N " " on /dev/rdsk/c0t0d0 (CD/DVD)

Discovered IBM DDRS-39130LC S/N "RE371797" on /dev/rdsk/c2t5d0 (SMART enabled)(8678 MB)

Discovered IBM DDRS-39130LC S/N "RE371728" on /dev/rdsk/c2t6d0 (SMART enabled)(8678 MB)

Discovered HP C1533A S/N " " on /dev/rmt/0mn (Media WRITE-PROTECTED)

Program Ended.

 

The test above was run without any device options on a HP/UX machine. It scanned for all devices and reported that the C1533A tape had write-protected media. The test below was run on the same machine, but we used wild-cards for various device names that are associated with that tape.

 

# ./smartmon-ux -wp /dev/rmt/0m*

SMARTMon-ux [Release 1.27T-1, Build 12-APR-2005] - Copyright 2001-2005 SANtools, Inc. http://www.SANtools.com

********************************************************************

* F o r U N I S Y S A U C K L A N D E v a l u a t i o n *

* This software will expire on *

* 05/05/05 (22 days remaining). *

********************************************************************

Discovered HP C1533A S/N " " on /dev/rmt/0m (Media WRITE-PROTECTED)

Discovered HP C1533A S/N " " on /dev/rmt/0mb (Media WRITE-PROTECTED)

Discovered HP C1533A S/N " " on /dev/rmt/0mn (Media WRITE-PROTECTED)

Discovered HP C1533A S/N " " on /dev/rmt/0mnb (Media WRITE-PROTECTED)

Program Ended.

 

We then slid over the write protect tab ...

 

# ./smartmon-ux -wp /dev/rmt/0*

SMARTMon-ux [Release 1.27T-1, Build 12-APR-2005] - Copyright 2001-2005 SANtools, Inc. http://www.SANtools.com

********************************************************************

* F o r U N I S Y S A U C K L A N D E v a l u a t i o n *

* This software will expire on *

* 05/05/05 (22 days remaining). *

********************************************************************

Discovered HP C1533A S/N " " on /dev/rmt/0m (Media Read/Write)

Discovered HP C1533A S/N " " on /dev/rmt/0mb (Media Read/Write)

Discovered HP C1533A S/N " " on /dev/rmt/0mn (Media Read/Write)

Discovered HP C1533A S/N " " on /dev/rmt/0mnb (Media Read/Write)

Program Ended.

 

Feature Notes:

This function is not applicable to ATA/SATA disk drives.