Mark Dyer a écrit :
>
> On a weekly basis, I pull tapes from my library and send them offsite.
> When they return, they are stored in a cabinet until they are reused in the
> tape library.
>
> Is there a command I can use to update the location within Networker?
> Right now, I'm using the NWADMIN GUI and it's an onerous task because I'm
> updating the location of 40-50 tapes every week.
You can use mmlocate for this.
If the selection of tapes to be sent offsite is automated, you should probably
automate the creation
of the list of mmlocate commands too. For instance, if your server runs under
Unix, something like
this would do it : (the mminfo query will be specific to your schedule)
mminfo -m -q 'level=full,sscreate>=last thursday -2 week,sscreate<last thursday
-1 week' \
| tail +2 | cut -c 2-999 \
| awk '{printf("mmlocate -u -n %s \n", $1);}' \
| sed "s/\$/\'$DEST\'/"
Note that you should reset the location to en empty string when your tapes come
back before putting
them in the library else networker will have to load them and read their label
(if the location is
empty, reading the barcode will do).
--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|