cancel
Showing results for 
Search instead for 
Did you mean: 

know recorded media_id in drive

guilhemlflo
Level 4

hello,

i want to know the recorded media_id of specifique drive in cmd.

the goal is to be able via a script to indicate the media which is in the drive

for then indicated its status and the size used.

"vmoprcmd -d ds -h"  give me something really hard to read in script.

there is something else ?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

sclind
Moderator
Moderator
   VIP   

We check what tapes are in what drive with this command:

/usr/openv/volmgr/bin/vmoprcmd|grep ULT|grep -E -e T[0-9]{\5\}
HP.ULTRIUM4-SCSI.011 Yes Yes T21146 T21146 Yes hcart
HP.ULTRIUM4-SCSI.013 Yes Yes T21590 T21590 Yes hcart
HP.ULTRIUM4-SCSI.015 Yes Yes T21562 T21562 Yes hcart

View solution in original post

2 REPLIES 2

mph999
Level 6
Employee Accredited

The only place I can think the recorded media id appears is in vmoprcmd output.

sclind
Moderator
Moderator
   VIP   

We check what tapes are in what drive with this command:

/usr/openv/volmgr/bin/vmoprcmd|grep ULT|grep -E -e T[0-9]{\5\}
HP.ULTRIUM4-SCSI.011 Yes Yes T21146 T21146 Yes hcart
HP.ULTRIUM4-SCSI.013 Yes Yes T21590 T21590 Yes hcart
HP.ULTRIUM4-SCSI.015 Yes Yes T21562 T21562 Yes hcart