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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check group status by script

Status
Not open for further replies.

grmpf

Programmer
Dec 4, 2002
1
DE
does anyone know a way to check if a group (oracle_online) is runnig, has ended succesfully or not?
Perl or NT-Batchscript would be best.
 
use the savegroup notification of legato and have it mailed to the appropriate persons.
/usr/ucb/mail -s "savegroup completion" user (this is what we use in unix on our site).

This way you will get all the completion messages (succesfull or not in your mail)

hope this helps
 
If you don't want to use the savegrp notification, you can just write a little batch script... Try something like this:


echo show name > c:\winnt\file.tmp
echo show status >> c:\winnt\file.tmp
echo print type:nsr group;name:nt_376_0400 >> c:\winnt\file.tmp
c:\win32app\nsr\bin\nsradmin -s gsun376 -i c:\winnt\file.tmp

You can also pipe the result to a file, and mail that as well..

Is this the information you're looking for?

Good luck!

-ag100

 
oops.. One other thing.. You''ll definitely want to replace:

nt_376_0400 with your group name
& gsun376 with your backup server...

=:0)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top