Forum Discussion

smith_jones's avatar
9 years ago
Solved

bpimmedia

Hi,

bpimmedia has many parameters and based on these parameters we get specific outputs.

But can you please tell me how to get just the one output, the backupid and nothing more. Just the backup ids.

Below parameters are enough for me to run the bpimmedia command for my need but it also gives alot more info -

bpimmedia -d date time -e date time -cn copy_number -client client_name

I just need the backupid values.

Kindly suggest. Is there anyway other than VB?

  • Using   findstr /v FRAG   and  %{$_.Split(' ')[3];}  and then passing that txt file again through cmd and done.

  • VB = Visual Basic?

    You'd have to use some tool to extract the limited information from the command output. Basic could do it. 

     

  • I am more Unix for this.. :) 

    bpimmedia -cn 1 -client host1 | grep IMAGE | awk '{ print $4 }'

    For Windows, either install cygwin or use MobaXterm, then you can run the above in a Windows environment.

  • Using   findstr /v FRAG   and  %{$_.Split(' ')[3];}  and then passing that txt file again through cmd and done.