Я использовал https://pypi.org/project/python-ipmi для извлечения и публикации информации на серверах FSP, но получаю socket.timeout: timed out
как ошибка.
Это PowerServer P8 (IBM), и я пытался использовать python-ipmi для подключения к powerserver, но получал socket.timeout: timed out
как ошибка.
import pyipmi
import pyipmi.interfaces
interface = pyipmi.interfaces.create_interface(interface='rmcp', slave_address=0x81, host_target_address=0x20, keep_alive_interval=1) ipmi = pyipmi.create_connection(interface) ipmi.session.set_session_type_rmcp(host='10.0.114.199', port=623) ipmi.session.set_auth_type_user(username='admin', password='admin')
ipmi.target = pyipmi.Target(ipmb_address=0x20)
ipmi.session.establish() device_id = ipmi.get_device_id()
Ответ:
File "rmcp.py", line 12, in <module>
ipmi.session.establish()
File "/usr/lib/python2.7/site-packages/pyipmi/session.py", line 104, in establish
self.interface.establish_session(self)
File "/usr/lib/python2.7/site-packages/pyipmi/interfaces/rmcp.py", line 456, in establish_session
self.ping()
File "/usr/lib/python2.7/site-packages/pyipmi/interfaces/rmcp.py", line 395, in ping
self._receive_asf_msg(AsfPong)
File "/usr/lib/python2.7/site-packages/pyipmi/interfaces/rmcp.py", line 377, in _receive_asf_msg
(_, class_of_msg, data) = self._receive()
File "/usr/lib/python2.7/site-packages/pyipmi/interfaces/rmcp.py", line 342, in _receive
(pdu, _) = self._sock.recvfrom(4096)
socket.timeout: timed out
Я ожидаю, что он должен создать сеанс без ошибки тайм-аута сокета.