locked
setting error.log and output.log location for a HPC job submitted through powershell RRS feed

  • Question

  • Hi

    I m using windows HPC 2012 R2.

    I can't find any information on how to set up error.log and output.log location for a HPC job submitted through powershell.

    In HPC job manager, one can input where one wants these files to save.

    How do I do that in HPC powershell? or in HPC job templates? 

    Friday, February 6, 2015 4:08 AM

All replies

  • Please check the parameter "-stderr, stdout" in the add-hpctask which represents the location for your standard output and error

       Add-HpcTask [-CommandLine <String>] [-CustomProperties <String[]>] [-Depend <String[]>] [-End <Int32>] [-Env <Strin
       g[]>] [-Exclusive <Boolean>] [-FailJobOnFailure <Boolean>] [-FailJobOnFailureCount <Int32>] [-Increment <Int32>] [-
       Name <String>] [-NumCores <String>] [-NumNodes <String>] [-NumSockets <String>] [-Parametric] [-RequiredNodes <Stri
       ng[]>] [-Rerunnable <Boolean>] [-RunTime <String>] [-Scheduler <String>] [-Start <Int32>] [-Stderr <String>] [-Stdi
       n <String>] [-Stdout <String>] [-TaskFile <String>] [-Type {Basic | ParametricSweep | NodePrep | NodeRelease | Serv
       ice}] [-ValidExitCodes <String>] [-WorkDir <String>] -Job <HpcJob> [<CommonParameters>]

       Add-HpcTask [-CommandLine <String>] [-CustomProperties <String[]>] [-Depend <String[]>] [-End <Int32>] [-Env <Strin
       g[]>] [-Exclusive <Boolean>] [-FailJobOnFailure <Boolean>] [-FailJobOnFailureCount <Int32>] [-Increment <Int32>] [-
       Name <String>] [-NumCores <String>] [-NumNodes <String>] [-NumSockets <String>] [-Parametric] [-RequiredNodes <Stri
       ng[]>] [-Rerunnable <Boolean>] [-RunTime <String>] [-Scheduler <String>] [-Start <Int32>] [-Stderr <String>] [-Stdi
       n <String>] [-Stdout <String>] [-TaskFile <String>] [-Type {Basic | ParametricSweep | NodePrep | NodeRelease | Serv
       ice}] [-ValidExitCodes <String>] [-WorkDir <String>] -JobId <Int32> [<CommonParameters>]


    Qiufang Shi

    Friday, February 6, 2015 6:57 AM