vmquery has all of that. Field 1 is the media ID, field 4 is the barcode, &
field 12 is the poolname.
So:
vmquery -w -a | awk 'NR>3 {print $4,$12}'
...will do it. The "NR>3" just skips over the header.
-M
-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of James M
Sherman
Sent: Thursday, August 26, 2004 9:19 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Command to see which bar codes are in which volume
pools?
Hello,
How can I generate a report showing which bar code tags are assigned to
which
volume pools?
I need to see something like:
OSF Off_Site_Full
...
Where "OSF" is a bar code tag and Off_Site_Full is it's assigned volume
pool.
I can get this in the GUI via Inventory Robot--> Barcode rules, but I can't
cut
& paste
that stuff, and I need a command-line method.
Thanks!
Jay Sherman
james_sherman AT uhc DOT com
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|