Re: [Networker] How to specify slot number of a library in a report?
2007-11-05 15:39:59
If there is a way to get the autochanger slot number out of mminfo, I
haven't found it.
What I use is displayed in the following bash snippet (where VOLUME
contains the name of the volume and LIBRARY is what NW knows the
autochanger as):
slot=$(/usr/sbin/nsrjb -j "${LIBRARY}" -C ${VOLUME} | \
grep "${VOLUME}" | \
grep -v ^drive | \
awk '{print $1}' | \
sed 's/:.*//' )
This returns the slot number.
Frank
To sign off this list, send email to listserv AT listserv.temple DOT edu and type
"signoff networker" in the body of the email. Please write to networker-request
AT listserv.temple DOT edu if you have any problems with this list. You can access the
archives at http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|
|
|