UNSOLVED

3ksuresh

updated

9 years ago

3

3ksuresh

16 Posts

0

4315

May 23rd, 2017 12:00

How to run gstclreport command in powershell

How to run gstclreport command in powershell

  • Julien_K

    21 Posts

    2699

    0

    Posted May 29th, 2017 07:00

    you have to start the gstclreport.bat from powershell

    C:\Program Files (x86)\Legato\Management\GST\bin\gstclreport.bat

    Best is to script it with powershell, there's a nice example on this page :

    NetWorker Daily Backup Report · GitHub

  • 3ksuresh

    16 Posts

    2699

    0

    Posted May 30th, 2017 23:00

    Am getting below error

    PS D:\Program Files\EMC NetWorker\Management\GST\bin> .\gstclreport.bat
    Your current JAVA_HOME is

    Java Runtime Environment Version 7 is required to run this script.
    Please read comments at the top of gstclreport.bat file to set
    JAVA_HOME to a valid JRE location.

  • Julien_K

    21 Posts

    2699

    0

    Posted June 1st, 2017 06:00

    you have to edit the gstclreport.bat and specify the install path of your java release

    basically add this line :

    SET JAVA_HOME=C:\Program Files\Java\jreX

  • 3ksuresh

    16 Posts

    2699

    0

    Posted June 1st, 2017 07:00

    Tried that too, but still get same error message.

    EM Java Runtime Environment 7 is required to run this script.

    REM Uncomment the line below and set JAVA_HOME to a valid JRE location.

    REM For example: SET JAVA_HOME=C:\Program Files\Java\jre7

    REM gstconfig bEgIn DO NOT ALTER THIS LINE

    SET HOST=vsrpdc2inf011.nbim.no

    SET PORTNUM=9001

    SET DBPORTNUM=2638

    SET BRAND=NetWorker

    SET SUBSTPATH=z:

    SUBST z: "C:/Program Files/EMC NetWorker/Management/GST/web"

    SET

  • ble1

    6 Operator

    •

    14354 Posts

    •

    56186 Points

    2699

    0

    Posted June 6th, 2017 02:00

    I don't see java being set in what you pasted.

  • Julien_K

    21 Posts

    2699

    0

    Posted June 6th, 2017 06:00

    exactly, it seems that your java has not been properly set.

    it should looks like this :

    REM For example:

     

    REM gstconfig bEgIn DO NOT ALTER THIS LINE

    SET HOST=vsrpdc2inf011.nbim.no

    SET PORTNUM=9001

    SET DBPORTNUM=2638

    SET BRAND=NetWorker

    SET SUBSTPATH=z:

    SET JAVA_HOME=C:\Program Files\Java\jre7

  • Julien_K

    21 Posts

    2699

    0

    Posted June 13th, 2017 05:00

    is it working now ?