Forum Discussion

Imran1's avatar
Imran1
Level 3
14 years ago

How to know the contents of tape

Hello,

Do we have any Netbackup command that displays data written to a tape please?

Thanks,

Imran.

  • You can do it from the gui if you want to.

    Go to Netbackup Managment and then Reports.

    Select Images on Tape and select the media id on the right hand side and then click search.

    This will show you all the images on the tape that are in the catalog.

    Hope this helps

4 Replies

  • Which data i.e. ( database or file & folder) want you check ?

  • Anonymous's avatar
    Anonymous
    1. Identify the tape label ID you want to show data on it.
    2. get the Backup ID's written on that tape
    3. use bpflist command to show what was backed up each backup ID

     

    Extra help here as you might need to use the -client switch on bpflist

    http://www.symantec.com/business/support/index?page=content&id=TECH24216

     

    A script to do it.

    #!/bin/ksh
    media=$1
    NBADM=/usr/openv/netbackup/bin/admincmd
    echo "Media $media contains following files:"
    $NBADM/bpimmedia -l -mediaid $media | grep "^IMAGE" | awk {'print $4'} | 
    while read BID
    do
    ctime=`echo $BID | sed 's/^.*_//'`
    $NBADM/bpflist -l -backupid $BID -ut $ctime | awk {'print $10'}
    done
    
  • You can do it from the gui if you want to.

    Go to Netbackup Managment and then Reports.

    Select Images on Tape and select the media id on the right hand side and then click search.

    This will show you all the images on the tape that are in the catalog.

    Hope this helps

  • thank you everyone, bpflist command needs bit tweaking i guess but gui in windows is straight forward. thank you :)