Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

media list of robots.. 1

Status
Not open for further replies.

Dorga

MIS
Joined
Jul 30, 2003
Messages
101
Location
NZ
In the GUI, when you pick your robot, you can filter on media status. If I filter with 'full' I get a list of tapes in the GUI.

I need to get that same list of tapes from command line, and for the life of me, I can not figure out how to get anything to show me 'full' and be useable.

bpmedialist will show the following, but unfortuantly, it is on 3 lines, not 1 so it makes scripting difficult.. Ideas?

703194 10 346 08/04/2009 19:54 08/05/2009 21:00 hcart2 348667009 0

MPX 09/09/2009 21:00 N/A FULL
 
Have you tried the available_media command?
 
Willster,

Thanks for that, it did the trick..

My MS script for this.. (I have Microsoft Windows Services for UNIX installed so life is not totaly bad...)

cat f:\vtl\avaliable_media.txt | grep -v NONE | grep FULL | c:\sfu\bin\awk "{print $1}" > f:\vtl\full_media.txt

for /f "tokens=1" %%G IN ('cat f:\vtl\full_media.txt') DO vmchange -res -multi_eject -verbose -rn 2 -rt TLD -rh mediaserver1 -ml %%G -single_cycle

for /f "tokens=1" %%G IN ('cat f:\vtl\full_media.txt') DO vmchange -res -multi_eject -verbose -rn 0 -rt TLD -rh mediaserver2 -ml %%G -single_cycle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top