Networker

Re: [Networker] savepnpc

2005-01-11 06:51:09
Subject: Re: [Networker] savepnpc
From: Conrad Macina <conrad.macina AT PFIZER DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 11 Jan 2005 06:48:00 -0500
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 @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 DOT 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 DOT edu or visit the list's Web site at
>http://listserv.temple.edu/archives/networker.html where you can
>also view and post messages to the list. Questions regarding this list
>should be sent to stan AT temple DOT edu
>=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listserv.temple DOT edu or visit the list's Web site at
http://listserv.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>