ERROR: Login to API failed (huawei-alias01) : Invalid argument

Version:
V300R003C20

./bin/config_check.sh huawei-alias01

=========================
STORAGE: huawei-alias01: OCEANSTOR
=========================
Connection to "192.168.85.100" on port "8088" is ok
Connection to "192.168.85.101" on port "8088" is ok
/usr/bin/perl /home/stor2rrd/stor2rrd/bin/oceanstor_apitest.pl stor2rrd XXXXX 192.168.85.100 192.168.85.101 huawei-alias01

API Test 192.168.85.101

Login to API succesfull! (192.168.85.101)

API Test huawei-alias01

Fri Jun  1 14:37:18 2018: ERROR: Login to API failed (huawei-alias01) : Invalid argument
Fri Jun  1 14:37:18 2018: 500 Can't connect to huawei-alias01:8088 (Bad hostname 'huawei-alias01') : Invalid argument
Fri Jun  1 14:37:18 2018: ERROR: Token or Device_id or Cookie is not defined! : Invalid argument
Fri Jun  1 14:37:18 2018: ERROR: connection to "192.168.85.101 huawei-alias01" on port "8088" has failed! : Invalid argument
  connection failed!!

Help )

Comments


  • grep huawei-alias01 etc/storage-list.cfg
  • WOPR
    edited June 2018
    grep huawei-alias01 etc/storage-list.cfg
    #huawei-alias01:OCEANSTOR:ctla_host.example.com:ctlb_host.example.com:stor2rrd:IT5gYGAK:1024:10:
    huawei-alias01:OCEANSTOR:192.168.85.100:192.168.85.101:stor2rrd:password:1024:10:
  • password must be crypted via this, have you done it?
    perl ./bin/spasswd.pl

  • sorry, forgot
  • now
    ./config_check.sh huawei-alias01
    Warning: LWP::Protocol::https should be version 6.x (act version: 5.833) for storages where is used REST API (https)
    It is a must for VMAX, VPLEX, Huawei, Compellent, NetApp, PureStorage, Infinibox, Isilon, BNA



    =========================
    STORAGE: huawei-alias01: OCEANSTOR
    =========================
    Connection to "192.168.85.100" on port "8088" is ok
    Connection to "192.168.85.101" on port "8088" is ok
    /usr/bin/perl /home/stor2rrd/stor2rrd/bin/oceanstor_apitest.pl stor2rrd XXXXX 192.168.85.100 192.168.85.101 huawei-alias01

    API Test 192.168.85.100

    Login to API succesfull! (192.168.85.100)

    API Test 192.168.85.101

    Login to API succesfull! (192.168.85.101)
    Mon Jun  4 18:03:09 2018: ERROR: Token or Device_id or Cookie is not defined! :
    Mon Jun  4 18:03:09 2018: ERROR: connection to "192.168.85.100 192.168.85.101" on port "8088" has failed! :
      connection failed!!
      Perl LWP module is too old, it might be a problem
      Upgrade it, refer here: http://www.stor2rrd.com/https.htm

  • definitelly upgrade to 6.x LWP as per this: http://www.stor2rrd.com/https.htm
Sign In or Register to comment.