Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
paragshagun opened this issue Apr 1, 2019 · 1 comment
Open

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

paragshagun opened this issue Apr 1, 2019 · 1 comment

Comments

@paragshagun
Copy link

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_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

@caiqing0204
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants