cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Script for getting the queue information of De-dupe

Hi,

 

I am new to scripting, please can you help me in writing the script for getting the queue information of de-dupe.

By executing the following command.

crcontrol --queueinfo

Thanks and Regards

Hema

 

1 Solution

Accepted Solutions
Highlighted
Accepted Solution!

Why not just use a  .bat file

Why not just use a  .bat file if you are on Windows and then use Blat like the catalog backup uses?

That makes it really easy:

"c:\program files\veritas\pdde\crcontrol" --queueinfo>c:\queueinfo.txt

blat c:\queueinfo.txt -s "Queue Info" -t you@yourdomain.com

View solution in original post

17 Replies
Highlighted

O/S and version and patch,

O/S and version and patch, NBU version and patch, scripting language?
Highlighted

O/S and version and patch,

O/S and version and patch, NBU version and patch, scripting language?
Highlighted

OS - Windows 2008 R2 - 64

OS - Windows 2008 R2 - 64 bit

NBU Version - 7.5.0.4

Scriting Lang - Perl script

Highlighted

What extend of the perl

What extend of the perl script do you want help with ?

One single command or how you execute a command with-in Perl or capturing info ?

Highlighted

I want to execute crcontrol

I want to execute crcontrol --queueinfo command and mail the output.

Just to get the last queue process details from MSDP server.

Highlighted
Accepted Solution!

Why not just use a  .bat file

Why not just use a  .bat file if you are on Windows and then use Blat like the catalog backup uses?

That makes it really easy:

"c:\program files\veritas\pdde\crcontrol" --queueinfo>c:\queueinfo.txt

blat c:\queueinfo.txt -s "Queue Info" -t you@yourdomain.com

View solution in original post

Highlighted

Hi Mark, I want to schedule

Hi Mark,

I want to schedule the script by windows task scheduler, and want the output to be mailed everyday.

Sorry i am not aware of blat..

 

Highlighted

That is exactly what Mark's

That is exactly what Mark's script is doing!

blat is an email client for Windows that needs to be downloaded and configured separately.

See http://www.symantec.com/docs/TECH24110

Highlighted

Not a problem Make a file

Not a problem

Make a file name queue.bat somewhere on your master server, edit it and paste in the two lines i gave earlier

Then setup a scheduled task (that runs using an administrators account) to run the queue.bat file.

Blat is the freeware mail program reccomended for use for all netbackup notifications on Windows - if your catalog backup send out an e-mail when it completes with the DR file attached you are probably already using blat - if not you really should be!

You can get it from www.blat.net and just follow its instruction for installing it in the Master

If you already have a mail program setup then just use that instead to send out the queueinfo.txt

Highlighted

Hi Mark, Thanks for the

Hi Mark,

Thanks for the information.

I need to configure it on MSDP server - De-Dupe media server. Please can you help me in configuring hte alert without using the third party software.

 

 

Highlighted

You need some sort of email

You need some sort of email client/program..

There is nothing built into Windows or NetBackup.

Unix/Linux servers have sendmail as part of the OS. Unfortunately nothing like this on Windows.

Highlighted

My script will do exactly

My script will do exactly what you want but you said you wanted to mail the output so to do that you need a mail program

If you dont have one on your Master to send the catalog DR file I suggest you get blat to do it anyway - that is really important!

To mail you need something so i suggest you install blat as it works very well and is the suggested application to use for NetBackup

This will need installing on the MSDP Media Server and that is where the .bat file needs to be run by the scheduler

Highlighted

Goal_H - IMO, Mark's response

Goal_H - IMO, Mark's response deserves a 'solution' acknowledgement.

Highlighted

Hi Mark,   Thanks for the

Hi Mark,

 

Thanks for the solution, but is there any option to check the queue information from Ops center. We are using Ops center analytics, with the help of SQL query.

 

 

Highlighted

Nothing in OpsCenter - this

Nothing in OpsCenter - this is a MSDP / PureDisk command trun on the MSDP server itself

Highlighted

... please can you help me in

... please can you help me in writing the script ....

 

@Goal_H, you will agree that the request in your opening post has been answered.

Your request for OpsCenter report is a new request and cannot be done.

Please close off this discussion by marking this post as solution.

Highlighted

Hi, Thanks all for you

Hi, Thanks all for you reply. It was done using batch script and scheduling the bacth script using Windows task scheduler. Then output is mailed using SMTP.