UNSOLVED

Godzy

updated

11 years ago

G

Godzy

37 Posts

0

1701

February 19th, 2016 03:00

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.

  • 1025

    1

    Posted 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

           The  pstclntsave  process  checks the STATUS and WORKLIST attributes of
           the GROUP resource from the server every number of seconds specified in
           the poll interval to see if the group is running and if client is still
           included in the WORKLIST.  Whenever  pstclntsave  is  aborted,  or  the
           time_out condition occurs, or the group's STATUS is not running, or the
           client is no longer in  the  WORKLIST  (whichever  comes  first),  pst-
           clntsave   performs  all  the  post-processing  commands  specified  in
           /nsr/res/group.res file, unlinks /nsr/tmp/group.tmp, then  records  the
           results (success or failure) in the /nsr/logs/savepnpc.log file.

           Note:  This  is  to  be invoked by preclntsave 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.

           -p pollinterval
                  Specifies how often (in seconds) to poll the server.

           -t timeout
                  The  timeout  condition  in nsr_getdate() format string to start
                  the post-processing commands.  This can also be specified in the
                  /nsr/res/group.res file.

           -D debuglevel
                  For debugging purpose, the debug level could be 1, 2 or 3.
  • bingo.1

    1 Rookie

    •

    2430 Posts

    1025

    0

    Posted 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

    1025

    0

    Posted 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

    1025

    0

    Posted February 24th, 2016 00:00

    Thank you will try