无法使用hpilo_cli连接到ilo

时间:2019-12-02 12:37:42

标签: linux ssl command remote-administration

我无法使用hpilo_cli连接到服务器的ILO。可通过ssh和浏览器访问此IP。

执行的命令:

hpilo_cli -l admini -p shroo3 10.13.70.44 get_embedded_health

日志:

File "/usr/local/bin/hpilo_cli", line 334, in <module>
    main()   File "/usr/local/bin/hpilo_cli", line 214, in main
    results = [getattr(ilo, method)(**params)]   File "/usr/local/lib64/python2.6/site-packages/hpilo.py", line 1036, in get_embedded_health
    process=process)   File "/usr/local/lib64/python2.6/site-packages/hpilo.py", line 730, in
_info_tag
    header, message = self._request(root)   File "/usr/local/lib64/python2.6/site-packages/hpilo.py", line 238, in
_request
    self._detect_protocol()   File "/usr/local/lib64/python2.6/site-packages/hpilo.py", line 278, in
_detect_protocol
    header, data = self._communicate(b'<RIBCL VERSION="2.0"></RIBCL>', ILO_HTTP, save=False)   File "/usr/local/lib64/python2.6/site-packages/hpilo.py", line 406, in
_communicate
    sock = self._get_socket()   File "/usr/local/lib64/python2.6/site-packages/hpilo.py", line 401, in
_get_socket
    return ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_TLS)   File "/usr/lib64/python2.6/ssl.py", line 338, in wrap_socket
    suppress_ragged_eofs=suppress_ragged_eofs)   File "/usr/lib64/python2.6/ssl.py", line 120, in __init__
    self.do_handshake()   File "/usr/lib64/python2.6/ssl.py", line 279, in do_handshake
    self._sslobj.do_handshake() socket.error: [Errno 104] Connection reset by peer

当我使用-d选项进行wget时,观察到以下错误。

Connecting to 10.83.170.4:443... connected. Created socket 3.
Releasing 0x0000000000663da0 (new refcount 0). Deleting unused
0x0000000000663da0. Initiating SSL handshake. SSL handshake failed.
Closed fd 3 Unable to establish SSL connection.

并且:

uname -a
Linux mobso 3.0.101-108.77-default #1 SMP Mon Oct 1 13:13:39 UTC 2018 (4733e02) x86_64 x86_64 x86_64 GNU/Linux
mobsoemjed:~/scripts #

请让我知道如何解决此问题。

0 个答案:

没有答案