我已经使用https://pypi.org/project/python-ipmi来获取信息并将其发布到FSP服务器,但是我正在获取socket.timeout:超时 作为错误。
这是PowerServer P8(IBM),我尝试使用python-ipmi连接到Powerserver,但是获取socket.timeout:超时 作为错误。
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
我希望它应该创建一个没有套接字超时错误的会话。