cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve Schedule from Tape

JustN
Level 4

Good Morning-

Has anyone found a way to obtain the name of the schedule that has been written to a specific tape from CLI?

For example, bp????? -m LTO003:

....

SCHEDULE: FULL-Weekly

....

Right now I am using the retention period ID to fill this void, but was hoping to steer closer to the actual schedule name.

Any thoughts?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

here you go..

bpimmedia -mediaid <mediaid> | grep -i image | awk '{print$7}'

can remove awk if you need more details about the scheule

bpimmedia -mediaid <mediaid> | grep -i image

 

 

View solution in original post

3 REPLIES 3

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

here you go..

bpimmedia -mediaid <mediaid> | grep -i image | awk '{print$7}'

can remove awk if you need more details about the scheule

bpimmedia -mediaid <mediaid> | grep -i image

 

 

Possible
Level 6
Accredited Certified
Use bpimmedia -mediaid <> -L |grep Sc You will get results u want.

JustN
Level 4

Thanks for the help!

I was able to do this with "bpimmedia -mediaid <media id>" from inside of a Perl script. Works fantastic!