Error: Could not find or load main class com.hitachi.exporttool.cli.Main

Hello, 
can anybody please advise regarding this error?

$ ./config_check.sh

=========================
STORAGE: HDS_G350: VSPG
=========================
  TCP connection to "xxxxxxxxx" on port "1099" is ok
  TCP connection to "xxxxxxxxx" on port "51099" is ok
  TCP connection to "xxxxxxxxx" on port "51100" is ok
  WARNING : TCP connection to "xxxxxxxxx" on port "51101" has failed! It might need to be open on the firewall.
  REST API TEST

  TCP connection to "xxxxxxxxx" on port "443" is ok
/usr/bin/perl /home/lpar2rrd/stor2rrd/bin/vspg_apitest.pl stor2rrd XXXXX xxxxxxxxx https HDS_G350 apitest xxxxxxxxx xxxxxxxxx


  Machine Name: VSP G350 

  Machine Type-Model: VSP G350

  Machine Serial: 429611

  IP address controller A: xxxxxxxxx

  IP address controller B: xxxxxxxxx

  Software Version: 88-06-01/00

Export tool version : 1
Error: Could not find or load main class sanproject.getexptool.RJElMain
cat: /opt/hds/88-06-01/log/: Is a directory

Error: Could not find or load main class sanproject.getexptool.RJElMain
cat: /opt/hds/88-06-01/log/: Is a directory

VSPG Error: export tool finished mistake
set up or check HDS_EXPORT_TOOL_JAVAPATH in stor2rrd.cfg
VSPG Error: command failed: /home/lpar2rrd/stor2rrd/bin/hds_check.sh stor2rrd <PASSWORD> xxxxxxxxx 429611 -I1 88-06-01 xxxxxxxxx xxxxxxxxx 1
  connection failed!!

  Assure if your Java version is supported by Export Tool, 1.8 should be at least
  openjdk version "1.8.0_252"



thank you.

cheers/sven
«1

