Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any good scripts out there?

Status
Not open for further replies.

JG5

MIS
Nov 18, 2001
171
US
Has anyone written, or does anyone know of some useful scripts to use with Galaxy? I'd love to have a script that would check the CVMA log in each of my divisions and kill the backup job if there is no tape in the drive, and then notify my divisional IT personnel. Right now, I have a simple batch script that runs each morning at the same time and kills anything running in the remote offices.

Thanks.
 
sounds like something fun to work on....could you put together a more details requirements list?
 
I have a batch file which contains the following command:

"C:\Program Files\CommVault Systems\Galaxy\Base\gxcmd.exe" -cmd jobcontrol -commcell net-com1.beazer.net -port 8401 -logonid "10j:VHUT1dx^V_V+6&06" -operation "kill" -cl "atl" -clientType "MA"

The batch file contains the same command for each of my remote media agents. A scheduled task runs at 6 am each morning which calls the batch file. Rather than have the batch file run for every media agent each day, I would rather have an event for the media agent call a batch file and kill the job if no tape is in the drive. I've been attempting this by running a job in a division on the west coast early in the morning where I know there is no tape in the drive. The alert will not run the command for some reason. I will run the system state backup for example, and it will prompt to insert media into the drive. I have the alert set to run a command when media handling is required which should call the batch file. I think the batch file is right since it will run with a scheduled task, but the alert run command does not call it correctly for some reason.
 
ok...i think i'm starting to understand what your looking for. If the alert mechanism worked you would be all set, no?
Check the alert configuration - you may need to try setting the user impersonation value....
 
I've tried it both ways. The scripts for each media agent are located on the local drive of my commserve. It doesn't work either way. I am getting the notifications, but the batch file is still not getting called by the alert.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top