Networker
From My Admin Page
This is based on Sun Enterprise Backup 7.0....
Commands
- Label Tapes: /usr/sbin/nsr/nsrjb -j <jukebox> -Y -L -g -b<pool> -f <tape_dev> -S <slots>
- Inventory Jukebox: /usr/sbin/nsr/nsrjb -v -I
- Show info on all tapes: /usr/sbin/nsr/mminfo -m
Jukebox Content Info
The command for showing tapes in the jukbox is /usr/sbin/nsr/nsrjb, but it doesn't give enough info. Here's a script to give more info.
#!/bin/ksh NSRJB=/usr/sbin/nsr/nsrjb echo "slot pool volume written (%) expires read mounts capacity" echo "---------------------------------------------------------------------------------" $NSRJB | tail +4 | perl -ne 'push(@a, $_); print shift(@a, ) if $#a >=4 ;' \ | awk -n '{print $1" "$2" "$3}' | while read slot_no tape_no pool do echo "$slot_no $pool\c" /usr/sbin/nsr/mminfo -m $tape_no | tail -1 done $NSRJB -v 2> /dev/null | tail -8 | sed 's/^ 8:/8:/g'