Quantcast
Channel: Data Protector Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3189

Find out what tape is in drive (Script)

$
0
0

Hello ,

I woud like to know if is possible find out what tape is mounted in drive (magnemtic LTO tape drive ) for DP 7.01.

Basicaly I have created script which show status (free || disabled ||  tape ) for all drives in libraries  but it is not works for 100%.

 

I have used for this purpose command `omnimm -show_locked_devs` . ... but in case that backup is using 2 drives then it is not possible find out which tape belongs to which drive due to same entries in output (See output example => only location is different in such case).

btw: tape label is find according location in library

 

In case that session with PID 1 using 2 drives (Drive1 and Drive2) output from omnimm -show_locked_devs should be :

...

Type: Device
Name/Id: Drive1
Pid: 1
Host: cell1

 

Type: Device
Name/Id: Drive2
Pid: 1
Host: cell1

 

Type: Cartridge
Name/Id: Lib1
Pid: 1
Host: cell1
Location: 1

 

Type: Cartridge
Name/Id: Lib1
Pid: 1
Host: cell1
Location: 2

...

 

So, if you know how to do that then please let me know.  THANK YOU!


Viewing all articles
Browse latest Browse all 3189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>