Sample groupname.res file:
[START]
type: savepnpc;
precmd: "G:\\EXPORTS\\wkly_expdb.cmd";
pstcmd: "echo DONE";
timeout: "12:00:00";
abort precmd with group: No;
[END]
Sample script, G:\EXPORTS\wkly_expdb.cmd, which in this case shuts down an
Oracle database:
[START]
e:
cd \oracle
echo "Starting Oracle Shutdown"
sqlplus /nolog < at > e:\oracle\orashut.sql && e:\oracle\OraServiceStop.cmd
echo "Shutdown completed." >> G:\exports\Wkly_expdb.log
date /T >> Wkly_expdb.log
time /T >> Wkly_expdb.log
exit
[END]
Since there is no pstcmd, the database stays down after the backup
completes. A separate process reboots the client, and the database is set to
start on the reboot. More typically there would be post command that would
restart the database.
Regards,
Conrad Macina
Pfizer, Inc.
On Mon, 10 Jan 2005 17:10:43 -0500, Chris Moon <cmoon < at > GODSSI.COM> wrote:
Does anyone have a sample script for the savepnpc command that I could see?
Also a sample groupname.res file?
Thanks,
--
Note: To sign off this list, send a "signoff networker" command via email
to listserv < at > listserv.temple.edu or visit the list's Web site at
http://listserv.temple.edu/archives/networker.html where you can
should be sent to stan < at > temple.edu
Note: To sign off this list, send a "signoff networker" command via email
to listserv < at > listserv.temple.edu or visit the list's Web site at
http://listserv.temple.edu/archives/networker.html where you can
should be sent to stan < at > temple.edu