Forum Discussion

Tape_Robot's avatar
Tape_Robot
Level 3
14 years ago

bpimagelist results are not complete. (missing entries)

My setup: I am using Netbackup 6.5 running on an AIX master server. I am running bpimagelist on the backup server directly (local query). I am using a Windows version of Netbackup 6.5 to issue rest...
  • mph999's avatar
    14 years ago

    Here you are ...

    Not the neastest way, but need to dash out ...

     

    bpmedialist -l |awk '{print $1}' |while read TAPE
    do
    bpimmedia -mediaid $TAPE |grep IMAGE |awk '{print $4}' |while read LINE
    do
    DATE=$(echo $LINE |awk -F_ '{print $2}' |awk '{print $1}')
    REALDATE=$(bpdbm -ctime $DATE |awk -F= '{print $2}')
    echo $TAPE $LINE $REALDATE
    done
    done

     

    Gives this output ...

    TAPE04   womble_1305812840    Thu May 19 14:47:20 2011
    TAPE04   womble_1305811981    Thu May 19 14:33:01 2011
    TAPE05   womble_1305814567    Thu May 19 15:16:07 2011
    TAPE05   womble_1305814384    Thu May 19 15:13:04 2011

     

    Martin