Unsolved

This post is more than 5 years old

4442

April 5th, 2016 01:00

Create powershell script or restapi to check the backup status of particular client from client end

Hi All,

I am not sure it is been implemented in networker.

Requirement :  login to the client machine , run restapi/script or open console to check the particular client backup status.

Example:

Create powershell script or restapi to check the backup status of particular client from client end only.

Reason: Our team keep getting request to check  the backup status from different team, so we need to  optimize by creating script or console where other team  can just  login to the client  and  check for the backup status, similar to avamar product.

Regards,

Vish

2 Intern

 • 

14.3K Posts

April 5th, 2016 05:00

Why don't you create simple web portal with status of your backups and have other team check it there?

2.4K Posts

April 5th, 2016 08:00

This is not so easy as all the information is kept on the NW server.

On the client itself you could just verify whether a save process is still running.

But even if all processes are gone you still do not know the result.

So you have several possibilities:

  - use mminfo on the client to query the specific savesets like

        mminfo -s nw_server -q "client=client_name,savetime>=.1days" -r "client,name,level,savetime,sumflags,sumsize" -ot

     but this will probably not show all save sets as no-runs will be missing

  - train these guys to use the Admin GUI where you can also see the current status, errors etc.

  - Use the jobs db (jobquery) to verify the specific group/client details.

    IMHO much to deep for an untrained person.

You can also use the client's "owner notification" to automatically send a specific info once the backup finished.

April 5th, 2016 19:00

Bingo,

thanks for the information.

Hrvoje Crvelin :

The idea of yours  is same we are planning to perform. Have you come across any one creating web portal for checking backup status.  Kindly let us know if there is any procedure or document available.

We are also planning DPA web portal, we are using DPA 6.2, but not able to get exact steps to perform.

Regards,

vish

2 Intern

 • 

14.3K Posts

April 6th, 2016 03:00

... or use nsrsgrpcomp query from client towards server to check status of the backup for that client based on savegrp info.

2 Intern

 • 

14.3K Posts

April 6th, 2016 08:00

vishwanath.krishnappa@anz.com wrote:

Hrvoje Crvelin :

The idea of yours  is same we are planning to perform. Have you come across any one creating web portal for checking backup status.  Kindly let us know if there is any procedure or document available.

Yes, I think this is most common of home grown solutions.  By checking exit codes (via nsrsgrpcomp for example) you extract return codes (along with timestamps) and place those into some kind of matrix where to rc=0 you assign green color and to the rest whatever you want (for example, if you have archive logs running every 1h and out of 24 runs 2 have failed you can assign yellow instead of red).  For first part, you need NSR to extract data and that should not be big deal.  For second part you need someone skilled with html who can parse results and build into html report.

April 7th, 2016 07:00

DPA is always the most convenient easy solution for this. You just need to configure DPA server, and need to install DPA agent on all of your backup server. Discover the backup servers in inventory object, define policy and finish other basic stuffs. Create your own report then (already lot of predefined report will be there). Schedule your report if you want to run. Now how question how end user can access this report. There can be two way -

  • Export your scheduled report to .pdf/.csv and keep those in a shared location day wise and give end user the access on that location
  • You can write a small perl script to call your specific DPA report with x no of argument using REST api

Here is a quick guide how you can use REST API in DPA

EMC Data Protection Advisor REST API Part1 - YouTube


Please give me more details if you face any specific issues while using in DPA.

Now considering the fact that you cant use any 3rd part tool . you want to use your own reporting mechanism then please state me your requirement clearly from below case/report type -

Case A You want to report the avaibility of the backup for a specific client (Which will show list of save set for that client from previous backup)
Case B You want to report Backup status for a specific client  (Whether Failed/Success of savegroup for that client)
Case B.1 You want to report Backup status for a specific client  (Each save set status for a specific savegroup for that client)
Report Type A Report on recent/latest time period (for ex - last 24hrs data)
Report Type B

Report on periodic historic data (You can track of backup status for a client for particula old specific date also)

I can provide you more details on basis of your requirement.

Thanks & Regards,

Shubhadip Datta

No Events found!

Top