Quantcast
Channel: Symantec Connect - Backup and Recovery - Discussions
Viewing all articles
Browse latest Browse all 6307

How to get pool and retention level list of tapes in one command

$
0
0
I need a solution

Hello Everyone,

 

As the subject sayes I need a command from which I can get pool and retention level of the tapes in one command.

 

This is how I am achiving it right now as following:

Below will list all the tapes which are currently in library and are in pool which contains dup in its name.

vmquery -W -a | awk '{if($12~/dup/ && $7~/TLD/ )print $1}'> pool.txt

 

Secondly:

 bpmedialist -mlist -l | awk '{if($12<9)print $1}'> retention.txt

Now for getting all the tapes which are in library && in dup pool && with retention less then 9. I do

/usr/sfw/bin/ggrep -f pool.txt retention.txt > list.txt

 

I dont want to use GUI (filters can be easily applied there), as I am writing a script to do some tape rotation. Please let me know if there is any way to do this via single command.

 

Basically I need to know the NBU command which list  pool as well as retention level of the tape in one go.

 

Thanks in advance.

--

Regards


Viewing all articles
Browse latest Browse all 6307

Trending Articles



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