Comments

  • Hello,

    What version of stor2rrd do you have?

    Thank you


  • Hi,


    Chees/sven
  • Hello,

    that's weird. Please send us these outputs:

    ls -l /opt/hds/88-06-01/*

    cat /opt/hds/88-06-01/runUnix.sh


    Thank you
  • Hi, 

    [lpar2rrd@stor2rrd ~]$ ls -l /opt/hds/88-06-01/*
    -rw-rw-r-- 1 lpar2rrd lpar2rrd 2187432 Sep 21 08:55 /opt/hds/88-06-01/exptool.zip
    -rwxr-xr-x 1 root     root         172 Sep 21 10:41 /opt/hds/88-06-01/runUnix.bat
    -rwxr-xr-x 1 root     root         212 Sep 21 10:41 /opt/hds/88-06-01/runUnix.sh

    /opt/hds/88-06-01/ExportTool(Monitor):
    total 4
    -rw-r--r-- 1 root root 3161 Sep 18 12:24 Readme.txt
    drwxr-xr-x 4 root root  150 Sep 21 10:25 UNIX
    drwxr-xr-x 2 root root   23 Sep 18 12:24 win

    /opt/hds/88-06-01/log:
    total 0

    /opt/hds/88-06-01/monitor2:
    total 420
    -rw-r--r-- 1 root root 407732 Sep 18 12:24 exportTool.jar
    -rw-r--r-- 1 root root    246 Sep 18 12:24 exportTool.properties
    drwxr-xr-x 2 root root    156 Sep 18 12:24 external
    -rw-r--r-- 1 root root   3139 Sep 18 12:24 Readme.txt
    -rw-r--r-- 1 root root    212 Sep 18 12:24 runUnix.sh
    -rw-r--r-- 1 root root    200 Sep 18 12:24 runWin.bat
    -rw-r--r-- 1 root root     13 Sep 18 12:24 Version.txt
    [lpar2rrd@stor2rrd ~]$
    [lpar2rrd@stor2rrd ~]$


    [lpar2rrd@stor2rrd ~]$ cat /opt/hds/88-06-01/runUnix.sh
    #! /bin/sh
    java -classpath "./exportTool.jar":"./external/log4j-core-2.8.2.jar":"./external/log4j-api-2.8.2.jar":"./external/commons-codec-1.3.jar":"./external/lz4-1.3.0.jar" com.hitachi.exporttool.cli.Main "$@"
    [lpar2rrd@stor2rrd ~]$

  • I think the export tool is badly installed.

    under root

    1. remove directory /opt/hds/88-06-01/

    2. install export tool

    mkdir /opt/hds/88-06-01

    cd /opt/hds/88-06-01

    tar xvf export-tool.tar

    chmod 755 runUnix.sh

    chown -R stor2rrd /opt/hds  # lpar2rrd in case of usage of Virtual Appliance

    under stor2rrd # lpar2rrd in case of usage of Virtual Appliance

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir

    ./bin/config_check.sh HDS_G350


    Let us know.


    Thank you


  • svenso
    edited September 2020
    Hi, 

    runUnix.bat also fine? or do I have some wrong export tool.

    [root@stor2rrd 88-06-01]# tar xvf export.tar

    [root@stor2rrd 88-06-01]# ll
    total 2204
    -rw-rw-rw- 1 root     root        3819 Dec 18  2014 command.txt
    -rwxrwxrwx 1 root     root         146 Jul 17  2015 delUnix.bat
    -rwxrwxrwx 1 root     root         141 Jul 17  2015 delWin.bat
    -rw-r--r-- 1 root     root       40960 Sep 18 12:24 export.tar
    drwxr-xr-x 4 root     root          44 Sep 18 12:24 ExportTool(Monitor)
    -rw-rw-r-- 1 lpar2rrd lpar2rrd 2187432 Sep 21 08:55 exptool.zip
    drwxrwxrwx 2 root     root          33 Apr 14 18:22 lib
    drwxr-xr-x 3 root     root         139 Sep 18 12:24 monitor2
    -rw-rw-rw- 1 root     root        1253 Oct 27  2014 RsdRmiSSLkey
    -rwxrwxrwx 1 root     root         172 Jul 17  2015 runUnix.bat
    -rwxrwxrwx 1 root     root         167 Jul 17  2015 runWin.bat

  • now the output is empty.

    [lpar2rrd@stor2rrd stor2rrd]$
    [lpar2rrd@stor2rrd stor2rrd]$ ./bin/config_check.sh HDS_G350













    [lpar2rrd@stor2rrd stor2rrd]$


  • from browser:


  • API data test: NOK
    Under user: lpar2rrd
    Export tool command failed: "java -classpath "/opt/hds/88-06-01/lib/JSanExportLoader.jar" -Del.tool.Xmx=536870912 -Dmd.command=/tmp/riks-HDS_G350/riks-HDS_G350-type-hus_vm.txt -Del.logpath=/tmp/riks-HDS_G350/log -Dmd.rmitimeout=20 sanproject.getexptool.RJElMain"
    Loading ExportTool...
    Missing ip
    
    
    2020/09/23 13:56:06 start Export Loader Version : 88-00-00
    2020/09/23 13:56:06  command file path=/tmp/riks-HDS_G350/riks-HDS_G350-type-hus_vm.txt
    2020/09/23 13:56:06  log file path    =/tmp/riks-HDS_G350/log
    2020/09/23 13:56:06  log file name    =loader0923135606.log
    2020/09/23 13:56:06  ExportLoader mode=ALL
    2020/09/23 13:56:06  download port    =51099
    2020/09/23 13:56:06 read target address from command file.
    2020/09/23 13:56:06 Missing ip
    2020/09/23 13:56:06 ExportLoader fail.
    2020/09/23 13:56:06 ExportLoader finish. exitcode=101
    
    


  • IPs are in place...

    Cheers/sven 
  • Hello,

    under root

    chown -R stor2rrd /opt/hds  # lpar2rrd in case of usage of Virtual Appliance

    under stor2rrd # lpar2rrd in case of usage of Virtual Appliance

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir

    ./bin/config_check.sh HDS_G350  ### the output should not be empty


    thank you
  • if the output is still empty

    . /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg; /home/lpar2rrd/stor2rrd/bin/hds_check.sh stor2rrd <PASSWORD> <SVP_IP> 429611 -I1 88-06-01 <IP CTL A> <IP CTL B> 1


  • [root@stor2rrd stor2rrd]# chown -R lpar2rrd /opt/hds
    [root@stor2rrd stor2rrd]#
    [root@stor2rrd stor2rrd]#
    [root@stor2rrd stor2rrd]# ll -d /opt/hds/
    drwxr-xr-x 3 lpar2rrd root 21 Sep 23 13:52 /opt/hds/


    [root@stor2rrd bin]# cd /home/lpar2rrd/stor2rrd
    [root@stor2rrd stor2rrd]# ./bin/config_check.sh HDS_G350













    [root@stor2rrd stor2rrd]#


    still somehow the output is empty

    cheers/sven 
  • run config_check.sh under lpar2rrd by the user

    su -l lpar2rrd

    cd /home/lpar2rrd/stor2rrd

    ./bin/config_check.sh <storage alias>


  • [lpar2rrd@stor2rrd ~]$ /home/lpar2rrd/stor2rrd/bin/hds_check.sh stor2rrd CJ4ETRWGK54xuUertew22 xx.xx.xx.xx 429611 -I1 88-06-01 xx.xx.xx.xx xx.xx.xx.xx 1
    Export tool version : 1
    VSPG Error: variable HDS_EXPORT_TOOL_JAVAPATH is not defined
    set up or check HDS_EXPORT_TOOL_JAVAPATH in etc/stor2rrd.cfg
    [lpar2rrd@stor2rrd ~]$
  • [lpar2rrd@stor2rrd ~]$ who
    lpar2rrd pts/0        2020-09-24 09:00 (gateway)
    [lpar2rrd@stor2rrd ~]$
    [lpar2rrd@stor2rrd ~]$
    [lpar2rrd@stor2rrd ~]$ cd /home/lpar2rrd/stor2rrd
    [lpar2rrd@stor2rrd stor2rrd]$
    [lpar2rrd@stor2rrd stor2rrd]$
    [lpar2rrd@stor2rrd stor2rrd]$ ./bin/config_check.sh HDS_G350













    [lpar2rrd@stor2rrd stor2rrd]$
    [lpar2rrd@stor2rrd stor2rrd]$

  • etc/stor2rrd.cfg

    # Prefered path to Java for HDS Export Tool (it requires /usr/java8_64 on AIX)
      HDS_EXPORT_TOOL_JAVAPATH=/usr/java8_64/jre/bin:/usr/java8_32/jre/bin:/usr/bin:/usr/bin/java:/bin/java

  • [lpar2rrd@stor2rrd etc]$ which java
    /usr/bin/java
    [lpar2rrd@stor2rrd etc]$
    [lpar2rrd@stor2rrd etc]$
    [lpar2rrd@stor2rrd etc]$ java -version
    openjdk version "1.8.0_252"
    OpenJDK Runtime Environment (build 1.8.0_252-b09)
    OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
    [lpar2rrd@stor2rrd etc]$

  • Hello,

    1. . /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg

    2. /home/lpar2rrd/stor2rrd/bin/hds_check.sh stor2rrd <PASSWORD> <SVP_IP> 429611 -I1 88-06-01 <IP CTL A> <IP CTL B> 1

    where <password> is unencrypted password


  • or

    su -l lpar2rrd

    cd /home/lpar2rrd/stor2rrd

    ./bin/config_check.sh

    Thank you

  • svenso
    edited September 2020
    hi, 

    should I change something in /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg  ?

    Cheers/sven 
  • not yet. I need an output

    su -l lpar2rrd

    cd /home/lpar2rrd/stor2rrd

    ./bin/config_check.sh

    Thank you
  • [lpar2rrd@stor2rrd etc]$ su -l lpar2rrd
    Password:
    Last login: Thu Sep 24 09:00:19 EEST 2020 from gateway on pts/0
    Last failed login: Thu Sep 24 09:51:41 EEST 2020 on pts/0
    There was 1 failed login attempt since the last successful login.
    [lpar2rrd@stor2rrd ~]$
    [lpar2rrd@stor2rrd ~]$
    [lpar2rrd@stor2rrd ~]$ cd /home/lpar2rrd/stor2rrd
    [lpar2rrd@stor2rrd stor2rrd]$ ./bin/config_check.sh


    =========================
    STORAGE: riks-HDS_G350: VSPG
    =========================
      TCP connection to "xx.xx.xx.xx" on port "1099" is ok
      TCP connection to "xx.xx.xx.xx" on port "51099" is ok
      TCP connection to "xx.xx.xx.xx" on port "51100" is ok
      WARNING : TCP connection to "xx.xx.xx.xx" on port "51101" has failed! It might need to be open on the firewall.
      REST API TEST

      TCP connection to "xx.xx.xx.xx" on port "443" is ok
    /usr/bin/perl /home/lpar2rrd/stor2rrd/bin/vspg_apitest.pl stor2rrd XXXXX 1xx.xx.xx.xx https riks-HDS_G350 apitest xx.xx.xx.xx xx.xx.xx.xx

      Machine Name: VSP G350

      Machine Type-Model: VSP G350

      Machine Serial: 429611

      IP address controller A: xx.xx.xx.xx

      IP address controller B: xx.xx.xx.xx

      Software Version: 88-06-01/00

    Export tool version : 1
    Loading ExportTool...
    Export tool start [Version 88-06-01-FF/00]
    command file = /opt/hds/hds_test/command.txt
    [  1] ip xx.xx.xx.xx       ; Specifies IP adress of SVP
    [  2] dkcsn 429611           ; Specifies Serial Number of SVP
    [  3] login User = [stor2rrd], Passwd = [****************]
    [MPC Software Version] 88-06-01-20/00
    [ExportTool version] 88-06-01-FF/00
    [ExportTool IF version] 88-00-00
    Unable to get time range for monitoring
    [  4] show                  ; output storing period
    Monitoring time range
    From : 0000/00/00 00:00 - To : 0000/00/00 00:00 Interval : 0min.
    [  5] group Port ; Port usage
    [  6] range -0001:
    Unable to get time range for monitoring
    [  7] outpath "/opt/hds/hds_test/performance"  ; specifies the sub-directory in which files will be saved
    [  8] option nocompress
    [  9] apply
    Export tool end
      connection ok


    ========
    Summary:
    ========
    Fujitsu_DX500_S3  ok
    riks-HDS_G350  ok




    cheers/sven 
  • it looks good. Do you see the data for riks-HDS_G350?

  • graphs are not showing

  • Hello,

    1. ignore connection test via UI

    2. Try these latest scripts

    https://download.stor2rrd.com/patch/2.81-21-90-gbef51/vspgperf.pl.gz

    Gunzip it and copy to /home/stor2rrd/stor2rrd/bin (755, stor2rrd owner)

    -rwxr-xr-x 1 stor2rrd stor2rrd 264051 24. zář 10.21 vspgperf.pl

    If your web browser gunzips it automatically then just rename it: mv vspgperf.pl.gz vspgperf.pl

    Assure that file size is the same as on above example



    https://download.stor2rrd.com/patch/2.81-21-90-gbef51/vspgconf.pl.gz

    Gunzip it and copy to /home/stor2rrd/stor2rrd/bin (755, stor2rrd owner)

    -rwxr-xr-x 1 stor2rrd stor2rrd 148157 24. zář 10.21 vspgconf.pl

    If your web browser gunzips it automatically then just rename it: mv vspgconf.pl.gz vspgconf.pl

    Assure that file size is the same as on above example


    after copy scripts to bin directory

    wait about 30 then

    su -l lpar2rrd

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir

    rm tmp/2*

    ./load.sh


    refresh GUI


    If you cannot see data send us logs

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir

    tar cvhf logs.tar logs tmp/*txt

    gzip -9 logs.tar

    Send us logs.tar.gz via https://upload.stor2rrd.com


    Thank you



  • svenso
    edited September 2020
    Hi, 

    downloaded new scripts and did everything you asked. Will let you know how the GUI is behaving.

    [lpar2rrd@stor2rrd lpar2rrd]$ rm tmp/2*
    rm: cannot remove ‘tmp/2*’: No such file or directory


    [lpar2rrd@stor2rrd lpar2rrd]$ ./load.sh
    Image environment is set
    Image environment is set
    jobs -l vmware :
    installing WWW : install-html.sh vmware
    Host identif   : Linux
    timestamp      : Mon Sep 28 09:34:13 EEST 2020
    Menu           : no menu refresh for vmware
    date end all VM: Mon Sep 28 09:34:13 EEST 2020
    jobs -l        :
    [1]+ 32586 Done                    $INPUTDIR/load_vmware.sh $1
    heatmap        : start Mon Sep 28 09:34:13 2020
    heatmap        : (VMware) set cpu utilization for 0 vm
    heatmap        : (VMware) set memory utilization for 0 vm
    heatmap        : (VMware) set cpu utilization for 0 pools
    heatmap        : (VMware) set memory utilization for 0 pools
    heatmap        : end Mon Sep 28 09:34:13 2020
    rmc check      : not this time 28 == 28
    RMC from load.sh
    lpar_check     : not this time 28 == 28
    lpars_count    : not this time 28 == 28
    trim logs      : not this time 28 == 28
    LPAR2RRD custom free version 6.20
    No custom groups configured
    installing WWW : install-html.sh power
    Host identif   : Linux
    timestamp      : Mon Sep 28 09:34:13 EEST 2020
    Menu           : no menu refresh for power
    menu           : menu_xenserver.json is missing, force it to create a new one
    installing WWW : install-html.sh xenserver
    Host identif   : Linux
    timestamp      : Mon Sep 28 09:34:13 EEST 2020
    Menu           : menu refresh for xenserver
    menu           : menu_nutanix.json is missing, force it to create a new one
    installing WWW : install-html.sh nutanix
    Host identif   : Linux
    timestamp      : Mon Sep 28 09:34:13 EEST 2020
    Menu           : menu refresh for nutanix
    menu           : menu_ovirt.json is missing, force it to create a new one
    installing WWW : install-html.sh ovirt
    Host identif   : Linux
    timestamp      : Mon Sep 28 09:34:14 EEST 2020
    Menu           : menu refresh for ovirt
    menu           : menu_oracledb.json is missing, force it to create a new one
    installing WWW : install-html.sh oracledb
    Host identif   : Linux
    timestamp      : Mon Sep 28 09:34:14 EEST 2020
    Menu           : menu refresh for oracledb
    menu           : menu_oraclevm.json is missing, force it to create a new one
    installing WWW : install-html.sh oraclevm
    Host identif   : Linux
    timestamp      : Mon Sep 28 09:34:14 EEST 2020
    Menu           : menu refresh for oraclevm
    heatmap        : start Mon Sep 28 09:34:14 2020
    reporter START : Mon Sep 28 09:34:14 2020
    load cfg       : /home/lpar2rrd/lpar2rrd/etc/web_config/reporter.json
    product        : LPAR2RRD
    reporter       : not this time 28 == 28
    reporter END   : Mon Sep 28 09:34:14 2020
    heatmap        : (Power) set cpu utilization for 0 lpars
    heatmap        : (Power) set cpu utilization for 0 pools
    heatmap        : (Power) set memory utilization for 0 lpars
    heatmap        : end Mon Sep 28 09:34:14 2020
    date end all   : Mon Sep 28 09:34:14 EEST 2020
    [lpar2rrd@stor2rrd lpar2rrd]$


    Cheers/sven 
  • This is appliance.. so everything is under lpar2rrd.
    Is this path correct?

    [lpar2rrd@stor2rrd bin]$ pwd
    /home/lpar2rrd/stor2rrd/bin

    [lpar2rrd@stor2rrd bin]$ ll
    total 12620
    -rwxr-xr-x 1 lpar2rrd lpar2rrd  148157 Sep 28 09:30 vspgconf.pl
    -rwxr-xr-x 1 lpar2rrd lpar2rrd  264051 Sep 28 09:29 vspgperf.pl



    those scripts are not in:

    [lpar2rrd@stor2rrd bin]$ pwd
    /home/lpar2rrd/lpar2rrd/bin


    Cheer/Sven 
Sign In or Register to comment.