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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the Volume Location 2

Status
Not open for further replies.

unixgy

Technical User
Dec 28, 2001
36
US
Hello.

When we label new tapes in our library, the Volume location of the tapes in our library changes to our Jukebox name, which is good. But when we take tapes out and put new ones in, the location of the tapes we take out goes blank. Then we manually change the location of those tapes through the GUI.

Does anyone know if it is possible to change the Volume location from the Command Line? I have written querries to report locations using mminfo, but I need to know if there is a way to update a location in a similar fashion.

Any help is greatly appreciated.

Solaris 8 - Networker 6.1.1

Unixgy
 
You could try "mmlocate -u -n server.001 'New location'
It changes "server.001" volume's location to "New Location".

Hope this helps.
 
Thanks! That does help. Any ideas how I might be able to update all the Blank locations with a new location value?

Unixgy
 
mminfo -s <server_name> -q 'location=&quot;&quot;' -r 'volume' | while read volser rest; do
mmlocate -s <server_name> -u -n &quot;$volser&quot; 'New-Location'
done

HTH
 
Thanks to those who responded. This is Exactly what I was looking for!

Unixgy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top