Forum Discussion

Chris_W's avatar
Chris_W
Level 4
9 years ago

Backup and BMR status from client side

I need to to find a way to report on BMR backup status per client.  Is there a command that can be run from the client side (Windows or Linux) that will show BMR status alongside the backup status...
  • Jaime_Vazquez's avatar
    9 years ago

    Not sure if this will help you directly but this is some thing that might be useful.

     

    Every time a BMR enabled backup completes successfully, the BMR database is updated with a new copy of the "current" configuration.  That configuration entry has information about the backup that created it.

    So, on the Master Server, you can run this shell script:

    #----

    for i in `bmrs -o list -res Config | grep "current" | awk ' { print $9 } ' `
    do
    echo "---------------------"
    bmrs -o querytree -res database -table Config -id $i | grep -e "ClientName" -e "CreateTime" -e " Policy = " -e "BscheduleType"
    echo "    "
    done

    # ----

    The "for in" command will parse out the ConfigID of the configurations in the clients in the BMRDB.  Each time a configuration is added it gets a new number, and the value keeps incrementing. The longer the process goes without a reset of the BMRDB files, the larger that number can get. That in turn causes the BMRDB files to grow.

     

    The output will be four lines of output per client which will look like (sample dummy data):

    ---------------------
        ClientName = BMR_client
        CreateTime = 1424313933
        Policy = Windows_Clients
        BScheduleType = Daily_Inc

    The CreateTime is a ctime value. 
    It gives when the configuration was created on the client and will match up with the backup image ctime.

    BMR only remembers the latest version of the client configurations, hence the name "current".

    This runs on the Master.  You can run it daily after the backup window closes and save to a file. You can do some spiffy 'diffs' to see what client info changed and what did not.  If the client CreateTime changed, it worked. If not, it did not.

     

    Again, I hope this helps.

     

     

     

  • Chris_W's avatar
    9 years ago

    Logged a case with Symantec but the reponse was what I was fearing. 

    At present there is no way of doing this, the command below seems to be the only way.

    bmrs -o list -res config -client

    The egineer's comment is below regarding OCA:

    Unfortunately, OpsCenter cannot directly report on a BMR enabled backup.

    So... an enchancement has been logged so if you support my cause, please vote :-)

    https://www-secure.symantec.com/connect/ideas/backup-and-bmr-status-client