Unsolved
This post is more than 5 years old
1 Message
1
10440
January 4th, 2011 04:00
savepnpc: Unable to run for group preclntsave
Hi,
I run a backup containing the precmd and postcmd. The contents of the file "DBSQL.res" (on the client), is as follows:
type: savepnpc;
precmd: "echo hello ";
pstcmd: "C: \ \ SCRIPT_NETWORKER \ \ DELETE_SQLATAC.BAT";
timeout: "12:00:00";
abort precmd with group: No;
On the client of the scheduled group was specified in the "backup command" the command savepnpc.
The group will start but ends with the following error:
1 retry Attempted
32476: savepnpc: Unable to run for group preclntsave DBSQL successfully, see savepnpc.log for possible Causes.
The contents of the file savepnpc.log client is as follows:
01/04/2011 11:45:26 preclntsave: Starting up the precmds.
01/04/2011 11:45:26 preclntsave: No specified commands to be run.
Thanks to all.
0 events found


sweller1
78 Posts
0
January 4th, 2011 13:00
Here is an excerpt from the Command Reference Guide on the Preclntsave.
Hope this helps,
Steve
NAME
preclntsave – child process to run pre-processing commands for NetWorker savepnpc
SYNOPSIS
preclntsave – s server – c client – g group [– D debuglevel]
DESCRIPTION
The preclntsave process attempts to lock the /nsr/tmp/group.tmp file. If it cannot, then it exits with status 0 indicating the pre-processing commands had been run. If the lock succeeds, then preclntsave invokes all of the pre-processing commands specified in the /nsr/res/group.res file, and then spawns the pstclntsave process, and exits with status 0. The lock on /nsr/tmp/group.tmp that preclntsave acquired is bequeathed to pstclntsave. Note: This is to be invoked by savepnpc program only. It is not meant for users to use.
OPTIONS
– s server Specifies the controlling server.
– c client The name of the client where the pre-processing commands will be performed on.
– g group Specifies the group name that is being run.
–D debuglevel For debugging purpose, the debug level could be 1, 2 or 3. FILES /nsr/tmp/group.lck The lock on this file must be acquired before preclntsave performs any other actions. The lock is released only upon process exit. If the file does not exist, it is created. The file is never removed. /nsr/tmp/group.tmp Preclntsave attempts to acquire a lock on this file. If it fails, then the command exits with status zero. If it succeeds, then it executes the pre-processing commands. If they succeed, then preclntsave executes the pstclntsave command and bequeaths the lock to it. If the file does not exist, it is created. This command does not remove the file. /nsr/res/group.res The file that contains the actual pre-commands that this command executes. /nsr/res/group.res.lck This vestigial file is created and locked before the /nsr/res/group.res is opened. The file is never removed.