03-06-2014 10:51 PM
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
Solved! Go to Solution.
03-07-2014 01:16 AM
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
03-06-2014 11:32 PM
03-06-2014 11:32 PM
03-06-2014 11:36 PM
OS - Windows 2008 R2 - 64 bit
NBU Version - 7.5.0.4
Scriting Lang - Perl script
03-07-2014 12:43 AM
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 ?
03-07-2014 01:08 AM
I want to execute crcontrol --queueinfo command and mail the output.
Just to get the last queue process details from MSDP server.
03-07-2014 01:16 AM
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
03-07-2014 02:01 AM
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..
03-07-2014 02:22 AM
That is exactly what Mark's script is doing!
blat is an email client for Windows that needs to be downloaded and configured separately.
03-07-2014 02:24 AM
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
03-07-2014 03:34 AM
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.
03-07-2014 03:57 AM
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.
03-07-2014 05:01 AM
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
03-07-2014 05:39 AM
Goal_H - IMO, Mark's response deserves a 'solution' acknowledgement.
03-07-2014 08:41 AM
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.
03-10-2014 02:24 AM
Nothing in OpsCenter - this is a MSDP / PureDisk command trun on the MSDP server itself
03-10-2014 02:36 AM
... 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.
03-13-2014 11:06 PM