11-14-2017 11:23 AM
Hello all,
I have been given a list of media IDs to verify. Is there a way to do this other than one by one using vmquery?
Thanks!
Solved! Go to Solution.
11-14-2017 11:59 AM
11-14-2017 11:40 AM
What are you trying to find out?
11-14-2017 11:44 AM
So when I run vmquery -m <media id> I get the status of that ID or I recieve that the ID cannot be found.
What I am trying to do is figure out a way to do this with multiple media IDs from a list and have the results piped to a text file
11-14-2017 11:53 AM
Sort of like this perhaps?
In whatever shell you use read the input file of media IDs. While not end of file run vmquery against each one. The entire output of the while loop can then be piped out to an output file:
cat \tmp\inputfile | while read tape ; do
vmquery -m $tape
done > \tmp\outfile.txt
11-14-2017 11:59 AM
11-14-2017 12:37 PM
Thank you both for the posible solutions!
I have run Marianne's idea and am running a compair against the list I was given this should hopefully get me the results I was looking for
Again thank you!