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 )
Help )
Comments
-
grep huawei-alias01 etc/storage-list.cfg
-
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-alias01Warning: LWP::Protocol::https should be version 6.x (act version: 5.833) for storages where is used REST API (https)Upgrade to 6.x: http://www.stor2rrd.com/https.htmIt 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 okConnection 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-alias01API Test 192.168.85.100Login to API succesfull! (192.168.85.100)API Test 192.168.85.101Login 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 problemUpgrade it, refer here: http://www.stor2rrd.com/https.htm
-
definitelly upgrade to 6.x LWP as per this: http://www.stor2rrd.com/https.htm
Howdy, Stranger!
Categories
- 1.6K All Categories
- 41 XORMON NG
- 25 XORMON
- 150 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 6 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 122 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 1 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle