Unsolved
This post is more than 5 years old
37 Posts
0
1562
pstcmd doesn't work
Hi, I need to make a backup of nsr/applogs and delete log files.
I have a res file:
type: savepnpc;
precmd:"cmd.exe /C C:\\Program Files\\EMC NetWorker\\nsr\\res\\precmd.cmd";
pstcmd:"cmd.exe /C C:\\Program Files\\EMC NetWorker\\nsr\\res\\postcmd.cmd";
postcmd.cmd:
del /Q "C:\Program Files\EMC NetWorker\nsr\applogs\"
As result I still have files in applogs.
From savepnpc.log:
19.02.2016 14:10:07 preclntsave: Starting up the precmds.
19.02.2016 14:10:08 preclntsave: All command(s) ran successfully.
19.02.2016 14:11:08 pstclntsave: Client is not active in the worklist.
19.02.2016 14:11:08 pstclntsave: All savesets on the worklist are done.
19.02.2016 14:11:08 pstclntsave: Starting up the pstcmds.
19.02.2016 14:11:08 pstclntsave: No commands specified to be run.
19.02.2016 14:11:08 pstclntsave: Exited.
19.02.2016 14:11:13 pstclntsave: Pstcmds completed. The group temp file and group precmd temp file deleted.
postcmd.cmd works from cmd without any errors.
Thank you very much for your time.
Shubhadip_Datta
26 Posts
1
February 22nd, 2016 03:00
Try to run pstclntsave in debug mode or instead of del command use something else -
pstclntsave -s server -c client -g group [-p pollinterval] [-t timeout]
[-D debuglevel]
DESCRIPTION
OPTIONS
bingo.1
2.4K Posts
0
February 22nd, 2016 03:00
Which NW version does the client run ?
Did you update recently ?
Could it be that the directory itself is locked ?
May I suggest that you slightly modify the command as follows:
del /Q "C:\Program Files\EMC NetWorker\nsr\applogs\*.*"
Godzy
37 Posts
0
February 24th, 2016 00:00
Client:8.1.2.5 Win64
Tried on other folder with full access, and tried del /Q "C:\Program Files\EMC NetWorker\nsr\applogs\*.* . No luck
Godzy
37 Posts
0
February 24th, 2016 00:00
Thank you will try