kontron / python-ipmi

A pure python IPMI library
GNU Lesser General Public License v2.1
187 stars 75 forks source link

Getting error as : socket.timeout: timed out #63

Open paragshagun opened 5 years ago

paragshagun commented 5 years ago

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.20.100.40', 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() Response:

File "rmcp.py", line 12, in 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_asfmsg (, 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

caiqing0204 commented 2 years ago

我也遇到同样的问题,请问大佬如何解决的?